joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f628
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45f150]
cmp byte [eax + 0xc], 0
je 0x43f795
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f78e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x460af8], 0
jne 0x43f67c
push 0x43f79c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f7a4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460af8], eax
cmp dword [0x45eb0c], 0
jne 0x43f777
push 0x43f7b4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45eb0c], eax
cmp dword [0x45eb0c], 0
je 0x43f777
push 0x43f7c0
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460afc], eax
push 0x43f7d0
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b00], eax
push 0x43f7e4
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b04], eax
push 0x43f7fc
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b08], eax
push 0x43f814
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b0c], eax
push 0x43f828
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b10], eax
push 0x43f840
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b14], eax
push 0x43f858
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b18], eax
push 0x43f874
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b1c], eax
push 0x43f880
mov eax, dword [0x45eb0c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x460b20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f795
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443648
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404918
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443697
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404b88
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ae68
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44aeb8]
test si, 4
je 0x44ae7c
or bl, 1
test si, 8
je 0x44ae86
or bl, 4
test si, 1
je 0x44ae90
or bl, 8
test si, 2
je 0x44ae9a
or bl, 0x10
test si, 0x10
je 0x44aea4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44aeb3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44aebc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44aef4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44aed5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44aee4
or bl, 4
test esi, 0x20000000
je 0x44aeef
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4515b8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4515ca
add esp, 0xfffffff0
call fcn.00403ec4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad08
mov eax, dword [0x45ee28]
mov dword [eax + 4], ebx
mov dword [eax], 0x45195c
mov eax, dword [0x45ee34]
mov dword [eax + 4], ebx
mov dword [eax], 0x451968
mov eax, ebx
call fcn.00451974
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412f20]
call fcn.00403b5c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412f20]
call fcn.00403b5c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412f20]
call fcn.00403b5c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412f20]
call fcn.00403b5c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412f20]
call fcn.00403b5c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44dd8c
push eax
push 0
push 0
mov eax, dword [0x45ef70]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c770]
call fcn.0041df08
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c770]
call fcn.0041df08
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c770]
call fcn.0041df08
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451e0c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451cd4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451cd4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451cd4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451707
call fcn.00403f1c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451ab8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x451c63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x451c44
mov dl, 1
mov eax, dword [0x41333c]
call fcn.00403b5c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404918
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451c33
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0043f988
test al, al
je 0x451c26
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x451c74
lea eax, [ebp - 0x254]
call fcn.004095d0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x451c26
xor eax, eax
push ebp
push 0x451c1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451cac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x451c08
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b88
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x451c08
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404b88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c26
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x451b29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416ea0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451c6a
lea eax, [ebp - 0x260]
call fcn.00404918
ret

Function at 0x4525ac
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x460b44]
cmp byte [eax + 0xa5], 0
jne 0x45261d
cmp dword [0x460b5c], 0
jne 0x4525de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452568
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x460b5c], eax
cmp dword [0x460b58], 0
jne 0x4525f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x460b58], eax
cmp dword [0x460b60], 0
jne 0x45261d
push esp
push 0
push 0
push 0x45250c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x460b60], eax
pop edx
ret
Function at 0x452ce0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x460b44]
cmp dword [eax + 0x30], 0
je 0x452d8a
cmp dword [ebx + 0x94], 0
jne 0x452d84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x452c70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x452d84
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x452d4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x452d84
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041529c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x452d59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4538e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45391d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a08
jmp 0x45392a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040496c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x454acc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x454b0d
mov eax, esi
call fcn.0043aff8
test al, al
je 0x454b0d
mov eax, dword [ebx + 0x84]
call fcn.0043acf4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x454b0d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043acf4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x455bec
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00455550
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404dd8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x455c4a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45ef7c]
mov dl, 1
mov eax, dword [0x455448]
call fcn.0040c030
call fcn.0040432c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x455c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404dd8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x455cac
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45f15c]
mov dl, 1
mov eax, dword [0x455448]
call fcn.0040c030
call fcn.0040432c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00455580
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x455ef0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455fec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404918
mov eax, ebx
call fcn.00404bd8
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
test esi, esi
je 0x455f43
lea eax, [ebp - 0x1c]
mov edx, esi
call fcn.004049b0
jmp 0x455f50
lea eax, [ebp - 0x1c]
mov edx, 0x456004
call fcn.004049b0
mov eax, dword [ebp - 0x1c]
call fcn.00404bd8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x1c]
call fcn.00455d30
mov eax, dword [ebp - 0x20]
call fcn.00405190
push eax
lea eax, [ebp - 8]
push eax
call sub.crypt32.dll_CryptProtectData
call fcn.0040d580
test eax, eax
je 0x455fce
xor eax, eax
push ebp
push 0x455fc7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00455d98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455fce
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455ff3
lea eax, [ebp - 0x20]
call fcn.00405034
lea eax, [ebp - 0x1c]
call fcn.00404918
ret
Function at 0x456008
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
mov esi, ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x45612c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404918
lea edx, [ebp - 4]
mov eax, edi
call fcn.00455e18
mov eax, dword [ebp - 4]
call fcn.00404bd8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x45606c
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.004049b0
jmp 0x456079
lea eax, [ebp - 0x24]
mov edx, 0x456144
call fcn.004049b0
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x24]
call fcn.00455d30
mov eax, dword [ebp - 0x28]
call fcn.00405190
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
call fcn.00404bd8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.crypt32.dll_CryptUnprotectData
call fcn.0040d580
test eax, eax
je 0x456106
xor eax, eax
push ebp
push 0x4560ff
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
call fcn.00404a08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456106
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LocalFree_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_LocalFree_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456133
lea eax, [ebp - 0x28]
call fcn.00405034
lea eax, [ebp - 0x24]
call fcn.00404918
lea eax, [ebp - 4]
call fcn.00404918
ret
Function at 0x457044
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x45704c
push ecx
xor eax, eax
push ebp
push 0x457255
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
xor edx, edx
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 4]
mov eax, 0x457268
call fcn.00456bd8
lea ecx, [ebp - 8]
mov edx, 1
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 8]
mov eax, 0x45727c
call fcn.00456bd8
lea ecx, [ebp - 0xc]
mov edx, 2
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0xc]
mov eax, 0x457290
call fcn.00456bd8
lea ecx, [ebp - 0x10]
mov edx, 3
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x10]
mov eax, 0x4572a0
call fcn.00456bd8
lea ecx, [ebp - 0x14]
mov edx, 4
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x14]
mov eax, 0x4572b4
call fcn.00456bd8
lea ecx, [ebp - 0x18]
mov edx, 5
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x18]
mov eax, 0x4572c8
call fcn.00456bd8
lea ecx, [ebp - 0x1c]
mov edx, 6
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x1c]
mov eax, 0x4572dc
call fcn.00456bd8
lea ecx, [ebp - 0x20]
mov edx, 7
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x20]
mov eax, 0x4572f0
call fcn.00456bd8
lea ecx, [ebp - 0x24]
mov edx, 8
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x24]
mov eax, 0x457304
call fcn.00456bd8
lea ecx, [ebp - 0x28]
mov edx, 9
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x28]
mov eax, 0x457318
call fcn.00456bd8
lea ecx, [ebp - 0x2c]
mov edx, 0xa
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x2c]
mov eax, 0x457330
call fcn.00456bd8
lea ecx, [ebp - 0x30]
mov edx, 0xb
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x30]
mov eax, 0x457344
call fcn.00456bd8
lea ecx, [ebp - 0x34]
mov edx, 0xc
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x34]
mov eax, 0x457358
call fcn.00456bd8
lea ecx, [ebp - 0x38]
mov edx, 0xd
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x38]
mov eax, 0x45736c
call fcn.00456bd8
lea ecx, [ebp - 0x3c]
mov edx, 0xe
mov eax, 0x409
call fcn.00456ca4
mov edx, dword [ebp - 0x3c]
mov eax, 0x457380
call fcn.00456bd8
call fcn.00456c98
call fcn.00456d18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45725c
lea eax, [ebp - 0x3c]
mov edx, 0xf
call fcn.0040493c
ret
Function at 0x404550
Capabilities:
Set thread local storage value

Disassembly:
push 0x254
call fcn.00402d00
test eax, eax
pop ecx
jne 0x404562
xor eax, eax
ret
mov dword [eax], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 0x4146d4
mov dword [eax + 0xc], 0x4146d4
mov ecx, dword [esp + 4]
push eax
mov dword [eax + 0x10], ecx
mov eax, dword [0x4146d0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
ret

Function at 0x405cf0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 8
xor ebx, ebx
call fcn.00405ce0
mov ebp, dword [eax]
inc dword [eax]
test ebp, ebp
je 0x405d10
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
call fcn.00404680
push 8
call fcn.00402d00
test eax, eax
pop ecx
mov dword [0x422780], eax
je 0x405d49
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [0x422780]
mov dword [edx], eax
mov esi, dword [0x422780]
mov byte [esi + 4], 1
mov eax, dword [0x422780]
mov byte [eax + 5], 0
push 8
call fcn.00402d00
test eax, eax
pop ecx
mov dword [0x422784], eax
je 0x405d7d
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [0x422784]
mov dword [edi], eax
mov ebp, dword [0x422784]
mov byte [ebp + 4], 1
mov eax, dword [0x422784]
mov byte [eax + 5], 0
push 8
call fcn.00402d00
test eax, eax
pop ecx
mov dword [0x422788], eax
je 0x405db1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [0x422788]
mov dword [ecx], eax
mov edx, dword [0x422788]
mov byte [edx + 4], 1
mov eax, dword [0x422788]
mov byte [eax + 5], 0
mov dword [0x422dbc], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
jmp 0x405de5
mov ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add esi, eax
cmp byte [esi], 0x3d
je 0x405dd0
mov ebp, esi
jmp 0x405e05
mov ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add ebp, eax
cmp byte [ebp], 0
jne 0x405df0
sub ebp, esi
push ebp
call fcn.00402d00
test eax, eax
pop ecx
mov dword [0x4223c0], eax
je 0x405e28
push ebp
push esi
push eax
call fcn.00404720
add esp, 0xc
mov dword [0x414f50], 0x4223c0
mov eax, dword [0x414f50]
mov edx, dword [eax]
jmp 0x405e56
mov ecx, 0xffffffff
mov edi, edx
xor eax, eax
inc ebx
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add edx, eax
cmp byte [edx], 0
jne 0x405e40
inc ebx
shl ebx, 2
push ebx
call fcn.00402d00
mov dword [0x422dc0], eax
mov eax, dword [0x414f50]
xor edx, edx
pop ecx
mov esi, dword [eax]
jmp 0x405e94
mov eax, dword [0x422dc0]
mov edi, esi
mov dword [eax + edx*4], esi
xor eax, eax
mov ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
add esi, eax
cmp byte [esi], 0
jne 0x405e76
mov eax, dword [0x422dc0]
mov dword [eax + edx*4], 0
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406060
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 8
mov dword [ebp - 0x10], 1
push 4
mov dword [0x422dcc], 0
call fcn.00402d00
test eax, eax
pop ecx
mov dword [0x422dc8], eax
jne 0x406098
call fcn.00406040
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
xor eax, eax
mov ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
mov eax, 0xfffffffe
sub eax, ecx
inc eax
push eax
call fcn.00402d00
mov edi, eax
pop ecx
test edi, edi
mov dword [0x414f70], eax
jne 0x4060d3
call fcn.00406040
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
inc esi
movsx eax, byte [esi]
push eax
push str.__t_r_n_v
call fcn.004023c0
test eax, eax
pop ecx
pop ecx
jne 0x4060d2
jmp 0x4061a0
mov eax, dword [0x422dcc]
inc eax
cmp eax, dword [ebp - 0x10]
jl 0x406120
add dword [ebp - 0x10], 0x10
mov eax, dword [0x422dc8]
mov edx, dword [ebp - 0x10]
shl edx, 2
push edx
push eax
call fcn.00402db0
test eax, eax
pop ecx
pop ecx
je 0x4061a9
mov dword [0x422dc8], eax
mov eax, dword [0x422dc8]
mov ecx, dword [0x422dcc]
mov dword [eax + ecx*4], edi
inc dword [0x422dcc]
xor ebx, ebx
jmp 0x40619a
test ebx, ebx
jne 0x406171
movsx eax, al
push eax
push str.__t_r_n_v
call fcn.004023c0
test eax, eax
pop ecx
pop ecx
je 0x406171
inc esi
mov bl, byte [esi]
test bl, bl
je 0x40616b
movsx eax, bl
push eax
push str.__t_r_n_v
call fcn.004023c0
test eax, eax
pop ecx
pop ecx
jne 0x406150
mov byte [edi], 0
inc edi
jmp 0x4061a0
mov al, byte [esi]
cmp al, 0x22
jne 0x406183
xor eax, eax
inc esi
test ebx, ebx
jne 0x40617f
inc eax
mov ebx, eax
jmp 0x40619a
cmp al, 0x5c
jne 0x406196
cmp byte [esi + 1], 0x22
jne 0x406196
mov byte [edi], 0x22
inc edi
add esi, 2
jmp 0x40619a
inc esi
mov byte [edi], al
inc edi
mov al, byte [esi]
test al, al
jne 0x406138
cmp byte [esi], 0
jne 0x4060f0
mov byte [edi], 0
mov edx, dword [0x422dcc]
mov eax, dword [0x422dc8]
mov dword [eax + edx*4], 0
push 0x406000
call fcn.00405ee0
pop ecx
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret