joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b08d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x14
cmp dword [esp + 0x1c], 0x1f
mov eax, dword [esp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov ebx, dword [eax + 0x154]
jne 0x4b0a29
push ebp
push edi
lea ebp, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], ebp
cmp ebp, edi
jae 0x4b0909
mov byte [ebp], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0914
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b091f
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [esp + 0x14], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [esp + 0x1c], ax
cmp ecx, edi
jae 0x4b0952
mov al, byte [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4b0960
mov al, byte [esp + 0x15]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4b096e
mov al, byte [esp + 0x1c]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x4b097c
mov al, byte [esp + 0x1d]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0987
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4b0992
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, ebp
sub eax, 2
mov dword [edi], ebp
push eax
lea eax, [ebx + 0x1cb2]
push eax
push 0x3e
push esi
call fcn.004b01b0
mov edi, dword [esp + 0x38]
add esp, 0x10
push 0
push 3
push ebp
push dword [edi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4b09e8
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0049a960
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push edi
call fcn.004b0810
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [edi + 0x168]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4b0a26
call ebp
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0049a960
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4b1930
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x56a434]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
lea eax, [esp + 8]
push esi
push edi
push eax
mov esi, dword [ebp + 0x4e8]
lea eax, [esp + 0x18]
mov edi, dword [ebp]
push eax
mov dword [esp + 0x18], 0x80
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x4b19b6
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.00489f50
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x4b19f1
push str.Received_too_short_packet
push edi
call fcn.0049a960
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004dc47a
add esp, 0x88
ret
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x4b1a12
jmp dword [ecx*4 + 0x4b1b1c]
cmp edx, 4
jle case.0x4b1a12.4
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [esi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x4b1a12.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 1
push ebp
call fcn.0049a840
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4b1a76
push 5
push esi
call fcn.004b2270
add esp, 8
mov eax, ebx
jmp 0x4b19d8
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x70], eax
adc dword [edi + 0x74], edx
push dword [edi + 0x74]
push dword [edi + 0x70]
push edi
call fcn.004a4a00
jmp 0x4b1af1
mov eax, dword [esi + 0x15c]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
mov eax, dword [esi + 0x15c]
add eax, 4
mov dword [esi + 8], ecx
push eax
push 0x536180
push edi
call fcn.0049aa30
jmp 0x4b1af1
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.004b16c0
add esp, 0xc
test eax, eax
je case.0x4b1a12.4
jmp 0x4b19d8
push str.Internal_error:_Unexpected_packet
push 0x536cf0
push edi
call fcn.0049a960
add esp, 0xc
push ebp
call fcn.004a4c60
add esp, 4
test eax, eax
je 0x4b19d6
push 5
push esi
call fcn.004b2270
add esp, 8
mov eax, 0x2a
jmp 0x4b19d8
Function at 0x4b8c00
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x56a434]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00508927
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4b8c65
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4b8c65
lea eax, [esp]
push eax
call dword [0x56a36c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004dc47a
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor eax, eax
xor ecx, esp
call fcn.004dc47a
add esp, 0x108
ret
Function at 0x4bc760
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4bc78b
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4bc77a
pop edi
xor eax, eax
pop esi
ret
push dword [eax + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call ecx
jmp 0x4bc7c0
cmp dword [esi + 8], 0
jne 0x4bc7ae
push 0x55717c
push dword [eax + 8]
call fcn.004f9e43
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4bc7ae
pop edi
or eax, 0xffffffff
pop esi
ret
push dword [esi + 8]
push dword [esp + 0x18]
push 1
push dword [esp + 0x1c]
call fcn.004fd815
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4bc7e2
mov eax, dword [esi + 8]
test eax, eax
je 0x4bc7dc
push eax
call fcn.004f9f17
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x4c0ae0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, ebx
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4c0af0
sub esi, ecx
lea ebp, [esi + esi]
push ebp
call dword [0x56a360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c0b17
lea eax, [edi + 0x1b]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
xor ecx, ecx
test esi, esi
je 0x4c0b30
nop dword [eax]
mov al, byte [ecx + ebx]
mov byte [edi + ecx*2], al
mov byte [edi + ecx*2 + 1], 0
inc ecx
cmp ecx, esi
jb 0x4c0b20
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4c0baa
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x8002
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4c0b9e
push 0
push ebp
push edi
push dword [esp + 0x1c]
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [esp + 0x1c]
push eax
push esi
push 2
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x56a364]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4c0bd0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
sub esp, 0x24
mov eax, dword [0x56a434]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov esi, dword [esp + 0x30]
lea eax, [esp + 4]
push edi
mov edi, dword [esp + 0x38]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [esp + 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c0c74
lea eax, [esp + 0x20]
mov dword [esp + 0x24], 0
push eax
xorps xmm0, xmm0
movups xmmword [esp + 0x18], xmm0
push edi
mov word [esp + 0x1c], 0x208
mov dword [esp + 0x20], 0x6601
mov dword [esp + 0x24], 8
call fcn.004c0ce0
lea eax, [esp + 0x28]
push 8
push eax
call fcn.004c5b20
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c0c87
push eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004dc47a
add esp, 0x24
ret
mov ecx, dword [esp + 0x30]
push dword [esp + 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [esp + 0x10]
push eax
push esi
push 0
push 0
push 0
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x28]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.004dc47a
add esp, 0x24
ret
Function at 0x4c5f40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4c5f4c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004c5f70

Function at 0x4c6b10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x56a360]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4c6b37
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x4c6b7f
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x4c6b83
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4c6be5
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4c6ba4
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x4c6c17
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x541358
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x541359
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4c6bf0
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x4e0b27
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x512bca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00512a49

Function at 0x5199e9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005196a9
Function at 0x4119c7
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
test esi, esi
je 0x4119eb
mov eax, dword [0x4a620c]
xor ecx, ecx
mov eax, dword [eax + 0x104]
cmp dword [eax + 0x3670], ecx
sete cl
mov esi, ecx
push edi
xor edi, edi
lea eax, [edi + 0x13]
push esi
push eax
mov eax, dword [0x4a620c]
mov ecx, dword [eax + 0xc5c]
call fcn.0044a9d9
inc edi
cmp edi, 8
jl 0x4119ee
mov eax, dword [0x4a620c]
push esi
push 0x23
mov ecx, dword [eax + 0xc5c]
call fcn.0044a9d9
test esi, esi
pop edi
je 0x411a50
mov eax, dword [0x4a620c]
push 4
mov ecx, dword [eax + 0x104]
mov edx, dword [ecx + 0x366c]
movzx edx, byte [edx]
mov cl, byte [edx + ecx + 0x37cc]
cmp cl, 0xc8
je 0x411a4c
movzx ecx, cl
add ecx, 0x13
push ecx
jmp 0x411a59
push 0x23
jmp 0x411a59
mov eax, dword [0x4a620c]
push 4
push 0x23
mov ecx, dword [eax + 0xc5c]
call fcn.0044aa80
mov dword [ebx + 0xcf0], esi
pop esi
pop ebx
ret 4

Function at 0x41cdeb
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push str.F2Launcher.exe
push str.open
push eax
call dword [sym.imp.shell32.dll_ShellExecuteA]
ret

Function at 0x41cf7a
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, 0x46724c
call fcn.0045bc2c
sub esp, 0x18
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
push esi
push ecx
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041d074
cmp eax, esi
mov dword [ebp - 0x18], eax
jge 0x41cfbf
lea eax, [ebp - 0x1c]
push 0x4695e8
push eax
mov dword [ebp - 0x1c], 1
call fcn.0045c8a1
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
jne 0x41cfdd
call fcn.0041d05f
mov dword [ebp - 0x18], eax
jmp 0x41cfe0
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x18], esi
jge 0x41cffa
lea eax, [ebp - 0x20]
push 0x4695e8
push eax
mov dword [ebp - 0x20], 2
call fcn.0045c8a1
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 2
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_CryptGetHashParam]
test eax, eax
jne 0x41d017
call fcn.0041d05f
jmp 0x41d019
xor eax, eax
cmp eax, esi
mov dword [ebp - 0x18], eax
jge 0x41d03d
lea eax, [ebp - 0x24]
push 0x4695e8
push eax
mov dword [ebp - 0x24], 3
call fcn.0045c8a1
mov eax, 0x41d03b
ret
cmp dword [ebp - 0x14], esi
je 0x41d04b
push dword [ebp - 0x14]
call dword [sym.imp.advapi32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10

Function at 0x41d074
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov eax, dword [eax]
push esi
push 0
push 0
push 0x8003
push eax
call dword [sym.imp.advapi32.dll_CryptCreateHash]
test eax, eax
je 0x41d0b6
cmp dword [esp + 0xc], 0
je 0x41d0bd
push dword [esp + 0xc]
call fcn.0045b670
pop ecx
push 0
push eax
push dword [esp + 0x14]
push dword [esi]
call dword [sym.imp.advapi32.dll_CryptHashData]
test eax, eax
jne 0x41d0bd
call fcn.0041d05f
jmp 0x41d0bf
xor eax, eax
pop esi
ret 8
Function at 0x41d1fc
Capabilities:
Create process on windows

Disassembly:
xor eax, eax
push 1
push eax
push eax
push str.http:__www.hananet.net
push str.open
push eax
call dword [sym.imp.shell32.dll_ShellExecuteA]
ret
Function at 0x43ac7f
Capabilities:
Get common file path
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + 0x270], edi
je 0x43ae89
mov ecx, dword [esi + 0x104]
push ebx
call fcn.00456ae8
xor ebx, ebx
cmp dword [esi + 0x104], ebx
je 0x43ad06
cmp dword [esi + 0x288], ebx
je 0x43ad06
mov ecx, dword [esi + 0x104]
push ebx
call fcn.00456ab8
mov ecx, dword [esi + 0x104]
push ebx
call fcn.00456ab8
cmp al, 0x24
jbe 0x43acfe
push ebx
lea eax, [ebp - 0x84]
push dword [esi + 0x270]
push str._d____d___ITEM_ERROR_n
push eax
call fcn.0045be9e
mov ecx, dword [esi + 0x104]
add esp, 0x10
push 0
push ebx
call fcn.00456a37
inc ebx
cmp ebx, 4
jl 0x43acb9
xor ebx, ebx
push dword [edi*4 + 0x474abc]
mov ecx, dword [esi + 0x264]
call fcn.00453c72
mov eax, dword [esi + 0x270]
mov ecx, dword [esi + eax*4 + 0x290]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x270]
cmp dword [esi + 0x23c], ebx
mov dword [esi + 0x274], eax
mov dword [esi + 0x270], edi
mov dword [esi + 0x144], ebx
jmp 0x43ad8a
mov eax, dword [esi + 0x270]
mov ecx, dword [esi + eax*4 + 0x290]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [esi + 0xc18]
call fcn.0044b7af
mov eax, dword [esi + 0x270]
mov ecx, dword [esi + 0x284]
push 1
lea eax, [eax + eax*2]
pop ebx
mov dword [esi + 0x2d8], ebx
inc word [ecx + eax*2]
lea eax, [ecx + eax*2]
cmp edi, 6
je 0x43ae07
cmp edi, 0xf
je 0x43ae61
lea eax, [ebp - 0x104]
push eax
push 0x7f
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
push dword [esi + 0x270]
lea eax, [ebp - 0x84]
push str.GM_02d.mid
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
jmp 0x43ae55
lea eax, [ebp - 0x104]
push eax
push 0x7f
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, dword [0x4a620c]
mov eax, dword [eax + 0xc84]
cmp byte [eax], 0
mov eax, dword [esi + 0x104]
push dword [eax + 0x3680]
je 0x43ae39
push str.classic_resourceclassic_stage_05d.mid
jmp 0x43ae3e
push str.stage_05d.mid
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x84]
push ebx
mov ecx, dword [esi + 0xc54]
push eax
call fcn.004381fe
mov eax, dword [0x47e044]
pop ebx
test eax, eax
je 0x43ae74
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
cmp dword [esi + 0x270], 4
jne 0x43ae89
push 0
mov ecx, 0x47e040
call fcn.00453643
pop edi
pop esi
leave
ret 4
Function at 0x4597cd
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
push 0xc
call fcn.0045972d
mov dword [esp], str.ad01011.i16
call dword [sym.imp.kernel32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x4597f3
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.fnXInstallHook
push eax
call edi
push str.fnXUnInstallHook
mov dword [esi + 4], eax
push dword [esi + 0x10]
call edi
push str.fnXGetHook
mov dword [esi + 8], eax
push dword [esi + 0x10]
call edi
push 0x1004
mov dword [esi + 0xc], eax
push dword [esp + 0x10]
push 5
call dword [esi + 4]
add esp, 0xc
test eax, eax
pop edi
jne 0x459846
push dword [esi + 0x10]
call dword [sym.imp.kernel32.dll_FreeLibrary]
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, esi
call fcn.00459960
push 1
pop eax
pop esi
ret 4

Function at 0x459960
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
and dword [ebp - 0x128], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x49
pop ecx
xor eax, eax
lea edi, [ebp - 0x124]
rep stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x45999c
xor eax, eax
jmp 0x4599e5
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push esi
call sub.kernel32.dll_Process32First
test eax, eax
je 0x4599da
push dword [ebp - 0x120]
mov ecx, ebx
call fcn.004599ea
lea eax, [ebp - 0x128]
push eax
push esi
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x4599b7
push 1
pop edi
jmp 0x4599dc
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x459a8a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
and dword [ebp - 0x128], 0
push esi
push edi
mov esi, ecx
push 0x49
xor eax, eax
and dword [ebp - 0x34c], eax
pop ecx
lea edi, [ebp - 0x124]
rep stosd dword es:[edi], eax
mov ecx, 0x88
lea edi, [ebp - 0x348]
rep stosd dword es:[edi], eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x459b73
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 0x128
push eax
push edi
call sub.kernel32.dll_Process32First
test eax, eax
je 0x459b6c
mov eax, dword [ebp - 0x120]
cmp eax, dword [ebp + 8]
je 0x459b0d
lea eax, [ebp - 0x128]
push eax
push edi
call sub.kernel32.dll_Process32Next
jmp 0x459aef
cmp dword [esi + 0x14], 0
jne 0x459b47
lea ecx, [ebp - 0x34c]
push 0x224
push ecx
mov ecx, esi
push dword [ebp - 0x118]
push eax
call fcn.004598de
test eax, eax
je 0x459b67
lea eax, [ebp - 0x22c]
push eax
call fcn.0045b670
inc eax
push eax
lea eax, [ebp - 0x22c]
jmp 0x459b5b
lea eax, [ebp - 0x104]
push eax
call fcn.0045b670
inc eax
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call fcn.0045c9a0
add esp, 0x10
push 1
pop eax
jmp 0x459b75
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x459b7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x459bb9
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
push 1
pop eax
pop ebp
ret

Function at 0x45a210
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x45aca0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
xor ecx, ecx
push edi
test esi, esi
jle 0x45acd9
mov edi, dword [esp + 0x10]
mov ebx, eax
xor edx, edx
mov dl, byte [ecx + edi]
and ebx, 0xffff
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
mov ax, word [edx*2 + 0x479b84]
xor ax, bx
inc ecx
cmp ecx, esi
jl 0x45acb3
mov esi, dword [esp + 0x1c]
xor ecx, ecx
test esi, esi
jle 0x45ad0d
mov edi, dword [esp + 0x18]
mov ebx, eax
xor edx, edx
mov dl, byte [ecx + edi]
and ebx, 0xffff
shr ebx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
mov ax, word [edx*2 + 0x479b84]
xor ax, bx
inc ecx
cmp ecx, esi
jl 0x45ace7
pop edi
pop esi
pop ebx
ret
Function at 0x406260
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x80fc1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40419c
call fcn.0040744b
push 4
mov dword [esp + 0x18], 0
call fcn.00408688
mov edi, eax
add esp, 4
test edi, edi
je 0x4062d4
push ebx
call fcn.00407246
mov dword [edi], eax
call fcn.00407005
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0040740c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4062c8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.00407434
pop ebx
jmp 0x4062d6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40925b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x813364]
jne 0x409265
repz ret
jmp fcn.0040dcfc