joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64ad2150
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x64ad2374
sub esp, 0x18
mov eax, dword [0x64c0a1c8]
test eax, eax
jne 0x64ad235d
nop
lea eax, [0x64c0a1b4]
mov dword [esp], eax
call fcn.64ac8f30
mov eax, dword [0x64c0a1b8]
test eax, eax
je 0x64ad2199
cmp dword [eax + 8], 0xcc
jne 0x64ad220f
mov edx, dword [0x64c0a1ac]
test edx, edx
jne 0x64ad21f1
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x64c0c9d0]
mov dword [esp + 8], eax
call fcn.64acb320
mov eax, dword [esp + 0xc]
mov dword [0x64c0a1ac], eax
mov ecx, dword [0x64c0a170]
mov dword [eax], ecx
mov eax, dword [0x64c0a1ac]
mov dword [0x64c0a170], eax
movzx eax, byte [0x64c0a640]
test al, al
jne 0x64ad21f1
xor eax, eax
jmp 0x64ad2309
mov edx, dword [0x64c0a1ac]
mov ebx, dword [edx + 4]
mov dword [0x64c0a1ac], ebx
mov ebx, dword [0x64c0a1b8]
mov dword [edx + 4], ebx
mov dword [0x64c0a1b8], edx
mov edx, dword [0x64c0a1b8]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x64ad22f1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.64ac2620
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x64c0a340]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x64ad226d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x64ad227a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.64b1b6e0
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x64c0a340]
test edx, edx
jne 0x64ad22a6
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x64ad22c7
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.64b1b6e0
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.64b1b6e0
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.64b1b6e0
nop
lea eax, [0x64c0a1b4]
mov dword [esp], eax
call fcn.64ac9130
nop
lea eax, [0x64c0a1b0]
mov dword [esp], eax
mov dword [esp + 4], 8
call fcn.64ac2790
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.64b1b770
lea esi, [0x64c0a640]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x64ad21f1
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x64ad2353
lea edx, [0x64b471b4]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x64ad22fb
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.64b1b760
mov ecx, 5
call fcn.64b1b760
lea eax, [0x64b6c2e0]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.64af31b0
nop
call fcn.64b1a2c0
jmp fcn.64ad2150
Function at 0x64ae5d60
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x64ae5e7c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x64ae5df5
cmp cl, 2
je 0x64ae5d9d
cmp cl, 3
jne 0x64ae5e65
mov byte [eax + 8], 1
jmp 0x64ae5e61
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.64aeaf90
nop
lea eax, [0x64bee798]
mov dword [esp], eax
call fcn.64ac8f30
nop
mov eax, dword [0x64bee764]
sub eax, dword [0x64bee748]
mov dword [0x64bee764], eax
mov eax, dword [0x64bee754]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x64bee754], ecx
nop
lea eax, [0x64bee798]
mov dword [esp], eax
call fcn.64ac9130
jmp 0x64ae5e61
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.64ad2150
nop
lea eax, [0x64bee798]
mov dword [esp], eax
call fcn.64ac8f30
nop
mov eax, dword [0x64bee73c]
sub eax, dword [0x64bee720]
mov dword [0x64bee73c], eax
mov eax, dword [0x64bee72c]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x64bee72c], ecx
nop
nop
lea eax, [0x64bee798]
mov dword [esp], eax
call fcn.64ac9130
add esp, 0x14
ret
lea eax, [0x64b69f32]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.64af31b0
nop
call fcn.64b1a2c0
jmp fcn.64ae5d60
Function at 0x64b0fc20
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x64b0fd20
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0x8c], 0
mov dword [eax + 0x90], 0
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0x94], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.64b104b0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x64b5d620]
mov dword [esp], ecx
call fcn.64acafd0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax], ecx
lea ecx, [0x64bee830]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.64b0f4a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.64b0e8c0
add esp, 0x28
ret
call fcn.64b1a2c0
jmp fcn.64b0fc20
Function at 0x64b1b580
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x64c0a420]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x64b19d6b
je 0x64b19dbe
cmp ebx, 0x20
jbe 0x64b19dc4
cmp ebx, 0x40
jbe 0x64b19e0a
jmp 0x64b19eab
test ebx, ebx
je 0x64b19db4
add eax, 0x10
test ax, 0xff0
je 0x64b19da0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x64b85e20]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x64b85f20]
jmp 0x64b19d88
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x64b19d88
pxor xmm1, xmmword [0x64c0a430]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x64c0a430]
pxor xmm2, xmmword [0x64c0a440]
pxor xmm3, xmmword [0x64c0a450]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x64c0a430]
pxor xmm2, xmmword [0x64c0a440]
pxor xmm3, xmmword [0x64c0a450]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x64b19f0a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x64c0a14b], 0
je 0x64b1b59a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x64b19d30
jmp fcn.64ac7c80
Function at 0x64b45270
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
sub esp, 0x10
mov dword [0x64c0df30], eax
test eax, eax
je 0x64b452b8
mov dword [esp], 0x64c0df34
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
add esp, 0x1c
ret
mov dword [esp], 2
call dword [0x64b56fbc]
mov dword [esp + 8], 0x3d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.runtime:_failed_to_create_runtime_initialization_wait_event._n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x64b459e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x64c0e2b8]
test esi, esi
jle 0x64b45af0
mov edi, dword [0x64c0e2bc]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x64b45a14
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x64b45a95
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x64b45a00
mov dword [esp], eax
mov ebx, eax
call fcn.64b46130
test eax, eax
mov edi, eax
je 0x64b45b17
mov eax, dword [0x64c0e2bc]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.64b46230
add eax, dword [edi + 0xc]
mov edx, dword [0x64c0e2bc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x64b45af7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x64b45a8e
sub eax, 4
and eax, 0xfffffffb
jne 0x64b45aa0
add dword [0x64c0e2b8], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x64c0e2bc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x64b45a8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.64b466f8
lea esi, [esi]
xor esi, esi
jmp 0x64b45a1e
mov eax, dword [0x64c0e2bc]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.64b466f8
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.64b466f8
mov esi, esi
lea edi, [edi]
Function at 0x64b45db0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x64c0e2c8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x64c0e2c0]
sub esp, 4
test ebx, ebx
je 0x64b45e05
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x64b45dfe
test esi, esi
je 0x64b45dfe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x64b45de0
mov dword [esp], 0x64c0e2c8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x64b466f8
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.64b466d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.64b466d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x4012f7
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push 0x818
push 0x41f6d8
call fcn.00411e68
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push dword [ebp + 8]
push 0x427630
mov ecx, 0x427658
call fcn.004014a7
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x1c], ebx
mov esi, 0x41f5b8
lea edi, [ebp - 0x28]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.0040126a
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
je 0x4013be
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.UnregServer
push esi
call edi
test eax, eax
je 0x4013bb
push str.RegServer
push esi
call edi
test eax, eax
je 0x4013bb
push 4
push str.auto
push esi
call fcn.004126e0
add esp, 0xc
test eax, eax
jne 0x401389
mov dword [0x426064], ebx
jmp 0x4013a7
push 9
push str.scheduled
push esi
call fcn.004126e0
add esp, 0xc
test eax, eax
jne 0x4013a7
mov dword [0x427654], 1
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0040126a
pop ecx
pop ecx
mov esi, eax
cmp esi, ebx
jne 0x401355
jmp 0x4013be
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x24], ebx
je 0x40147b
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push str.SunJavaUpdateCheckerMutex
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x401451
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401451
call fcn.0040c1b9
test eax, eax
jne 0x401447
mov edi, 0x400
push edi
lea eax, [ebp - 0x428]
push eax
push 0x72
push dword [0x42777c]
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
call esi
push edi
lea eax, [ebp - 0x828]
push eax
push 0x75
push dword [0x42777c]
call esi
push 0x10
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x1c], 0x80004005
jmp 0x401472
call fcn.004012ab
mov dword [ebp - 0x1c], eax
jmp 0x401472
mov dword [ebp - 0x1c], 0x64
cmp dword [ebp - 0x20], ebx
je 0x401472
cmp dword [0x426064], ebx
jne 0x40146d
cmp dword [0x427654], ebx
je 0x401472
call fcn.0040ed24
or dword [ebp - 4], 0xffffffff
call fcn.00401498
mov ecx, 0x427658
call fcn.0040171c
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x1c]
call fcn.00411ea3
ret 0x10
Function at 0x402107
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41dbd6
call fcn.004126b4
sub esp, 0x418
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
call dword [0x426060]
xor ebx, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 1
je 0x4021b0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
cmp edi, 0x400
jg 0x402179
push edi
call fcn.00401b21
test al, al
pop ecx
je 0x402179
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004127e0
mov dword [ebp - 0x10], esp
mov esi, esp
jmp 0x40218f
lea eax, [edi + 8]
push eax
call fcn.004127c0
cmp eax, ebx
pop ecx
je 0x4021b0
mov dword [eax], ebx
mov dword [ebp - 0x18], eax
lea esi, [eax + 8]
cmp esi, ebx
je 0x4021b0
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4021b2
xor eax, eax
cmp eax, ebx
jne 0x4021d9
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4021cf
lea ecx, [ebp - 0x424]
call fcn.004022ed
mov esi, 0x8007000e
jmp 0x4022cc
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x14], edi
jne 0x4021f8
call fcn.00401b7a
mov esi, eax
jmp 0x4022b3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x40221a
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x402224
call fcn.00401b7a
jmp 0x4022a8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
inc eax
cmp eax, 0x400
mov byte [ebp - 4], 2
jbe 0x40224f
push eax
lea ecx, [ebp - 0x424]
call fcn.004022f6
jmp 0x40225f
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x40225f
mov edi, dword [ebp - 0x424]
cmp edi, ebx
mov dword [ebp - 4], 1
jne 0x402277
mov esi, 0x8007000e
jmp 0x4022aa
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], bl
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call fcn.0040233c
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x4022cc
lea ecx, [ebp - 0x424]
call fcn.004022ed
lea ecx, [ebp - 0x18]
call fcn.00401dfb
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x402efc
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00402e3d
cmp eax, esi
jne 0x402f74
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x402f3d
lea eax, [ebp - 0x110]
push eax
call fcn.00402efc
cmp eax, esi
jne 0x402f73
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x402f2d
call fcn.00402e26
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00402e26
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x403349
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x403354
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x403989
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push 0x460
push 0x41fa18
call fcn.00411e68
xor ebx, ebx
inc ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], 4
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4039bd
mov eax, ebx
jmp 0x403b06
push str.http:__java.sun.com
push 0x41f9c0
lea eax, [ebp - 0x170]
push eax
call fcn.00412b4e
add esp, 0xc
mov dword [ebp - 4], esi
push esi
push esi
push esi
push esi
push 0x41f9c4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x24], eax
cmp eax, esi
je 0x403afa
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x70], 0x3c
lea eax, [ebp - 0x370]
mov dword [ebp - 0x60], eax
mov eax, 0x100
mov dword [ebp - 0x5c], eax
mov word [ebp - 0x58], si
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x70]
push eax
push esi
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push 3
push 0x41f9cc
push 0x41f9cd
push dword [ebp - 0x58]
push dword [ebp - 0x60]
push dword [ebp - 0x24]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x403afa
push esi
push 0x4400000
push esi
push 0x41f9ce
push 0x41f9d0
lea ecx, [ebp - 0x270]
push ecx
push 0x41f9dc
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, esi
je 0x403afa
push esi
push esi
push esi
push esi
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x403ad2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x34], eax
sub eax, 0x2ee2
je 0x403acf
sub eax, 5
je 0x403acf
sub eax, 0x16
jne 0x403ad2
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x403afa
cmp dword [ebp - 0x20], 0x197
jne 0x403afa
mov dword [ebp - 0x1c], ebx
or dword [ebp - 4], 0xffffffff
call fcn.00403b0e
mov eax, dword [ebp - 0x1c]
call fcn.00411ea3
ret
Function at 0x404e0f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x11
pop ecx
or dword [ebp - 4], 0xffffffff
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
xor esi, esi
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 0x58], 0x44
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404e7a
push dword [ebp - 0x14]
call fcn.00406713
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404e6f
cmp dword [ebp - 4], 0x669
jne 0x404e6f
mov dword [ebp - 4], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404e83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4