joyce8/EMBER2024-capa huggingface dataset:
Function at 0x680510
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x680540
mov byte [edi + esi], 2
jmp 0x680577
test al, 4
je 0x68054a
mov byte [edi + esi], 0xd
jmp 0x680577
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x680563
mov byte [edi + esi], 2
jmp 0x680577
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x680573
mov byte [edi + esi], 0x19
jmp 0x680577
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x680527
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x6805eb
cmp dl, 0xd
je 0x6805eb
xor edx, edx
jmp 0x6805f0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x6805db
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x680610
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.0067eed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x680631
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.00681c60
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x680656
push esi
call fcn.0067ef60
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.006a150c
push ebx
push edi
mov ebp, eax
call fcn.00681cd0
push 0x680690
push ebp
push esi
call fcn.00683000
push esi
call fcn.0067ef60
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x681990
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x9ba0c0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x9b9fec]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x681a0b
push 0x4c
push 1
call fcn.00696a05
mov esi, eax
add esp, 8
test esi, esi
jne 0x6819d3
push 0x9ba0c0
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x9b9fec]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x9acaf0]
inc eax
lea edx, [esi + 0xc]
mov dword [0x9acaf0], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.006854c0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x9ba0c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x681e90
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.006965dd
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.006a150c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x681f8a
call fcn.006965dd
cmp dword [eax], 0
je 0x681ed7
call fcn.006965dd
mov ebp, dword [eax]
jmp 0x681eda
or ebp, 0xffffffff
call fcn.00681a20
test esi, esi
mov dword [eax], ebp
jne 0x681eef
call fcn.006965dd
cmp dword [eax], 4
je 0x681f3f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x681f22
cmp esi, 0xffffffff
je 0x681f64
test al, 6
je 0x681f22
call fcn.00681a20
mov ecx, dword [eax]
push ecx
push ebx
call fcn.006854f0
add esp, 4
push eax
push 0x24
push 9
call fcn.00682270
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x681f82
test al, 6
je 0x681f30
test ah, 2
je 0x681f82
test esi, esi
jbe 0x681f8e
test ah, 2
je 0x681f8e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.006965dd
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.006a150c
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x681f8a
jmp 0x681ec4
call fcn.00681a20
mov eax, dword [eax]
push eax
push ebx
call fcn.006854f0
add esp, 4
push eax
push 0x24
push 2
call fcn.00682270
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x681f9b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x681fa4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x6975a2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6975c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0069656a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x6975e5
test byte [esp + 8], 2
je 0x6975e5
call fcn.006965dd
mov dword [eax], 0xd
call fcn.006965e6
mov dword [eax], 5
jmp 0x6975be
xor eax, eax
ret
Function at 0x6aaaaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x6aabcb
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x6aabaf
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x6aab01
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x6aaadf
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x6ab613
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x6ab66a
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x6ab66a
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x6ab66a
xor eax, eax
inc eax
jmp 0x6ab66c
xor eax, eax
leave
ret 0x10
Function at 0x6ab695
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x6ab703
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x81424c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x6ab6fa
cmp dword [ebp - 0xc], 4
jne 0x6ab6fa
cmp dword [ebp - 0x10], edi
je 0x6ab6fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x93b4b0], edi
xor eax, eax
jmp 0x6ab742
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x93b4b0], edi
jge 0x6ab73d
lea eax, [ebp - 0x34]
push eax
mov dword [0x93b4b0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x6ab73d
cmp word [ebp - 0x14], 5
jb 0x6ab73d
call fcn.006ab670
test eax, eax
je 0x6ab73d
emms
mov dword [0x93b4b0], 1
mov eax, dword [0x93b4b0]
pop edi
leave
ret
Function at 0x6c65e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x6ea8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.006b9e96
mov eax, dword [0x81d010]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.006bb2a3
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.006c7080
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x6c6687
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6c667e
cmp al, 0xff
je 0x6c667e
dec al
mov byte [ecx], al
jmp 0x6c6687
push ecx
call fcn.006d1b12
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x6c66b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x6c66af
cmp al, 0xff
je 0x6c66af
dec al
mov byte [ecx], al
jmp 0x6c66b8
push ecx
call fcn.006d1b12
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x6d41f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6d422c
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.006d2203
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006d21db
jmp 0x6d4238
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6d5b72
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 0x6d5bb4
call fcn.006dc5b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6d5bb4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6d5bab
xor eax, eax
jmp 0x6d5bbc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006d5bc2
pop edi
pop esi
pop ebx
ret 4

Function at 0x6dcae1
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 0x6dcb0f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6dcb2d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006dca47
jmp 0x6dcb2d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6dcb2d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006dca47
test edi, edi
mov eax, edi
jne 0x6dcb17
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6df41f
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x6df447
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x6df458
push 2
call edi
test ax, ax
jge 0x6df458
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.006d3829
cmp dword [esi + 0x30], ebx
jne 0x6df532
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.006d3829
cmp eax, dword [esp + 0x34]
jne 0x6df532
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x6df4ce
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x6df513
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x6df532
cmp eax, 0x205
je 0x6df532
cmp eax, 0x201
je 0x6df532
cmp eax, 0x204
je 0x6df532
cmp eax, ebx
jne 0x6df4f9
cmp dword [esp + 0x1c], 0x1b
je 0x6df532
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x9b6fb4]
jbe 0x6df528
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x6df48b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4055cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x42b097
call fcn.00413008
sub esp, 0x418
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x424], ebx
mov byte [ebp - 4], 1
cmp dword [ebp + 8], ebx
je 0x405662
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call main
add esp, 0xc
test eax, eax
js 0x405662
mov esi, dword [ebp - 0x14]
cmp esi, 0x400
jg 0x405646
push esi
call fcn.00403488
pop ecx
test al, al
je 0x405646
mov eax, esi
call fcn.004135f0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x405652
push esi
lea ecx, [ebp - 0x18]
call main
mov edi, dword [ebp - 0x18]
push 3
push esi
push dword [ebp + 8]
push eax
call main
cmp eax, ebx
jne 0x405694
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x405686
lea ecx, [ebp - 0x424]
call fcn.004033ed
jmp 0x405686
push edi
mov edi, dword [edi]
call main
pop ecx
cmp edi, ebx
jne 0x40567d
mov eax, 0x8007000e
jmp 0x405792
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x4056b3
call fcn.00402c7f
mov esi, eax
jmp 0x405768
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4056d0
call fcn.00402c7f
jmp 0x40575d
push esi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x4056c6
push esi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp + 8], esi
cmp eax, esi
jae 0x4056fa
mov esi, 0x8007000e
jmp 0x40575f
push eax
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call main
mov dword [ebp - 4], 1
jmp 0x405726
cmp dword [ebp - 0x424], 0
je 0x4056f3
push esi
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x424]
call main
mov eax, dword [ebp - 0x424]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], 0
push dword [ebp - 0x424]
lea ecx, [ebp - 0x20]
call main
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40578c
lea ecx, [ebp - 0x424]
call fcn.004033ed
jmp 0x40578c
push edi
mov edi, dword [edi]
call main
pop ecx
test edi, edi
jne 0x405783
mov eax, esi
lea esp, [ebp - 0x430]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x409c17
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42b2ad
call fcn.00413008
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x409d0c
cmp byte [esi + 0x49], bl
je 0x409d0c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x409c4f
xor al, al
jmp 0x409d0e
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call main
mov dword [ebp - 4], ebx
push edi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409caf
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x409cb4
dec eax
je 0x409cb8
dec eax
dec eax
je 0x409d08
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call main
mov al, bl
pop edi
jmp 0x409d0e
mov edx, dword [ebp - 0x2c]
jmp 0x409c79
mov byte [esi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409cc4
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x10]
sub edi, eax
je 0x409cea
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x409cd7
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00414d97
add esp, 0x10
cmp edi, eax
jne 0x409c9c
cmp byte [esi + 0x49], 0
je 0x409d08
test edi, edi
jne 0x409c6b
push edi
push 8
lea ecx, [ebp - 0x2c]
call main
jmp 0x409c6b
mov bl, 1
jmp 0x409c9e
mov al, 1
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a42e
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x42b32c
call fcn.00413008
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40a43a
xor eax, eax
jmp 0x40a462
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
push edi
xor edi, edi
cmp ecx, edi
je 0x40a472
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x40a472
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 1]
mov dword [esi], ecx
mov byte [eax], bl
mov eax, ebx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
cmp dword [esi + 0x54], edi
je 0x40a492
mov ecx, esi
call fcn.00406cfa
cmp dword [esi + 0x44], edi
jne 0x40a497
push dword [esi + 0x54]
push ebx
call main
pop ecx
pop ecx
test al, al
jne 0x40a45f
or eax, 0xffffffff
jmp 0x40a461
push edi
push 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x10], bl
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call main
mov dword [ebp - 4], edi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40a54a
lea eax, [ebp - 0x34]
mov edx, eax
add eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x14]
push ebx
push eax
push edx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xf]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x14]
test eax, eax
js 0x40a568
cmp eax, 1
jg 0x40a552
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40a4fe
lea eax, [ebp - 0x34]
mov edi, dword [ebp - 0x14]
sub edi, eax
je 0x40a524
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x40a511
lea eax, [ebp - 0x34]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.00414d97
add esp, 0x10
cmp edi, eax
jne 0x40a568
lea eax, [ebp - 0x10]
mov byte [esi + 0x49], 1
cmp dword [ebp - 0x18], eax
jne 0x40a57e
test edi, edi
jne 0x40a4b6
cmp dword [ebp - 0x24], 0x20
jae 0x40a568
push edi
push 8
lea ecx, [ebp - 0x34]
call main
jmp 0x40a4b6
mov edx, dword [ebp - 0x34]
jmp 0x40a4c8
cmp eax, 3
jne 0x40a568
push dword [esi + 0x54]
push dword [ebp - 0x10]
call main
pop ecx
pop ecx
test al, al
jne 0x40a57e
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x34]
call main
mov eax, esi
jmp 0x40a461
mov esi, dword [ebp + 8]
jmp 0x40a56b
Function at 0x40bed1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
push esi
push 0x400
lea eax, [ebp - 0x454]
push eax
xor esi, esi
push esi
call fcn.00410c05
add esp, 0xc
test eax, eax
jne 0x40bef9
inc eax
jmp 0x40bf62
push edi
push str._binjavacpl.exe
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
push 0x44
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00412420
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push str.__tab_update
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessA]
pop edi
test eax, eax
je 0x40bf60
push dword [ebp - 0x10]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
xor eax, eax
pop esi
leave
ret 4

Function at 0x40c5b3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.kernel32.dll_CreateEventA]
xor ebx, ebx
push ebx
push ebx
mov dword [esi + 0xc], 0xbc2
mov eax, dword [0x43b458]
push 1
push ebx
mov dword [esi + 0x18], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x20], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x38], eax
call main
mov dword [esi + 0x3c], eax
call main
push dword [esi + 0x20]
mov edi, dword [sym.imp.kernel32.dll_ResetEvent]
mov dword [esi + 0x40], eax
call edi
push dword [esi + 0x24]
call edi
push dword [esi + 0x38]
call edi
lea eax, [ebp + 8]
push eax
push ebx
push esi
push 0x40c4da
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, ebx
je 0x40c63a
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0xffffffffffffffff
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push dword [esi + 0x20]
call edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
mov ebx, 0x104
push ebx
lea eax, [esi + 0x58]
push eax
push 0x7b
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp - 0x104]
push eax
push 0x7c
push dword [esi + 0x18]
call edi
lea eax, [ebp - 0x104]
push eax
mov ecx, esi
call main
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4