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

Disassembly:
sub esp, 0x18
mov edx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [esp + 0x30]
mov ecx, edi
add ecx, dword [esp + 0x38]
mov eax, edx
adc eax, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
cmp eax, esi
mov dword [esp + 0x3c], eax
jb 0x1001406e
ja 0x10014062
cmp ecx, dword [esp + 0x4c]
jbe 0x1001406e
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov ebp, dword [esp + 0x2c]
cmp ebp, edx
jb 0x1001419f
mov esi, dword [esp + 0x28]
ja 0x10014088
cmp esi, edi
jb 0x1001419f
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
cdq
sub ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
sbb eax, edx
cmp ebp, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
ja 0x1001419f
jb 0x100140bb
cmp esi, ecx
jae 0x1001419f
push ebx
lea esp, [esp]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov eax, dword [esp + 0x4c]
sub ebx, esi
sbb edi, ebp
cmp edi, eax
mov dword [esp + 0x14], edi
jb 0x100140ea
ja 0x100140e0
cmp ebx, dword [esp + 0x48]
jbe 0x100140ea
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov edi, eax
mov edx, dword [esp + 0x44]
push ebx
push ebp
push esi
call fcn.10013b50
add esp, 0xc
test eax, eax
je 0x10014178
mov edi, dword [esp + 0x44]
mov eax, ebx
sub eax, dword [esp + 0x58]
add eax, edi
cmp edi, eax
mov dword [esp + 0x34], eax
jae 0x10014174
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push eax
push ecx
push edi
call dword [esp + 0x8c]
add esp, 0x14
cmp eax, 1
jne 0x1001416a
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
xor eax, eax
xor ecx, ecx
mov edx, edi
sub edx, dword [esp + 0x50]
sbb eax, ecx
mov ecx, dword [esp + 0x74]
add edx, esi
mov esi, dword [esp + 0x78]
adc eax, ebp
push eax
push edx
call fcn.10013eb0
mov esi, dword [esp + 0x40]
add esp, 0x14
add edi, dword [esp + 0x74]
cmp edi, dword [esp + 0x34]
jb 0x10014111
mov edi, dword [esp + 0x14]
sub ebx, dword [esp + 0x18]
sbb edi, dword [esp + 0x1c]
add esi, ebx
adc ebp, edi
cmp ebp, dword [esp + 0x24]
mov dword [esp + 0x2c], esi
jb 0x100140c0
ja 0x1001419e
cmp esi, dword [esp + 0x20]
jb 0x100140c0
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x18
ret

Function at 0x10015080
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov dword [esp], 0
je 0x100150d6
push esi
push 0
push 0
push eax
push fcn.10015050
push 0
push 0
call fcn.1001b60e
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x100150ba
test esi, esi
je 0x100150ba
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
push eax
call fcn.10015050
pop ecx
ret 4
Function at 0x100177d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002dc00
push 0x10019b40
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10031708]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1001786f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001786f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1001786f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1001786f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017e10
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10039250], eax
je 0x10017e26
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x10039260]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x10017e74
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.10002cc0
cmp dword [esi + 4], ebp
jne 0x10017e63
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10017e63
call fcn.10017c20
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.1001a6af
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10017e35
mov dword [0x10039260], ebp
call fcn.100179d0
mov esi, dword [0x1003925c]
cmp esi, ebp
je 0x10017ea8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.1001a6af
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10017e90
pop ebx
pop edi
pop esi
mov dword [0x1003925c], ebp
mov dword [0x10039250], ebp
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10018180
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10039254]
test eax, eax
jne 0x100181fc
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1001819e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.1001a6b4
mov esi, eax
add esp, 4
test esi, esi
jne 0x100181b4
lea edi, [eax + 8]
jmp 0x100181d1
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x100181e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1001a6af
add esp, 4
pop esi
mov dword [0x10039254], edi
mov eax, edi
mov dword [0x10039258], 0
pop edi
ret 4
mov eax, dword [0x1003925c]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x1003925c], esi
pop esi
xor eax, eax
pop edi
ret 4

Function at 0x10018600
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 0x108
mov eax, dword [0x10031708]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push ebx
push ebp
push esi
push edi
push 0
push eax
call fcn.10017da0
mov ebp, eax
xor esi, esi
mov bl, 0x25
lea ecx, [ecx]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
lea edx, [esp + esi + 0x20]
push edx
mov edi, eax
mov dword [esp + 0x20], 0
call fcn.100188b0
cmp dword [esp + 0x10], 0
jne 0x100186c7
mov cl, byte [edi]
mov esi, eax
sub esi, ebp
cmp cl, 0xe9
je 0x100186c7
cmp cl, 0xe0
je 0x100186c7
cmp cl, 0xc2
je 0x100186c7
cmp cl, 0xc3
je 0x100186c7
cmp cl, 0xcc
je 0x100186c7
cmp cl, 0xff
jne 0x1001867c
cmp byte [edi + 1], bl
je 0x100186c7
cmp cl, 0x26
je 0x1001869a
cmp cl, 0x2e
je 0x1001869a
cmp cl, 0x36
je 0x1001869a
cmp cl, 0xe3
je 0x1001869a
cmp cl, 0x64
je 0x1001869a
cmp cl, 0x65
jne 0x100186a5
cmp byte [edi + 1], 0xff
jne 0x100186a5
cmp byte [edi + 2], bl
je 0x100186c7
cmp esi, 5
jl 0x10018630
mov eax, esi
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10019cd6
add esp, 0x108
ret 4
cmp esi, 5
jge 0x100186aa
xor eax, eax
jmp 0x100186ac

Function at 0x10018be0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
push edi
mov edi, dword [esp + 0xc]
cmp edi, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
jae 0x10018c00
mov eax, edi
pop edi
ret
push ebx
push esi
movzx esi, word [eax + 6]
xor edx, edx
test esi, esi
jbe 0x10018c2a
lea esp, [esp]
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x10018c20
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x10018c31
add edx, 1
add ecx, 0x28
cmp edx, esi
jb 0x10018c10
pop esi
pop ebx
or eax, 0xffffffff
pop edi
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop esi
pop ebx
add eax, edi
pop edi
ret
Function at 0x10018d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
mov eax, dword [0x10031708]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [eax + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0xf4]
add ecx, eax
push esi
push edi
mov edi, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + eax + 0x1c]
mov edx, dword [edi + eax + 0x20]
mov esi, dword [edi + eax + 0x24]
add ecx, eax
add edx, eax
add esi, eax
xor ebx, ebx
test ebp, 0xffff0000
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
jne 0x10018da3
cmp ebp, ecx
jb 0x10018d9c
mov edx, dword [edi + eax + 0x14]
lea edx, [edx + ecx - 1]
cmp ebp, edx
ja 0x10018d9c
sub ebp, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + ebp*4]
jmp 0x10018e0b
xor eax, eax
jmp 0x10018ed6
cmp dword [edi + eax + 0x18], ebx
mov dword [esp + 0x10], ebx
jle 0x10018e0d
jmp 0x10018db4
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
mov esi, ebp
add ecx, eax
nop
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10018de0
test dl, dl
je 0x10018ddc
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10018de0
add ecx, 2
add esi, 2
test dl, dl
jne 0x10018dc0
xor ecx, ecx
jmp 0x10018de5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x10]
je 0x10018dfc
add ecx, 1
cmp ecx, dword [edi + eax + 0x18]
mov dword [esp + 0x10], ecx
jl 0x10018db0
jmp 0x10018e0d
mov edx, dword [esp + 0x18]
movzx edx, word [edx + ecx*2]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + edx*4]
add ebx, eax
lea edx, [eax + edi]
cmp ebx, edx
jb 0x10018ed4
mov ecx, dword [esp + 0x20]
add eax, ecx
add eax, edi
cmp ebx, eax
ja 0x10018ed4
push 0x63
lea edx, [esp + 0x2d]
push 0
push edx
mov byte [esp + 0x34], 0
call fcn.10019d20
push 0x63
lea eax, [esp + 0x9d]
push 0
push eax
mov byte [esp + 0xa4], 0
call fcn.10019d20
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x18
push ebx
lea ecx, [esp + 0x2c]
push ecx
call esi
lea edx, [esp + 0x28]
push 0x2e
push edx
call fcn.1001b270
add esp, 8
test eax, eax
je 0x10018ed4
mov byte [eax], 0
add eax, 1
push eax
lea eax, [esp + 0x90]
push eax
call esi
lea ecx, [esp + 0x20]
mov al, 0x6c
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10018ed4
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.10018d20
add esp, 8
jmp 0x10018ed6
mov eax, ebx
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10019cd6
add esp, 0xe4
ret
Function at 0x10019cd6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10031708]
jne 0x10019ce0
repz ret
jmp fcn.1001bd0b

Function at 0x10021930
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10032068]
je 0x1002194b
inc edi
cmp edi, 0x17
jb 0x1002193c
cmp edi, 0x17
jae 0x10021acb
push ebp
push 3
call fcn.10025700
cmp eax, 1
pop ecx
je 0x10021a97
push 3
call fcn.10025700
test eax, eax
pop ecx
jne 0x1002197f
cmp dword [0x10039584], 1
je 0x10021a97
cmp ebx, 0xfc
je 0x10021aca
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10039ab8
push ebp
call fcn.1001cf91
add esp, 0xc
test eax, eax
je 0x100219b5
push esi
push esi
push esi
push esi
push esi
call fcn.1001bf13
add esp, 0x14
push 0x104
mov esi, 0x10039ad1
push esi
push 0
mov byte [0x10039bd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100219f9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001cf91
add esp, 0xc
test eax, eax
je 0x100219f9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001bf13
add esp, 0x14
push esi
call fcn.1001c0c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10021a3e
push esi
call fcn.1001c0c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10039dcc
push 0x1002be7c
sub ecx, eax
push ecx
push eax
call fcn.1001b9c2
add esp, 0x14
test eax, eax
je 0x10021a3e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001bf13
add esp, 0x14
jmp 0x10021a40
xor esi, esi
push 0x1002be78
push ebx
push ebp
call fcn.10025115
add esp, 0xc
test eax, eax
je 0x10021a60
push esi
push esi
push esi
push esi
push esi
call fcn.1001bf13
add esp, 0x14
push dword [edi*8 + 0x1003206c]
push ebx
push ebp
call fcn.10025115
add esp, 0xc
test eax, eax
je 0x10021a82
push esi
push esi
push esi
push esi
push esi
call fcn.1001bf13
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10025543
add esp, 0xc
jmp 0x10021aca
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10021aca
cmp ebp, 0xffffffff
je 0x10021aca
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003206c]
push dword [esi]
call fcn.1001c0c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10025543
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001dd5a
xor ebx, ebx
cmp dword [0x10039f5c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10025619
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100256f9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100256f9
push eax
call fcn.1001dcec
mov dword [esp], 0x1002cfd4
push edi
mov dword [0x10039f5c], eax
call esi
push eax
call fcn.1001dcec
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10039f60], eax
call esi
push eax
call fcn.1001dcec
mov dword [0x10039f64], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1001fe43
test eax, eax
pop ecx
pop ecx
je 0x100255e7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001bf13
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10025619
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001dcec
cmp eax, ebx
pop ecx
mov dword [0x10039f6c], eax
je 0x10025619
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001dcec
pop ecx
mov dword [0x10039f68], eax
mov eax, dword [0x10039f68]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1002569e
cmp dword [0x10039f6c], ecx
je 0x1002569e
push eax
call fcn.1001dd63
push dword [0x10039f6c]
mov esi, eax
call fcn.1001dd63
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1002569e
cmp edi, ebx
je 0x1002569e
call esi
cmp eax, ebx
je 0x1002566b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002566b
test byte [ebp - 0x18], 1
jne 0x1002569e
lea eax, [ebp - 0x10]
push eax
call fcn.1001fe7a
test eax, eax
pop ecx
je 0x10025686
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001bf13
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10025695
or dword [ebp + 0x10], 0x200000
jmp 0x100256d9
or dword [ebp + 0x10], 0x40000
jmp 0x100256d9
mov eax, dword [0x10039f60]
cmp eax, dword [ebp - 8]
je 0x100256d9
push eax
call fcn.1001dd63
cmp eax, ebx
pop ecx
je 0x100256d9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100256d9
mov eax, dword [0x10039f64]
cmp eax, dword [ebp - 8]
je 0x100256d9
push eax
call fcn.1001dd63
cmp eax, ebx
pop ecx
je 0x100256d9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10039f5c]
call fcn.1001dd63
cmp eax, ebx
pop ecx
je 0x100256f9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100256fb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408e50
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413efa
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4490e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 8]
call dword [0x41515c]
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.DH_Ctl.0
call fcn.00408c80
lea ecx, [esi + 0x18]
call dword [0x41519c]
lea ecx, [esi + 0x1c]
call dword [0x41519c]
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 3
mov dword [esi + 0x20], 0x1000000
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov word [esi + 0x30], 0
mov byte [esi + 0x32], 0
mov dword [esi + 0x34], 0
mov byte [esi + 0x38], 1
call dword [0x415150]
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call dword [0x415150]
mov eax, dword [0x4151a0]
mov dword [esi + 0x44], eax
mov eax, dword [0x4151a0]
mov dword [esi + 0x48], eax
push 0
lea ecx, [esi + 8]
mov byte [ebp - 4], 7
call fcn.00408cc0
lea ecx, [esi + 0x44]
call fcn.00409f90
lea ecx, [esi + 0x48]
call fcn.00409f90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
sub esp, ebp
or dword [ecx + 0x758b5678], 0xc
push esi
lea eax, [ebp - 0x59]
fnstcw word [eax + 0x50]
push esi
call fcn.00409ce0
mov ecx, dword [ebp + 8]
mov edx, dword [0x400bc8]
push eax
push ecx
or dword [edx + 0x40], 0x68
adc al, 0xd4
inc eax
add byte [edx - 1], dl
adc eax, sym.imp.MSVCRT.dll_fprintf
push esp
lodsb al, byte [esi]
add al, byte [ecx]
sbb edx, 0x14
cwde
sal byte [edi + ecx + 0x50], 0x60
push esp
rol byte [eax - 0x4a], cl
call dword [0xd747d0]
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
mov dl, 0x90
insd dword es:[edi], dx
nop
nop
aad 0x90
nop
hlt
Function at 0x62b5e4
Capabilities:
Execute anti-debugging instructions

