joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10063800
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1006391d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1006391d
mov eax, dword [esi + 0x3c]
push eax
call fcn.1008ba67
mov esi, eax
test esi, esi
je 0x1006391d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x1006391d
mov ecx, esi
call fcn.10063770
cmp edi, eax
jge 0x1006391d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x100638a3
mov dword [esp + 0x34], 1
jmp 0x100638fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1006391d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.10061f70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x10067e70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x10067ed6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x10067ed6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x10067eb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x10068260
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10068298
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x10068f70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x10068fb9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x10069430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10099140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.10068fe0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10069060
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10069060
lea ecx, [esi + 0xc]
call fcn.10089fee
lea ecx, [esi + 0x10]
call fcn.10089fee
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.1006a5f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.1006a5f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.1006a5f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.1008a063
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.1008a063
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1006a9a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1009937b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
mov esi, dword [esp + 0x144]
push esi
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0
call fcn.1008a0d1
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x1006aa72
mov eax, dword [esp + 4]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1006aa0a
lea ecx, [esp + 4]
mov dword [esp + 0x13c], 0xffffffff
call fcn.1008a063
xor eax, eax
jmp 0x1006aac2
push esi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1006aa25
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
jmp 0x1006aa76
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0xc]
mov esi, eax
push edx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1006aa76
mov ecx, dword [esp + 4]
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.1007aa13
add esp, 8
test eax, eax
je 0x1006aa6e
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1006aa47
jmp 0x1006aa76
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
test eax, eax
jne 0x1006aa96
lea ecx, [esp + 4]
mov dword [esp + 0x13c], 0xffffffff
call fcn.1008a063
xor eax, eax
jmp 0x1006aac2
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x13c], 0xffffffff
call fcn.1008a063
mov eax, esi
mov ecx, dword [esp + 0x134]
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret 8
Function at 0x10071030
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x1007107c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x1007107c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
Function at 0x10073b50
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x10073bb0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x10073bb0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x10073bb0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x10073bb0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x10073bc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x1007e9df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10110238
cmp edx, dword [eax]
je 0x1007ea01
add eax, 8
inc ecx
cmp eax, 0x101102c8
jl 0x1007e9f2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10110238]
jne 0x1007eb2f
mov eax, dword [0x101598d0]
cmp eax, 1
je 0x1007eb09
test eax, eax
jne 0x1007ea32
cmp dword [0x101598d4], 1
je 0x1007eb09
cmp edx, 0xfc
je 0x1007eb2f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007ea69
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10081470
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10081140
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1007eaac
lea eax, [ebp - 0x1a4]
push eax
call fcn.10081140
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10104b74
push edi
call fcn.1007b2a0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10081470
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10081480
lea eax, [ebp - 0xa0]
push 0x100f0678
push eax
call fcn.10081480
push dword [esi + 0x1011023c]
lea eax, [ebp - 0xa0]
push eax
call fcn.10081480
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100855e3
add esp, 0x2c
pop edi
jmp 0x1007eb2f
lea eax, [ebp + 8]
lea esi, [esi + 0x1011023c]
push 0
push eax
push dword [esi]
call fcn.10081140
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1008c3ef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1008c427
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1008a4be
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1008a496
jmp 0x1008c433
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1008dadd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1008db1f
call fcn.100939cb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008db1f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1008db16
xor eax, eax
jmp 0x1008db27
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1008db2d
pop edi
pop esi
pop ebx
ret 4
Function at 0x1005e6ab
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, dword [0x1018904c]
add ecx, 0xf46
mov dword [0x1018904c], ecx
mov dword [ebp - 0x10], eax
call fcn.1005e98b
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x1018904c], 0x6e4
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
jne 0x1005e711
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x1005e78e
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x1005e73d
mov al, byte [ebp - 0x42]
test al, 1
jne 0x1005e7c4
jmp 0x1005e797
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 2
mov edx, dword [ebp - 0x30]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
jb 0x1005e723
jmp 0x1005e706
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov dword [0x1018904c], 0x338
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
jmp 0x1005e706
Function at 0x1005eb9e
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x1018904c], 0x332
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [0x1018904c]
add edx, 0xfffff07e
mov dword [0x1018904c], edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1005ec04
mov dword [0x1018904c], 0xfffff99d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1005ec68
jmp 0x1005ecca
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1005ec31
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1005ec04
mov eax, dword [ebp - 0x1c]
mov dword [0x10189050], 0x346
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1005ecca
mov dword [0x10189050], 0x1343
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x1005ebe6
jmp 0x1005ecca
mov dword [0x1018904c], 0x1089
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x1005ecca
mov dword [0x1018904c], 0x1be
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1005ecca
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1005ecca
mov eax, 1
mov dword [0x1018904c], 0x9b4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1005ecd1
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x1005ecd1
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x1005ee45
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x1018904c]
mov dword [0x10189050], 0x50b
add edx, 0x58f
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dword [0x1018904c], ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1013b24e]
mov dh, byte [eax + 0x1013b21f]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x34], ecx
jne 0x1005ee7f
lea eax, [ebp - 0x24]
mov dword [0x10189050], 0x43d
mov dword [ebp - 0x38], eax
call fcn.1005f61d
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.1005e7ec
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x1005ef90
mov eax, dword [0x1018904c]
mov ecx, dword [ebp - 0x3c]
add eax, 0x13a5
mov dword [0x10189050], eax
mov eax, esp
mov dword [eax + 0xc], 0x40
mov dword [eax + 8], 0x1000
mov dword [eax + 4], 0x6000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov ecx, dword [0x1018904c]
add ecx, 0x1367
mov dword [0x10189050], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1005f91d
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x34], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x3c], ecx
mov dword [0x1018904c], 0x51f
add ecx, 0x1cae
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x1005ef87
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop ebp
ret
Function at 0x1005ef98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x1018904c]
add edx, 0xfffff8c9
mov dword [0x10189050], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x58
mov edi, edx
add edi, esi
add edi, 0x54
mov esi, dword [edi]
imul edi, eax, 0x58
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x175
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x1005efcf
xor eax, eax
mov dword [0x1018904c], 0x197e
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1013b24e]
mov dh, byte [eax + 0x1013b21f]
sub dh, dl
mov byte [ebp + eax - 0x12c], dh
cmp ecx, 0xe
mov dword [ebp - 0x140], ecx
jne 0x1005f03a
lea eax, [ebp - 0x12c]
mov dword [0x10189050], 0x43d
mov dword [ebp - 0x144], eax
call fcn.1005f61d
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.1005e7ec
mov dword [0x1018906c], eax
mov dword [0x10189050], 0x15d1
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x58
mov edi, edx
add edi, esi
add edi, 0x54
mov esi, dword [edi]
imul edi, eax, 0x58
mov ebx, edx
add ebx, edi
add ebx, 0x10
mov edi, dword [ebx]
imul ebx, eax, 0x58
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.1005fa22
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x175
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x1005f0e3
lea eax, [0x1013b22d]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov esi, dword [ebp - 0x148]
add esi, 0x42dd2
mov edi, dword [ebp - 0x148]
add edi, 0x61a4e
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edi
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], esi
call fcn.1005f747
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.1005f415
xor eax, eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x160]
mov dword [ecx], edx
mov dword [ecx + 4], 0x11d400
mov dword [0x10189050], 0x309
mov edx, dword [ebp - 0x16c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], 0x1f60
mov dword [0x1018904c], 0xae8
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1005f293
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, esp
mov eax, 0x10
call fcn.1005e3d0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [0x1018904c], 0x85f
mov dword [esi + 0x24], eax
call fcn.10001083
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x20], ecx
je 0x1005f347
jmp 0x1005f40a
sub esp, 4
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.1005ef98
add esp, 4
lea ecx, [0x1005edf6]
mov edx, dword [esi + 0x24]
mov edi, dword [edx]
mov dword [esi + 0x54], edi
mov dword [0x10189050], 0x2662
mov dword [esi + 0x50], 0x11d400
mov edi, dword [0x10189038]
mov dword [esi + 0x34], edi
mov edi, dword [0x1018903c]
mov dword [esi + 0x6c], edi
mov edi, dword [0x10189040]
mov dword [esi + 0x3c], edi
mov edi, dword [0x10189044]
mov dword [esi + 0x44], edi
mov edi, dword [0x10189048]
mov dword [esi + 0x58], edi
mov dword [0x1018904c], 0x18f4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], ecx
jmp 0x1005f376
mov eax, dword [0x10189050]
add eax, 0xffffff68
mov dword [0x10189050], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x14], eax
call fcn.1005eb9e
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x10], ecx
je 0x1005f2d8
jmp 0x1005f404
mov eax, dword [esi + 0x18]
cmp word [eax], 0x5a4d
mov dword [esi + 0xc], eax
jne 0x1005f39c
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 8], eax
mov dword [esi + 4], ecx
mov eax, dword [esi + 8]
cmp dword [eax], 0x4550
je 0x1005f3ae
mov eax, dword [esi + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 0x18], eax
jmp 0x1005f376
lea eax, [esi + 0x28]
add eax, 0x4c
mov dword [esi], eax
lea eax, [esi + 0x28]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov dword [ecx], edx
mov edi, dword [esi + 4]
mov ebx, dword [edx + edi + 0x50]
mov dword [esi + 0x30], ebx
mov dword [0x1018904c], 0x1aa2
mov ebx, dword [esi + 0x24]
mov ecx, dword [ebx + 8]
push ecx
push eax
call fcn.1005ee45
add esp, 8
mov dword [0x10189050], 0x80f
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x28]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1005f415
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10189050], 0x123
mov dword [0x10189054], 0
mov dword [0x10189058], 0
mov dword [0x10189064], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1005f58e
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add ecx, 1
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x10189054], edx
mov dword [0x1018904c], 0xfe6
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x2c]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10189058], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1018905c], cl
mov dword [0x1018904c], 0x3d8
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1018905c]
mov edx, dword [0x10189058]
mov byte [ebx + edx], cl
mov edx, dword [0x10189054]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10189058]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x10189064], ecx
mov dword [0x1018904c], 0x24f
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov dl, cl
add dl, byte [0x10189069]
mov byte [0x10189068], dl
mov byte [0x10189069], ch
mov byte [0x1018906a], cl
xor ch, cl
mov dword [0x1018904c], 0x273
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov dword [0x10189050], 0x17cb
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x38], edi
je 0x1005f58e
mov eax, dword [0x10189054]
mov ecx, dword [0x10189058]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
jmp 0x1005f478
mov dword [0x1018904c], 0x1708
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret