joyce8/EMBER2024-capa huggingface dataset:
Function at 0x512cff
Capabilities:
Get graphical window text

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

Function at 0x5144fd
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 0x51453f
call fcn.0051aae1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x51453f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x514536
xor eax, eax
jmp 0x514547
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051454d
pop edi
pop esi
pop ebx
ret 4

Function at 0x51b011
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 0x51b03f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x51b05d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051af77
jmp 0x51b05d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x51b05d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051af77
test edi, edi
mov eax, edi
jne 0x51b047
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4048b0
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x43f688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call fcn.00416778
mov esi, dword [esp + 0x44]
push 0x5c
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.0042f6d2
push 0x4517dc
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004329da
mov ecx, dword [esp + 8]
push 0
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 1
call fcn.0041683b
test eax, eax
mov dword [esp + 0x14], eax
je 0x4049bc
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebp
lea ecx, [esp + 0x1c]
call fcn.00416a5b
lea ecx, [esp + 0x1c]
mov ebp, eax
call fcn.00416a22
test eax, eax
jne 0x4049b3
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x38]
test eax, eax
je 0x404991
lea eax, [esp + 0x48]
lea ecx, [esp + 0x1c]
push eax
call fcn.00416b2a
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 2
push ecx
mov ecx, edi
call fcn.004048b0
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1c]
push edx
call fcn.00416b2a
mov eax, dword [eax]
push eax
call esi
lea ecx, [esp + 0x10]
call fcn.004327ab
mov byte [esp + 0x40], 1
lea ecx, [esp + 0x48]
jmp 0x4049ae
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
call fcn.00416b2a
mov eax, dword [eax]
push eax
call fcn.0041e39a
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004327ab
test ebp, ebp
jne 0x404922
pop ebp
lea ecx, [esp + 8]
mov byte [esp + 0x3c], 0
call fcn.004327ab
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004167b5
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x4065e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4065ff
mov ecx, dword [esp + 4]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
call fcn.004327ab
ret 4
Function at 0x406790
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43faaf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov dword [esp + 0x24], 0
lea eax, [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x34], 1
call fcn.00432520
lea ecx, [esp + 8]
mov byte [esp + 0x30], 2
push ecx
lea ecx, [esp + 8]
call fcn.00432520
lea ecx, [esp + 8]
mov byte [esp + 0x30], 3
call fcn.00432c79
push 0x451738
lea ecx, [esp + 0xc]
call fcn.0042f37e
cmp eax, 0xffffffff
jne 0x406812
push str.amp_
lea ecx, [esp + 0xc]
call fcn.0042f37e
cmp eax, 0xffffffff
je 0x4069c5
push ebx
push 0x451738
lea ecx, [esp + 0x10]
call fcn.0042f37e
mov esi, eax
xor bl, bl
cmp esi, 0xffffffff
je 0x4068e7
lea edx, [esp + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00432520
lea ecx, [esp + 8]
mov byte [esp + 0x34], 4
call fcn.00432736
test esi, esi
jle 0x40687a
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.0042f2e4
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 5
call fcn.004328e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 4
call fcn.004327ab
push 0x451478
lea ecx, [esp + 0xc]
call fcn.00432b21
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
sub eax, 3
push eax
push edx
call fcn.0042f268
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 6
call fcn.00432b5d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call fcn.004327ab
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
call fcn.004328e4
lea ecx, [esp + 0xc]
call fcn.00432c79
lea ecx, [esp + 0x10]
mov bl, 1
mov byte [esp + 0x34], 3
call fcn.004327ab
push str.amp_
lea ecx, [esp + 0x10]
call fcn.0042f37e
mov esi, eax
cmp esi, 0xffffffff
je 0x4069bc
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00432520
lea ecx, [esp + 8]
mov byte [esp + 0x34], 7
call fcn.00432736
test esi, esi
jle 0x40694c
lea edx, [esp + 0x20]
push esi
push edx
lea ecx, [esp + 0x1c]
call fcn.0042f2e4
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 8
call fcn.004328e4
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 7
call fcn.004327ab
push 0x4521a4
lea ecx, [esp + 0xc]
call fcn.00432b21
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
mov eax, dword [eax - 8]
sub eax, esi
sub eax, 5
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0042f268
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x38], 9
call fcn.00432b5d
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 7
call fcn.004327ab
lea edx, [esp + 8]
lea ecx, [esp + 0xc]
push edx
call fcn.004328e4
lea ecx, [esp + 0xc]
call fcn.00432c79
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.004327ab
jmp 0x406813
test bl, bl
jne 0x406813
pop ebx
mov esi, dword [esp + 0x38]
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00432520
mov dword [esp + 0x24], 1
lea ecx, [esp + 4]
mov byte [esp + 0x30], 2
call fcn.004327ab
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call fcn.004327ab
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 0
call fcn.004327ab
mov ecx, dword [esp + 0x28]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x409060
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43ff18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x455cd8]
test eax, eax
jne 0x40910b
mov eax, dword [0x453b24]
push esi
mov dword [esp + 4], eax
push 0x104
push 0x104
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00432b75
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call fcn.00432bc4
push 0x452654
lea ecx, [esp + 8]
call fcn.00432b21
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4090f2
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x4090f2
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [0x455cd8], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004327ab
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x409120
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409182
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x409390
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x214]
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebx
push 0
push 0
push ebp
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409479
lea eax, [esp + 0x10]
push eax
push str..htm
push SysReAllocStringLen
call fcn.00409120
add esp, 0xc
test eax, eax
jne 0x409479
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10]
push str._shellopencommand
push ecx
call edi
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
push eax
push SysReAllocStringLen
call fcn.00409120
add esp, 0xc
test eax, eax
jne 0x409479
lea ecx, [esp + 0x10]
push str.__1_
push ecx
call fcn.0041e3ea
mov esi, eax
add esp, 8
test esi, esi
jne 0x409453
lea edx, [esp + 0x10]
push 0x452964
push edx
call fcn.0041e2f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409453
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x409456
mov byte [esi], 0
push 0x451478
push esi
call edi
push ebp
push esi
call edi
lea ecx, [esp + 0x10]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x409c00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4400b8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.0043b9d5
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x48]
and eax, 0xffff
push str.IMAGE
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x409c8e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409c8e
push 0
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004397cf
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0
push ecx
mov ecx, ebp
call fcn.00409d60
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x40], 0xffffffff
call fcn.0043980b
mov eax, esi
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 4

Function at 0x40a570
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x440273
push eax
mov eax, 0x2714
mov dword fs:[0], esp
call fcn.0041e2c0
push ebp
push esi
push edi
mov ebp, ecx
push str.Software_
lea ecx, [esp + 0x10]
mov dword [esp + 0x272c], 2
call fcn.00432819
lea eax, [esp + 0x2730]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x272c], 3
call fcn.00432b5d
mov edi, dword [esp + 0x2738]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 4]
push ecx
push ebp
push 0
push 2
push 0
push 0
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a668
lea ecx, [esp + 0xc]
mov byte [esp + 0x2728], 2
call fcn.004327ab
lea ecx, [esp + 0x2730]
mov byte [esp + 0x2728], 1
call fcn.004327ab
lea ecx, [esp + 0x2734]
mov byte [esp + 0x2728], 0
call fcn.004327ab
lea ecx, [esp + 0x2738]
mov dword [esp + 0x2728], 0xffffffff
call fcn.004327ab
xor al, al
jmp 0x40a6ec
mov esi, dword [esp + 0x2734]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp]
inc eax
lea ecx, [esp + 0x10]
push eax
push ecx
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x2728], 2
call fcn.004327ab
lea ecx, [esp + 0x2730]
mov byte [esp + 0x2728], 1
call fcn.004327ab
lea ecx, [esp + 0x2734]
mov byte [esp + 0x2728], 0
call fcn.004327ab
lea ecx, [esp + 0x2738]
mov dword [esp + 0x2728], 0xffffffff
call fcn.004327ab
mov al, 1
mov ecx, dword [esp + 0x2720]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2720
ret 0xc
Function at 0x40a710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4402d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3f8
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], ebx
push str.Software_
lea ecx, [esp + 0x10]
mov dword [esp + 0x40c], 2
call fcn.00432819
lea eax, [esp + 0x414]
lea ecx, [esp + 0xc]
push eax
mov byte [esp + 0x40c], 3
call fcn.00432b5d
mov ecx, dword [esp + 0xc]
push esi
push 1
push ebx
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a7c2
mov edx, dword [0x453b24]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x410]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov byte [esp + 0x40c], 4
call fcn.00432520
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x408], 3
call fcn.004327ab
jmp 0x40a8cf
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x2c], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40a82e
mov edx, dword [0x453b24]
mov dword [esp + 8], edx
mov esi, dword [esp + 0x410]
lea eax, [esp + 8]
push eax
mov ecx, esi
mov byte [esp + 0x40c], 5
call fcn.00432520
lea ecx, [esp + 8]
mov dword [esp + 0x10], 1
mov byte [esp + 0x408], 3
call fcn.004327ab
jmp 0x40a8cf
mov ecx, dword [esi]
mov dword [esp + 0x14], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 0x452b80
lea eax, [esp + 0x18]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40a86c
cmp cl, bl
je 0x40a868
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40a86c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40a848
xor eax, eax
jmp 0x40a871
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40a8b4
mov eax, dword [0x453b24]
mov dword [esp + 8], eax
mov esi, dword [esp + 0x410]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
mov byte [esp + 0x40c], 6
call fcn.00432520
lea ecx, [esp + 8]
mov dword [esp + 0x10], 1
mov byte [esp + 0x408], 3
call fcn.004327ab
jmp 0x40a8cf
mov esi, dword [esp + 0x410]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00432819
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x408], 2
call fcn.004327ab
lea ecx, [esp + 0x414]
mov byte [esp + 0x408], 1
call fcn.004327ab
lea ecx, [esp + 0x418]
mov byte [esp + 0x408], bl
call fcn.004327ab
mov ecx, dword [esp + 0x400]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x404
ret 0xc
Function at 0x40b1d0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4403bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push esi
lea eax, [esp + 0x94]
push edi
push eax
push 0x101
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40b303
lea ecx, [esp + 0x18]
push 0x80
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40b2fd
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x40b2fd
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x40b2fd
mov ecx, dword [0x453b24]
push ebx
mov dword [esp + 0xc], ecx
xor esi, esi
mov ebx, 1
cmp word [edi + 0xa], si
mov dword [esp + 0x234], ebx
jle 0x40b2d0
mov edx, dword [0x453b24]
mov dword [esp + 0x10], edx
test esi, esi
mov byte [esp + 0x234], 2
jle 0x40b28c
push 0x451788
lea ecx, [esp + 0x10]
call fcn.00432b21
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [eax]
lea eax, [esp + 0x10]
mov dl, byte [ecx + esi]
push edx
push 0x452c0c
push eax
call fcn.0042f6bf
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00432b5d
lea ecx, [esp + 0x10]
mov byte [esp + 0x234], bl
call fcn.004327ab
movsx edx, word [edi + 0xa]
inc esi
cmp esi, edx
jl 0x40b268
mov esi, dword [esp + 0x23c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00432520
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x234], 0
call fcn.004327ab
mov eax, esi
pop ebx
jmp 0x40b346
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [0x453b24]
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x238]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
mov dword [esp + 0x234], 3
call fcn.00432520
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 1
mov byte [esp + 0x230], 0
call fcn.004327ab
mov eax, esi
mov ecx, dword [esp + 0x228]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x22c
ret 4
Function at 0x40b830
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc864
call fcn.0041e2c0
mov al, byte [0x455c74]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov byte [esp + 0x20], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
push 0x104
push ecx
push 0
mov dword [esp + 0x20], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x524]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x443960]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x40ba2e
lea ecx, [esp + 0x10]
push 0x200
push ecx
mov dword [esp + 0x18], 0x2000
call fcn.0040b7f0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x40ba17
lea edx, [esp + 0x524]
push 0x452c24
push edx
call fcn.0041e7e2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b9f1
mov esi, dword [0x443960]
lea edx, [esp + 0x124]
mov dword [esp + 0x124], 0
lea eax, [esp + 0x128]
mov edi, 0x80
test byte [edx + 3], 0x80
mov ecx, dword [edx]
je 0x40b91e
add ecx, ecx
mov dword [eax], ecx
xor ecx, esi
mov dword [eax - 4], ecx
jmp 0x40b927
add ecx, ecx
mov dword [eax - 4], ecx
xor ecx, esi
mov dword [eax], ecx
add eax, 8
add edx, 4
dec edi
jne 0x40b90b
mov eax, dword [esp + 0x10]
push ebx
push eax
xor esi, esi
push 1
push ebp
mov dword [esp + 0x28], esi
call fcn.0041e69a
add esp, 0x10
test eax, eax
je 0x40b98e
mov edx, eax
dec eax
test edx, edx
mov ecx, ebp
je 0x40b979
inc eax
mov edi, dword [esp + 0x1b]
xor edx, edx
mov dl, byte [ecx]
and edi, 0xff
xor edx, edi
shl esi, 8
mov edx, dword [esp + edx*4 + 0x124]
xor esi, edx
inc ecx
dec eax
mov dword [esp + 0x18], esi
jne 0x40b955
mov eax, dword [esp + 0x10]
push ebx
push eax
push 1
push ebp
call fcn.0041e69a
add esp, 0x10
test eax, eax
jne 0x40b94b
push ebx
call fcn.0041e61d
mov edx, dword [0x443964]
add esp, 4
xor ecx, ecx
cmp esi, edx
setne cl
mov esi, ecx
test esi, esi
jne 0x40b9cb
mov edx, dword [esp + 0x14]
push ebp
mov dword [edx + 4], 6
call fcn.0041e5d5
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc864
ret
cmp esi, 1
jne 0x40ba01
mov eax, dword [esp + 0x14]
push ebp
mov dword [eax + 4], 0x41
call fcn.0041e5d5
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc864
ret
mov ecx, dword [esp + 0x14]
mov esi, 4
mov dword [ecx + 4], 0x42
push ebp
call fcn.0041e5d5
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc864
ret
pop edi
pop esi
mov dword [ebx + 4], 0xb
pop ebp
mov eax, 3
pop ebx
add esp, 0xc864
ret
pop edi
pop esi
mov dword [ebx + 4], 0x46
pop ebp
mov eax, 2
pop ebx
add esp, 0xc864
ret
Function at 0x40cbc0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40cc03
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jbe 0x40cc03
mov ecx, dword [esi + 0x1c]
mov eax, dword [0x45319c]
push 1
push 0
push ecx
mov dword [esi + 0x40], eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x425805
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x455310
cmp edx, dword [eax]
je 0x425827
add eax, 8
inc ecx
cmp eax, 0x4553a0
jl 0x425818
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x455310]
jne 0x425955
mov eax, dword [0x458768]
cmp eax, 1
je 0x42592f
test eax, eax
jne 0x425858
cmp dword [0x454afc], 1
je 0x42592f
cmp edx, 0xfc
je 0x425955
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42588f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427330
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00423f70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4258d2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00423f70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x446ff0
push edi
call fcn.0041f990
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427330
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427340
lea eax, [ebp - 0xa0]
push 0x4524f4
push eax
call fcn.00427340
push dword [esi + 0x455314]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427340
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00428ab2
add esp, 0x2c
pop edi
jmp 0x425955
lea eax, [ebp + 8]
lea esi, [esi + 0x455314]
push 0
push eax
push dword [esi]
call fcn.00423f70
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 0x42e8b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041e2c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42e97b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42e97b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42e92e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42e939
or bh, 8
and edi, 0x8000000
je 0x42e954
mov eax, dword [0x459efc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42e97b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret