joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da90
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24
cmp word [eax], 0x5a4d
je 0x40daaf
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add esp, 0x24
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x40dacb
cmp word [edi + 4], 0x14c
jne 0x40dacb
test byte [edi + 0x38], 1
je 0x40dadd
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
add esp, 0x24
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebp
push 4
push 0x3000
push eax
push ecx
call ebx
mov ebp, eax
test ebp, ebp
jne 0x40db21
mov edx, dword [edi + 0x50]
push 4
push 0x3000
push edx
push eax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x40db21
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x24
ret
push esi
push 0x34
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x40db58
push 0x8000
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x24
ret
mov dword [esi + 4], ebp
movzx eax, word [edi + 0x16]
shr eax, 0xd
lea ecx, [esp + 0x10]
and eax, 1
push ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], 0x40da50
mov dword [esi + 0x20], 0x40da60
mov dword [esi + 0x24], 0x40da80
mov dword [esi + 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [esp + 0x14]
push 4
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x54]
push 0x1000
push eax
push ebp
call ebx
mov ecx, dword [edi + 0x54]
mov edx, dword [esp + 0x38]
push ecx
mov ebx, eax
push edx
push ebx
call fcn.004397a0
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x3c]
push esi
add ebx, ecx
push edi
mov dword [esi], ebx
push eax
mov dword [ebx + 0x34], ebp
call fcn.0040d530
add esp, 0x18
test eax, eax
je 0x40dc38
mov eax, ebp
sub eax, dword [edi + 0x34]
je 0x40dbe9
push eax
mov eax, esi
call fcn.0040d840
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x40dbf0
mov dword [esi + 0x18], 1
call fcn.0040d8d0
test eax, eax
je 0x40dc38
push esi
call fcn.0040d6a0
add esp, 4
test eax, eax
je 0x40dc38
mov eax, esi
call fcn.0040d800
test eax, eax
je 0x40dc38
mov edx, dword [esi]
mov eax, dword [edx + 0x28]
test eax, eax
je 0x40dc65
add eax, ebp
cmp dword [esi + 0x14], 0
je 0x40dc58
push 0
push 1
push ebp
call eax
test eax, eax
jne 0x40dc47
push 0x45a
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040dd70
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x24
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x24
ret
Function at 0x4111f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
sub esp, 0x1c
mov eax, dword [0x45f6c4]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
xor eax, eax
push edi
xor ebp, ebp
push 0x400
mov ebx, ecx
mov word [esp + 0x18], bp
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov word [esp + 0x26], ax
call fcn.004151aa
add esp, 4
push 6
push 1
push 2
mov esi, eax
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4112e4
push 0x50
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], 0xdb8895b4
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4112e4
push ebx
push str.GET__iplookup_iplookup.php_ip_s_HTTP_1.1_r_nHost:_int.dpool.sina.com.cn_r_n_r_n
push esi
call fcn.004313a7
mov eax, esi
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x411287
push 0
sub eax, edx
push eax
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4112e4
push 0x400
push 0
push esi
call fcn.004346e0
add esp, 0xc
push 0
push 0x400
push esi
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4112e4
xor ebx, ebx
mov eax, dword [ebx + 0x5c2cb4]
push eax
push esi
call fcn.00432c40
add esp, 8
test eax, eax
jne 0x4112e4
add ebx, 4
cmp ebx, 0x10
jb 0x4112c6
jmp 0x4112e9
mov ebp, 1
push esi
call fcn.004151af
add esp, 4
cmp edi, 0xffffffff
je 0x4112fe
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.00431398
add esp, 0x1c
ret
Function at 0x412850
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ca48
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041961a
mov eax, dword [esi + 0x20]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.0041b1df
mov ebp, eax
test ebp, ebp
je 0x412937
call fcn.0041568d
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4128ba
push 0x80004005
call fcn.00402a50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x65
mov dword [esp + 0x3c], 0
call fcn.00415234
test eax, eax
je 0x4128ed
push 0x65
push eax
lea ecx, [esp + 0x20]
call fcn.00402f80
mov edi, dword [esp + 0x18]
cmp dword [edi - 0xc], 0
je 0x412913
mov ecx, dword [ebp + 4]
mov ebx, dword [sym.imp.USER32.dll_AppendMenuW]
push 0
push 0
push 0x800
push ecx
call ebx
mov edx, dword [ebp + 4]
push edi
push 0x10
push 0
push edx
call ebx
lea eax, [edi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412937
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x74]
mov edx, dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push ecx
push 1
push 0x80
push edx
call edi
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
push 0
push 0x80
push 0x40000
mov ecx, esi
call fcn.0041b311
push 0
lea edx, [esp + 0x20]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.0041b397
mov ecx, dword [esp + 0x24]
sub ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 1
push 0
push 0
push eax
add ecx, 0x780
push ecx
push 0
mov ecx, esi
call fcn.0041b5bf
mov ecx, esi
call fcn.004123e0
push 0
push 0
push esi
push 0x414880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412bd0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x44c12b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x45f6c4]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
mov eax, dword [0x45f6c4]
xor eax, esp
push eax
lea eax, [esp + 0x21c]
mov dword fs:[0], eax
call dword [0x460a6c]
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.004346e0
add esp, 0xc
lea esi, [esp + 0xc]
call fcn.00410cf0
push 0x208
lea ecx, [esp + 0x14]
push ecx
push 0x4540b4
mov dword [esp + 0x230], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea ebx, [ebx]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412c60
mov edx, dword [0x4540bc]
mov dword [edi], edx
lea edi, [esp + 0x10]
add edi, 0xfffffffe
jmp 0x412c80
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x412c80
mov ecx, 8
mov esi, 0x4540c0
push 2
rep movsd dword es:[edi], dword [esi]
push 0x45431c
lea ecx, [esp + 0x14]
call fcn.0040d4a0
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [esp + 0x224], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x21c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00431398
add esp, 0x21c
ret
Function at 0x4160d6
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4160ff
call fcn.0041746d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x416122
push eax
push dword [esi + 4]
call fcn.00416061
push esi
push eax
mov ecx, 0x5c2f3c
call fcn.00415d34
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x418619
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x41865f
call fcn.0041746d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41865f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4186a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x41868b
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41868b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41869f
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4217d5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x421818
call fcn.0041746d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x421818
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x421833
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042138f
test ebx, ebx
mov esi, eax
je 0x421831
test edi, edi
je 0x421831
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x422128
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422156
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422174
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00422092
jmp 0x422174
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422174
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00422092
test edi, edi
mov eax, edi
jne 0x42215e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x5c4be0]
test ecx, ecx
je 0x422237
jmp 0x422127
ret 8

Function at 0x4231ae
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4231b7
xor eax, eax
jmp 0x423220
cmp dword [esp + 8], 0
jne 0x4231c3
call fcn.0041551b
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00433a2b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4231fe
push dword [esi + 0x10]
call fcn.004369be
test eax, eax
pop ecx
jne 0x4231fe
mov esi, dword [esi + 0xc]
call fcn.004341bc
push esi
push dword [eax]
push 1
call fcn.0042e5c8
push dword [esi + 0x10]
call fcn.004369ed
test eax, eax
pop ecx
je 0x42321d
push dword [esi + 0x10]
call fcn.00436912
push eax
call fcn.00403100
pop ecx
pop ecx
jmp 0x4231ec
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x423229
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x423233
call fcn.0041551b
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004331e4
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x423260
mov esi, dword [esi + 0xc]
call fcn.004341bc
push esi
push dword [eax]
push 1
call fcn.0042e5c8
pop esi
ret 8

Function at 0x431398
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45f6c4]
jne 0x4313a2
repz ret
jmp fcn.00438a5f
Function at 0x443ca5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00438446
xor ebx, ebx
cmp dword [0x5c59f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x443d7a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x443ce5
xor eax, eax
jmp 0x443e3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x443cde
push eax
call fcn.004383e3
mov dword [esp], 0x451568
push edi
mov dword [0x5c59f4], eax
call esi
push eax
call fcn.004383e3
mov dword [esp], 0x451554
push edi
mov dword [0x5c59f8], eax
call esi
push eax
call fcn.004383e3
mov dword [0x5c59fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0043356f
test eax, eax
pop ecx
pop ecx
je 0x443d48
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431f25
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x443d7a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004383e3
cmp eax, ebx
pop ecx
mov dword [0x5c5a04], eax
je 0x443d7a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004383e3
pop ecx
mov dword [0x5c5a00], eax
mov eax, dword [0x5c5a00]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x443df3
cmp dword [0x5c5a04], esi
je 0x443df3
push eax
call fcn.0043844f
pop ecx
call eax
cmp eax, ebx
je 0x443dc0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x5c5a04]
call fcn.0043844f
pop ecx
call eax
test eax, eax
je 0x443dc0
test byte [ebp - 0x18], 1
jne 0x443df3
lea eax, [ebp - 0xc]
push eax
call fcn.004335a6
test eax, eax
pop ecx
je 0x443ddb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431f25
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x443dea
or dword [ebp + 0x10], 0x200000
jmp 0x443e24
or dword [ebp + 0x10], 0x40000
jmp 0x443e24
mov eax, dword [0x5c59f8]
cmp eax, esi
je 0x443e24
push eax
call fcn.0043844f
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x443e24
mov eax, dword [0x5c59fc]
cmp eax, esi
je 0x443e24
push dword [ebp - 4]
push eax
call fcn.0043844f
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x5c59f4]
call fcn.0043844f
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44a0ca
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45f6c4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044a05f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004346e0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44a119
cmp dword [ebp - 0x1c], 5
jb 0x44a131
jmp 0x44a12d
cmp dword [ebp - 0x10], 1
jne 0x44a131
cmp dword [ebp - 0x1c], 4
ja 0x44a12d
jne 0x44a131
cmp dword [ebp - 0x18], 0
jbe 0x44a131
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x452ea0
call fcn.00449f33
test eax, eax
jge 0x44a152
mov byte [0x5c5bb0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431398
add ebp, 0x78
leave
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6eb11489
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x182e3f00
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4042a0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x40439d
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x40439d
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x4042f4
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x4042fb
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
mov ecx, edi
xor ecx, 1
and edi, 1
lea edi, [ecx + edi*2]
mov ecx, esi
cmp edi, ebp
jb 0x4042d0
jmp 0x4042fd
mov esi, 0x1505
jmp 0x4042fd
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
lea edi, [edx - 1]
mov ebx, edx
sub ebx, 1
mov dword [esp + 8], ebx
jb 0x40439d
and edi, esi
mov eax, dword [ecx + 4]
lea ebp, [eax + edi*4]
add ebp, 4
not edi
jmp 0x404337
add ebp, 4
dec edi
dec edx
je 0x40439b
mov eax, dword [esp + 8]
or eax, edi
mov ebx, dword [ebp + eax*4]
cmp ebx, 0xffffffff
je 0x40439b
mov eax, dword [ecx + 8]
cmp dword [eax + ebx*4], esi
jne 0x404330
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 4], eax
push eax
mov dword [esp + 4], edx
call fcn.0040c670
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x404330
push dword [esp + 0x28]
push dword [esp + 8]
push dword [esp + 0x2c]
call fcn.0040c690
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x404330
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebx*4]
jmp 0x40439d
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404900
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
cmp dword [esp + 0x18], 0
je 0x404b37
mov edi, dword [esp + 0x1c]
test edi, edi
jle 0x404ae2
mov edx, dword [esp + 0x18]
lea eax, [edx + edi]
mov dword [esp], eax
jmp 0x404953
cmp esi, 0xc0
jne 0x404b35
and eax, 0x1ff800
cmp eax, 0xd800
mov eax, dword [esp]
je 0x404b35
add edx, ebp
cmp edx, eax
jae 0x404ae2
movzx ebx, byte [edx]
cmp ebx, 0xf4
ja 0x404b35
mov ecx, ebx
and cl, 0xfe
cmp cl, 0xc0
je 0x404b35
mov ecx, ebx
and ecx, 0xffffffc0
cmp ecx, 0x80
je 0x404b35
mov ebp, 1
test bl, bl
jns 0x404949
mov esi, ebx
and esi, 0xffffffe0
cmp esi, 0xc0
jne 0x4049ce
movzx eax, byte [edx + 1]
mov ecx, eax
and ecx, 0xffffffc0
cmp ecx, 0x80
jne 0x404b35
and ebx, 0x1f
shl ebx, 6
and eax, 0x3f
or eax, ebx
mov ebp, 2
xor ecx, ecx
cmp eax, 0x80
jae 0x404ab9
jmp 0x404b35
mov ecx, ebx
and ecx, 0xfffffff0
cmp ecx, 0xe0
jne 0x404a24
movzx ecx, byte [edx + 1]
mov edi, ecx
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404b35
movzx eax, byte [edx + 2]
mov ebp, eax
and ebp, 0xffffffc0
cmp ebp, 0x80
jne 0x404b35
shl ebx, 0xc
and ecx, 0x3f
shl ecx, 6
movzx ebx, bx
or ebx, ecx
and eax, 0x3f
or eax, ebx
mov ebp, 3
xor ecx, ecx
jmp 0x404aae
mov ecx, ebx
not ecx
or ecx, 0xf8
add ecx, ebx
cmp ecx, 0xef
jne 0x404b35
movzx ebp, byte [edx + 1]
mov ecx, ebp
xor ecx, 0xffffff3f
mov edi, ebp
or edi, 0xc0
and edi, ecx
cmp edi, 0x80
jne 0x404b35
movzx ecx, byte [edx + 2]
mov edi, ecx
and edi, 0xffffffc0
cmp edi, 0x80
jne 0x404b35
movzx eax, byte [edx + 3]
mov edi, eax
not edi
or edi, 0xc0
add edi, eax
cmp edi, 0x7f
jne 0x404b35
and ebx, 7
shl ebx, 0xc
and ebp, 0x3f
shl ebp, 6
or ebp, ebx
and ecx, 0x3f
or ecx, ebp
shl ecx, 6
and eax, 0x3f
or eax, ecx
mov cl, 1
mov ebp, 4
mov edi, dword [esp + 0x1c]
cmp eax, 0x80
jb 0x404b35
cmp eax, 0x7ff
jbe 0x40492a
cmp eax, 0xffff
ja 0x404ad5
test cl, cl
je 0x404936
jmp 0x404b35
cmp eax, 0x10ffff
jbe 0x404936
jmp 0x404b35
lea eax, [edi + 1]
push eax
call dword [0x448008]
add esp, 4
test eax, eax
je 0x404b35
mov esi, eax
mov byte [eax + edi], 0
push edi
push dword [esp + 0x1c]
push eax
call fcn.0040c4e0
add esp, 0xc
push 0x10
call dword [0x448008]
add esp, 4
test eax, eax
je 0x404b2b
mov dword [eax], 0
mov dword [eax + 4], 2
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
jmp 0x404b37
push esi
call dword [0x448004]
add esp, 4
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret