joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004bf9d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1004bfbf
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1004bfbf
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1004bfbf
ret
cmp word [ebx + 4], 0x14c
jne 0x1004bfbf
test word [ebx + 0x16], 2
je 0x1004bfbf
test word [ebx + 0x16], 0x100
je 0x1004bfbf
cmp word [ebx + 0x18], 0x10b
jne 0x1004bfbf
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1004bfbf
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1004c04b
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1004bfdf
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10032f2a
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1004bfbf
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x1004c04b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x1004bfbf
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x1004bfbf
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x1004bfbf
ret
cmp word [ebx + 4], 0x14c
jne 0x1004bfbf
test word [ebx + 0x16], 2
je 0x1004bfbf
test word [ebx + 0x16], 0x100
je 0x1004bfbf
cmp word [ebx + 0x18], 0x10b
jne 0x1004bfbf
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x1004bfbf
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x1004c04b
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x1004bfdf
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.10032f2a
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x1004bfbf
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x1004c102
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1004c15b
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1004c102
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1004c111
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10451db4
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1004c162
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10032fd8
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004c201
add edi, 4
add eax, 2
dec ecx
jne 0x1004c147
call 0x1004c1ae
loope 0x1004c1a4
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1004c1fe
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1004c20f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1004c1c2
cmp eax, ecx
ja 0x1004c1c2
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1004c24c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1004c242
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100334b7
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x1004c111
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1004c15b
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x1004c102
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x1004c111
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x10451db4
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x1004c162
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.10032fd8
cmp eax, dword [ebp + 0xc]
pop eax
je 0x1004c201
add edi, 4
add eax, 2
dec ecx
jne 0x1004c147
call 0x1004c1ae
loope 0x1004c1a4
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x1004c1fe
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x1004c20f
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x1004c1c2
cmp eax, ecx
ja 0x1004c1c2
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x1004c24c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x1004c242
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100334b7
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rsrc
nop
mov ebx, 0x40915c
nop
mov ecx, 0x7712565c
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x3c481c62
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x4014d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
lea eax, [esp + 0xa0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
jne 0x401526
lea edx, [esp + 8]
mov dword [esp + 8], 0x94
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
cmp dword [esp + 0x18], 2
jne 0x40151b
cmp dword [esp + 0xc], 6
jb 0x40151b
pop edi
mov eax, 1
pop esi
add esp, 0xc0
ret

Function at 0x401550
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
lea eax, [esp + 0xa0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
jne 0x4015a6
lea edx, [esp + 8]
mov dword [esp + 8], 0x94
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
cmp dword [esp + 0xc], 6
jne 0x4015ba
mov ecx, dword [esp + 0x10]
mov eax, 1
cmp ecx, eax
je 0x4015bc
xor eax, eax
pop edi
pop esi
add esp, 0xc0
ret

Function at 0x4015d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
lea eax, [esp + 0xa0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, 0x26
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 8], 0x9c
push ecx
call esi
test eax, eax
jne 0x401626
lea edx, [esp + 8]
mov dword [esp + 8], 0x94
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
cmp dword [esp + 0xc], 6
jne 0x40161b
cmp dword [esp + 0x10], 2
jb 0x40161b
pop edi
mov eax, 1
pop esi
add esp, 0xc0
ret
Function at 0x401690
Capabilities:
Get file version info
Query environment variable

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
mov esi, dword [esp + 0x124]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x103
lea eax, [esp + 0x20]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11f], bl
push 0x104
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebx
mov dword [esp + 0x10], eax
jle 0x40176e
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebp, eax
lea edx, [esp + 0x1c]
push ebp
push ecx
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40173f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x4650bc
push ebp
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x401745
cmp ebp, ebx
je 0x40176e
jmp 0x401765
mov esi, dword [esp + 0x14]
mov ecx, 0xd
mov edi, ebp
cmp ebp, ebx
rep movsd dword es:[edi], dword [esi]
je 0x40176e
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x128]
shr edx, 0x10
mov dword [eax], edx
push ebp
call fcn.00459410
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x110
ret

Function at 0x401780
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
xor ebx, ebx
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4017f6
cmp byte [esp + 0x50], bl
je 0x4017ee
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
mov al, 1
pop ebx
add esp, 0x3c
ret
push str.ShellExecuteEx_failed_n
call fcn.00401810
add esp, 4
xor al, al
pop edi
pop ebx
add esp, 0x3c
ret

Function at 0x401810
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x100
lea eax, [esp + 0x108]
lea edx, [esp]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x100
ret
Function at 0x401a20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401a77
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x401a77
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebx
ret
Function at 0x401f50
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push edi
push eax
mov esi, ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x40
xor eax, eax
mov edi, esi
push 0xff
push 0x4654b0
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov byte [esi + 0xff], 0
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x402ac0
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
push edi
push 0x7f
push str.www.sohu.com
push 0x46b0a8
call esi
push 0x7f
xor ebx, ebx
mov edi, 0x1bb
push str.www.taobao.com
push 0x46b12c
mov byte [0x46b127], bl
mov dword [0x46b128], edi
call esi
push 0x7f
push str.www.baidu.com
push 0x46b1b0
mov byte [0x46b1ab], bl
mov dword [0x46b1ac], edi
call esi
push 0x7f
push str.www.qq.com
push 0x46b234
mov byte [0x46b22f], bl
mov dword [0x46b230], edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x30
mov byte [0x46b2b3], bl
mov dword [0x46b2b4], 0x50
mov esi, 0x46b0a8
push ebx
push ebx
push esi
push 0x4026a0
push ebx
push ebx
call edi
add esi, 0x84
cmp esi, 0x46b2b8
jl 0x402b4a
pop edi
pop esi
pop ebx
ret

Function at 0x402de0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea eax, [esp + 4]
lea edx, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402e21
mov ecx, dword [esp + 0x10]
mov edx, dword [esp]
mov dword [ecx], edx
add esp, 8
ret 8

Function at 0x402e30
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
pop ecx
ret 8
Function at 0x403000
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x120
lea ecx, [esp + 8]
push ebx
push ebp
push esi
push edi
call fcn.00402c50
mov edi, dword [esp + 0x13c]
mov esi, 0x10008
test edi, edi
je 0x403028
mov esi, 0x10108
mov ebx, dword [esp + 0x138]
test ebx, ebx
jne 0x40304c
lea ecx, [esp + 0x18]
call fcn.00402c60
pop edi
pop esi
pop ebp
mov eax, 0x3f2
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x134]
push edi
push ebx
push ebp
call fcn.00403130
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push esi
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40310f
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x40]
push ecx
push edx
push 0
push eax
mov dword [esp + 0x34], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
je 0x4030c8
test esi, esi
jne 0x403104
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push edi
push ecx
push edx
call fcn.00403000
mov esi, eax
add esp, 0xc
test esi, esi
je 0x403078
jmp 0x403104
lea ecx, [esp + 0x24]
call fcn.00402c50
push edi
push ebx
push ebp
call fcn.00403130
add esp, 0xc
test edi, edi
je 0x4030f1
push edi
push ebx
push ebp
call fcn.00402f90
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4030fb
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x24]
call fcn.00402c60
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
call fcn.00402c60
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret

Function at 0x403710
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push 0
push 0xa
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x403792
push ebp
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x40377e
mov edi, dword [esp + 0x140]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea ecx, [esp + 0x34]
push ecx
push edi
call ebp
test eax, eax
je 0x40376f
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x40377e
jmp 0x403751
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x18]
mov bl, 1
mov dword [eax], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov al, bl
pop esi
pop ebx
add esp, 0x128
ret
mov al, bl
pop esi
pop ebx
add esp, 0x128
ret

Function at 0x403820
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x40383c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or eax, 0xffffffff
ret
Function at 0x403dc0
Capabilities:
Delete internet cache
Enumerate internet cache

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryA]
push eax
push 0
push 0
xor bl, bl
mov dword [esp + 0x18], 0
call edi
mov ecx, dword [esp + 0xc]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
push 0
call edi
mov edi, eax
test edi, edi
je 0x403e6b
mov ebx, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryA]
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x403e1c
test dword [esi + 0xc], 0x100000
jne 0x403e34
mov eax, dword [esi + 4]
push eax
jmp 0x403e2e
cmp ebp, 1
jne 0x403e34
test dword [esi + 0xc], 0x100000
je 0x403e34
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
push 0
push edi
call ebx
push esi
call fcn.00459410
mov eax, dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
push esi
push edi
call ebx
test eax, eax
jne 0x403e09
mov bl, 1
pop ebp
test esi, esi
je 0x403e78
push esi
call fcn.00459410
add esp, 4
pop edi
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x4052e0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0
mov dword [esp + 0x1c], 0x465f84
mov dword [esp + 0x20], 0x465f8c
mov dword [esp + 0x24], 0x465f94
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
xor ebp, ebp
lea esi, [esp + 0x10]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
mov edx, dword [esi]
lea ecx, [esp + 0x120]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push edx
push eax
push 0x465fa4
push ecx
call ebx
lea edx, [esp + 0x130]
push edx
call fcn.0040d070
add esp, 0x14
test eax, eax
jne 0x40539a
inc ebp
add esi, 4
cmp ebp, 3
jl 0x405340
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret
lea eax, [esp + 0x120]
push eax
push 0x465fac
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 8
push 0
push 0x465fc8
push 0x465fd0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40bf10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x40ca60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40ca87
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ca7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
ret
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
ret

Function at 0x40ca90
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
jne 0x40cacf
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40cafe
mov dword [ebp - 4], 0
push esi
call fcn.0040ca60
push esi
call fcn.0040c700
add esp, 8
jmp 0x40caf7
mov dword [ebp - 4], 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40cbbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40cbaa
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov byte [ebp - 0x128], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x16]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x18]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1a]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x1e]
and edx, 0xffff
push edx
push esi
push str._s._x_x_x_x_x
push 0x103
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x24
push 3
lea ecx, [ebp - 0x128]
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
push 4
push 0
lea edx, [ebp - 0x128]
push edx
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cc20
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 0x14], eax
jle 0x40cc97
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
push ebx
push ecx
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40cc8a
lea edx, [esp + 0x14]
lea eax, [esp + 8]
push edx
push eax
push 0x467b44
push ebx
mov dword [esp + 0x24], 0
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x40cc9f
test ebx, ebx
je 0x40cc97
push ebx
call fcn.00459410
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
mov esi, dword [esp + 8]
push edi
mov ecx, 0xd
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
pop edi
je 0x40cc97
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x18]
shr ecx, 0x10
mov dword [edx], ecx
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x1c]
and eax, 0xffff
push ebx
mov dword [ecx], eax
mov edx, dword [ebx + 0xc]
mov eax, dword [esp + 0x24]
shr edx, 0x10
mov dword [eax], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x28]
and ecx, 0xffff
mov dword [edx], ecx
call fcn.00459410
add esp, 4
mov eax, 1
pop esi
pop ebx
add esp, 8
ret