Disassembly:
jg 0x62b5ee
push eax
pushal
popal
pop eax
push eax
push eax
push edx
jmp 0x62b5ff
rdtsc
jmp 0x62b60d
pop edx
pop eax
mov eax, dword [esp + 4]
jbe 0x62b625
jne 0x62b625
push eax
push edx
rdtsc
pop edx
pop eax
mov eax, dword [eax]
je 0x62b639
jbe 0x62b639
jne 0x62b639
mov dword [esp + 4], eax
pushal
jo 0x62b646
pushal
popal
jmp 0x62b654
popal
pop eax
pushal
jmp 0x62b667
adc eax, 0x3b04261e
popal
push dword [ebp + 0x122d04b1]
push 0
push edx
call 0x62b67f
and byte [edx - 0x3d], bl
pop edx
mov dword [esp + 4], edx
add dword [esp + 4], 0x16
inc edx
push edx
ret
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x4343a0]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x433054]
mov ecx, dword [0x433058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x433050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x433054]
add ecx, eax
pop edi
mov dword [0x433054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.0041fbb5
mov edi, eax
mov eax, dword [0x434390]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x4341fc]
mov eax, dword [0x4341e0]
lea ecx, [eax + edx]
mov edx, dword [0x4341ec]
mov eax, dword [0x4341e8]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x4341f4]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x4341f4], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x40f9a0
Capabilities:
Create process on windows

Disassembly:
mov cl, byte [esp + 4]
sub esp, 0x3c
test cl, 2
mov eax, 0xa
je 0x40f9b6
mov eax, 2
cmp byte [esi], 0
je 0x40fa1c
push edi
xor eax, eax
mov ecx, 0xf
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
mov eax, dword [0x434be4]
mov ecx, dword [eax + 0x34]
mov dword [esp + 0x14], edx
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
jne 0x40fa7b
push 0x4316c0
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0xe
call fcn.00420070
test cl, 0x10
push eax
je 0x40fa39
push 0x42c3a1
push 0x42c3a1
push edx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40fa5f
test cl, 0x20
je 0x40fa58
push 0x42c3a1
push 0x42c3a1
push edx
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x40fa5f
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jge 0x40fa7b
push 0x4316c0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], 0xe
call fcn.00420070
add esp, 0x3c
ret
Function at 0x412ea0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x434c08]
test byte [eax + 0x30c], 2
je 0x412f2c
mov edx, dword [esi + 4]
cmp edx, 0x200
mov edi, dword [0x434c00]
jne 0x412f0d
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x412f02
cmp dword [0x434bf8], eax
jne 0x412eeb
cmp dword [0x434bfc], ecx
je 0x412f0d
push 0x4316c0
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00420070
mov dword [0x434bf8], eax
mov dword [0x434bfc], ecx
cmp edx, 0x100
jne 0x412f2c
test edi, edi
jne 0x412f2c
push 0x4316c0
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], edi
call fcn.00420070
cmp dword [esi + 4], 0x100
jne 0x412f6a
cmp dword [esi + 8], 9
jne 0x412f40
call fcn.00412bf0
push 2
call fcn.00403c80
add esp, 4
test eax, eax
je 0x412f6a
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00404a00
add esp, 0x10
pop edi
pop ecx
ret
Function at 0x4131b0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bdee
push eax
mov dword fs:[0], esp

Function at 0x415580
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x120]
push edi
lea eax, [esp + 0x10]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x128]
jl 0x41560d
mov ecx, dword [ebx + 0x130]
push eax
call fcn.00416350
mov ecx, dword [esp + 0x12c]
dec ecx
je 0x4155df
dec ecx
je 0x4155d5
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x4155e7
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x4155e7
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x415639
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x20]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc