joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450774
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 0x45091f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450900
mov dl, 1
mov eax, dword [0x412238]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4508ef
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.00442c98
test al, al
je 0x4508e2
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, 0x450930
lea eax, [ebp - 0x254]
call fcn.00409294
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4508e2
xor eax, eax
push ebp
push 0x4508db
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 0x450968
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4508c4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
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 0x4508c4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4508e2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4507e5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415f10
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 0x450926
lea eax, [ebp - 0x260]
call fcn.00404814
ret

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

Disassembly:
push ecx
mov eax, dword [0x490c90]
cmp byte [eax + 0xad], 0
jne 0x451309
cmp dword [0x490cac], 0
jne 0x4512ca
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x451254
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x490cac], eax
cmp dword [0x490ca8], 0
jne 0x4512e5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x490ca8], eax
cmp dword [0x490cb0], 0
jne 0x451309
push esp
push 0
push 0
push 0x4511f8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x490cb0], eax
pop edx
ret
Function at 0x4514dc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4514f3
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a064
mov eax, dword [0x48b8c4]
cmp word [eax + 2], 0
jne 0x45151b
mov eax, dword [0x48b8c4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004530dc
mov eax, dword [0x48b968]
cmp word [eax + 2], 0
jne 0x451535
mov eax, dword [0x48b968]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004532e8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411e14]
call fcn.004039d0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e3c8]
call fcn.00424210
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4516ec
mov eax, dword [0x48b7f4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004245e4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4539ac
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48b7f4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9bc
test eax, eax
je 0x45163c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c4c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9f0
test eax, eax
je 0x451650
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x452c04
call fcn.0041b1e0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x48b6fc]
cmp byte [eax], 0
jne 0x4516a1
mov eax, ebx
call fcn.00451830
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00453b84
mov eax, ebx
call fcn.004546e8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4516e1
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451ab0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x451b4f
cmp dword [ebx + 0x94], 0
jne 0x451b49
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451a38
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451b49
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 0x451b0f
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451b49
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.004141b8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451b1e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451d68
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x490c90]
cmp dword [eax + 0x30], 0
je 0x451ec5
test bl, bl
jne 0x451e16
cmp dword [esi + 0x9c], 0
jne 0x451e0b
mov eax, esi
call fcn.00454564
push eax
push 0x451c94
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x451ddc
mov eax, dword [0x490c90]
call fcn.00454b54
test al, al
je 0x451ddc
mov eax, dword [0x490cb4]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x451ddc
push 0
mov eax, dword [0x490cb4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x451dc6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x451e0b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004141b8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x451deb
inc dword [esi + 0x9c]
jmp 0x451ec5
cmp dword [esi + 0x9c], 0
jle 0x451ec5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x451ec5
cmp dword [esi + 0x44], 0
je 0x451e71
mov eax, dword [0x490c90]
call fcn.00454b54
test al, al
je 0x451e71
mov eax, dword [0x490cb4]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x451e71
push 5
mov eax, dword [0x490cb4]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x451e5b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x451ea0
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004141b8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x451e80
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x490cb4
mov ecx, 1
mov edx, dword [0x451c74]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x452958
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4529c2
mov eax, ebx
call fcn.00454b54
test al, al
jne 0x4529c2
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.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x4529af
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4529cf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x4529cf
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x453d68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453dd6
mov eax, esi
call fcn.0043db58
test al, al
je 0x453dd6
mov eax, dword [ebx + 0x84]
call fcn.0043d7a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453dd6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x453dca
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d7a8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043588c
jmp 0x453dd6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00453ba4
pop esi
pop ebx
ret

Function at 0xa1b848
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov byte [ebp - 0x10c], 0
mov byte [ebp - 0x210], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [0xa1c5c2]
mov dword [ebp - 4], 0x104
xor edx, edx
mov dword [ebp - 8], edx
jmp 0xa1b887
inc dword [ebp - 8]
dec dword [ebp - 4]
mov ecx, dword [ebp - 4]
xor eax, eax
mov al, byte [ebp + ecx - 0x10c]
cmp eax, 0x5c
jne 0xa1b881
xor edx, edx
mov dword [ebp - 4], edx
jmp 0xa1b8b6
mov ecx, dword [ebp - 4]
mov al, byte [ebp + ecx - 0x10c]
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x210], al
inc dword [ebp - 4]
mov ecx, 0x104
sub ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 4]
ja 0xa1b89f
mov eax, dword [ebp - 4]
mov byte [ebp + eax - 0x210], 0x5c
mov edx, dword [ebp - 4]
mov byte [ebp + edx - 0x20f], 0
lea ecx, [ebp - 0x210]
push ecx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov esp, ebp
pop ebp
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401443
pop dword [ebp - 0x20]
mov eax, 0x4c0b6b6e
sub eax, 0x4bcb572b
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xd0339cf4
add dword [ebp - 0x30], 0x7e1ea857
mov dword [ebp - 0x2c], 0x71ad392b
sub dword [ebp - 0x2c], 0x3f79ece6
mov dword [ebp - 0x28], 0x86c4356
add dword [ebp - 0x28], 0x43e000d8
mov dword [ebp - 0x24], 0xf2c3ff2f
add dword [ebp - 0x24], 0xd3c00d1
lea eax, [ebp - 0x30]
push eax
mov eax, 0x90eb05c8
sub eax, 0x90aa8550
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x3ac4feb
sub dword [ebp - 0x30], 0x8f39e695
mov dword [ebp - 0x2c], 0x7632af50
add dword [ebp - 0x2c], 0xcb39b225
mov dword [ebp - 0x28], 0x30819575
sub dword [ebp - 0x28], 0xcd122909
mov dword [ebp - 0x24], 0xb37e9068
add dword [ebp - 0x24], 0x4c816f98
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x2f563f19
add eax, 0xd0ea4163
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3a925
push 0
call eax
mov ecx, 0x1fb14b1e
sub ecx, 0x1fb0fa56
mov esi, eax
mov edi, 0xffdb5d5f
add edi, 0x69b6a1
add edi, dword [ebp - 0x20]
mov ebx, 0x89f7cb8f
add ebx, 0x6edc6a
add dword [ebp - 0x14], esi
mov edx, dword [edi]
add edx, ebx
mov dword [esi], edx
xor dword [ebp - 8], eax
add esi, 0xe653094e
add esi, 0x19acf6b6
add edi, 0xc2a38efc
add edi, 0x3d5c7108
loop 0x401565
add eax, 0x135f3
mov ebx, eax
add eax, 5
mov ecx, 0x76c71ead
add ecx, 0x8978e153
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4068f3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x40692a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406904
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x4068ff
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40695b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x40693d
pop edi
not eax
pop esi
ret 0xc

Function at 0x1094058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x10941a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x109407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109406a
add dl, dl
jne 0x1094089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10940dc
xor eax, eax
add dl, dl
jne 0x1094096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x109417d
add dl, dl
jne 0x10940a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10940d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1094075
mov eax, 1
add dl, dl
jne 0x10940ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10940f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10940e1
sub eax, ebx
mov ebx, 1
jne 0x1094128
mov ecx, 1
add dl, dl
jne 0x109410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1094119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1094105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x109413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x109414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1094136
cmp eax, 0x7d00
jae 0x109416d
cmp eax, 0x500
jb 0x1094168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
cmp eax, 0x7f
ja 0x1094170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1094075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x109419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1094075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402a20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c490
push 0x403c58
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.004077f0
pop ecx
mov dword [0xbb0924], eax
call fcn.00403e70
test al, al
je 0x402b1c
mov dword [ebp - 4], 0
call fcn.00404090
call fcn.00404200
call fcn.004042f0
call fcn.00404620
call fcn.004046c0
mov esi, 0x40dd70
jmp 0x402a8f
call dword [esi]
add esi, 4
cmp esi, 0x40dd70
jb 0x402a8a
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
call fcn.00404780
movzx edx, word [ebp - 0x34]
mov ecx, 0xa
test dword [ebp - 0x38], 1
cmovne ecx, edx
push ecx
push eax
push 0
push esi
call section..text
mov esi, eax
mov edi, 0x40dd70
jmp 0x402ae2
call dword [edi]
add edi, 4
cmp edi, 0x40dd70
jb 0x402add
push esi
call fcn.004027d0
or dword [ebp - 4], 0xffffffff
jmp 0x402b24
push 0xfffffffffffffffe
call fcn.00404830
pop ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404620
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x404653
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00404480
add esp, 0x14
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea eax, [eax + edi*4]
push eax
call fcn.004054b0
pop ecx
mov ebx, eax
test ebx, ebx
je 0x4046a5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + edi*4]
push eax
push ebx
push esi
call fcn.00404480
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0xbb0b64], eax
mov dword [0xbb0b68], ebx
jmp 0x4046ad
push 0xfffffffffffffffc
call fcn.00404830
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test eax, eax
cmove eax, dword [0x40ee50]
mov dword [ebp - 4], eax
mov esi, eax
xor eax, eax
cmp byte [esi], 0
je 0x4046ff
or edx, 0xffffffff
inc edx
cmp byte [esi + edx], 0
jne 0x4046e7
lea edi, [edx + 1]
cmp byte [esi], 0x3d
je 0x4046f8
add eax, edi
add esi, edi
cmp byte [esi], 0
jne 0x4046e4
inc eax
push eax
call fcn.004054b0
pop ecx
mov edx, eax
mov dword [0xbb0b6c], edx
cmp dword [0xbb0b6c], 0
je 0x404763
mov eax, dword [ebp - 4]
mov esi, eax
cmp byte [esi], 0
je 0x40474a
or eax, 0xffffffff
inc eax
cmp byte [esi + eax], 0
jne 0x404725
lea edi, [eax + 1]
cmp byte [esi], 0x3d
je 0x404743
xor ecx, ecx
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x404736
add edx, edi
add esi, edi
cmp byte [esi], 0
jne 0x404722
mov byte [edx], 0
mov eax, dword [ebp - 4]
cmp eax, dword [0x40ee50]
je 0x40476b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40476b
push 0xfffffffffffffffc
call fcn.00404830
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea esi, [edx + eax]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov edi, eax
cmp edi, esi
jae 0x404a01
lea eax, [ebp - 0x810]
cmp byte [edi], 0xa
jne 0x404979
inc dword [ebp - 0xc]
mov byte [eax], 0xd
inc eax
inc eax
inc edi
mov dl, byte [edi - 1]
mov byte [eax - 1], dl
lea edx, [ebp - 0x11]
cmp eax, edx
jae 0x40498c
cmp edi, esi
jb 0x40496d
lea edx, [ebp - 0x810]
mov ebx, eax
sub ebx, edx
push dword [ebp + 0xc]
call fcn.00405730
pop ecx
test eax, eax
je 0x4049c0
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push ebx
lea edx, [ebp - 0x810]
push edx
push dword [0xbb0c28]
push eax
call fcn.00407f70
add esp, 0x10
push dword [ebp + 0xc]
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push ebx
lea edx, [ebp - 0x810]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4049f8
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
jb 0x404a01
inc edi
cmp edi, esi
jb 0x404967
jmp 0x404a01
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0x814], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov esi, eax
cmp esi, dword [ebp - 0x814]
jae 0x404b34
lea eax, [ebp - 0x810]
cmp word [esi], 0xa
jne 0x404a8b
add dword [ebp - 0xc], 2
mov word [eax], 0xd
add eax, 2
add eax, 2
add esi, 2
mov dx, word [esi - 2]
mov word [eax - 2], dx
lea edx, [ebp - 0x12]
cmp eax, edx
jae 0x404aa8
cmp esi, dword [ebp - 0x814]
jb 0x404a79
lea edx, [ebp - 0x810]
mov edi, eax
sub edi, edx
push ebx
call fcn.00405730
pop ecx
test eax, eax
je 0x404b00
push ebx
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, edi
shr edx, 1
push edx
lea edx, [ebp - 0x810]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x404b2b
shl dword [ebp - 4], 1
mov eax, dword [ebp - 4]
add dword [ebp - 0x10], eax
cmp dword [ebp - 4], edi
jb 0x404b34
add esi, 2
cmp esi, dword [ebp - 0x814]
jb 0x404a73
jmp 0x404b34
push ebx
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 4]
push edx
push edi
lea edx, [ebp - 0x810]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x404b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404b60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc10
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add edx, eax
mov dword [ebp - 0xc0c], edx
mov eax, dword [ebp + 0x10]
mov ebx, eax
mov dword [ebp - 0xc08], 0
cmp ebx, dword [ebp - 0xc0c]
jae 0x404c12
lea eax, [ebp - 0x404]
cmp word [ebx], 0xa
jne 0x404ba9
mov word [eax], 0xd
add eax, 2
add eax, 2
add ebx, 2
mov dx, word [ebx - 2]
mov word [eax - 2], dx
lea edx, [ebp - 6]
cmp eax, edx
jae 0x404bc6
cmp ebx, dword [ebp - 0xc0c]
jb 0x404b9b
push 0
push 0
push 0x800
lea edx, [ebp - 0xc04]
push edx
lea edx, [ebp - 0x404]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x404c1e
lea esi, [ebp + eax - 0xc04]
lea eax, [ebp - 0xc04]
cmp esi, eax
jbe 0x404c77
lea edi, [ebp - 0xc04]
jmp 0x404c50
mov dword [ebp - 0xc10], 0
jmp 0x404c2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc10], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc08]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc10]
mov dword [eax + 8], edx
mov eax, dword [ebp + 8]
jmp 0x404cba
push dword [ebp + 0xc]
call fcn.004056d0
pop ecx
push 0
lea edx, [ebp - 4]
push edx
mov edx, esi
sub edx, edi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404c96
add edi, dword [ebp - 4]
cmp edi, esi
jb 0x404c50
mov eax, ebx
sub eax, dword [ebp + 0x10]
mov dword [ebp - 0xc08], eax
add ebx, 2
cmp ebx, dword [ebp - 0xc0c]
jb 0x404b95
jmp 0x404c12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc08]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov dword [edx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret