joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414ce8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004339b0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov edi, esi
xor edx, edx
and edi, 0x3f
jbe 0x414d31
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, edx
and ecx, 3
mov eax, edx
movzx ebx, byte [ebx]
shl ecx, 3
shr eax, 2
shl ebx, cl
lea eax, [ebp + eax*4 - 0x40]
xor dword [eax], ebx
inc dword [ebp + 0xc]
inc edx
cmp edx, edi
jb 0x414d0d
pop ebx
mov ecx, esi
mov eax, esi
and ecx, 3
push 1
shr eax, 2
lea ecx, [ecx*8 + 7]
pop edx
and eax, 0xf
shl edx, cl
lea eax, [ebp + eax*4 - 0x40]
xor dword [eax], edx
cmp edi, 0x37
jbe 0x414d71
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
call fcn.00412fa2
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.004339b0
add esp, 0x14
mov eax, esi
shl eax, 3
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
shr esi, 0x1d
shl eax, 3
or esi, eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.00412fa2
pop ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4154c2
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004335a0
pop ecx
mov edx, 0x456690
mov ecx, dword [ebp + 0xc]
push 4
xor edi, edi
mov dword [ebp - 0xc], eax
sub edx, ecx
mov dword [ebp - 4], 0x12
pop ebx
xor esi, esi
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 8]
movsx eax, di
shl esi, 8
mov al, byte [eax + ebx]
and eax, 0xff
or esi, eax
inc edi
cmp di, word [ebp - 0xc]
jl 0x41550e
xor edi, edi
dec dword [ebp - 8]
jne 0x4154f2
mov eax, dword [edx + ecx]
push 4
xor eax, esi
pop ebx
mov dword [ecx], eax
add ecx, ebx
dec dword [ebp - 4]
jne 0x4154ed
mov eax, dword [ebp + 0x10]
mov esi, ebx
mov ecx, 0x4566d8
mov edx, 0x100
sub ecx, dword [ebp + 0x10]
mov edi, dword [ecx + eax]
mov dword [eax], edi
add eax, ebx
dec edx
jne 0x415536
dec esi
jne 0x415529
and dword [ebp - 4], 0
and dword [ebp - 8], 0
mov esi, dword [ebp + 0xc]
push 9
pop edi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004155af
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
add esi, 8
dec edi
jne 0x415551
mov esi, dword [ebp + 0x10]
mov edi, 0x80
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004155af
mov eax, dword [ebp - 4]
add esp, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
add esi, 8
dec edi
jne 0x415580
dec ebx
jne 0x41557b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4155af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov eax, dword [ebx]
mov edi, dword [ecx]
mov dword [ebp + 8], esi
mov dword [ebp + 0x10], 0x10
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
xor eax, dword [ecx]
push eax
mov dword [ebp - 4], eax
call fcn.00415443
add dword [ebp + 8], 4
pop ecx
xor eax, edi
dec dword [ebp + 0x10]
mov edi, dword [ebp - 4]
pop ecx
jne 0x4155cd
mov ecx, eax
mov eax, dword [esi + 0x40]
xor eax, ecx
mov ecx, dword [esi + 0x44]
xor ecx, edi
pop edi
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
pop esi
pop ebx
mov dword [ecx], eax
leave
ret

Function at 0x415634
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [eax]
mov ebx, dword [ecx]
push edi
lea edi, [esi + 0x44]
mov dword [ebp + 0x10], 0x10
xor eax, dword [edi]
push dword [ebp + 0x14]
push eax
mov dword [ebp - 4], eax
call fcn.00415443
pop ecx
xor eax, ebx
mov ebx, dword [ebp - 4]
sub edi, 4
dec dword [ebp + 0x10]
pop ecx
jne 0x415652
mov edx, dword [ebp + 8]
mov ecx, eax
mov eax, dword [esi + 4]
pop edi
xor eax, ecx
mov ecx, dword [esi]
xor ecx, ebx
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
pop ebx
mov dword [ecx], eax
leave
ret

Function at 0x416dc1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x416df7
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
push ebx
push edi
mov eax, dword [ecx]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x45771c]
xor edi, eax
inc edx
dec esi
mov dword [ecx], edi
jne 0x416dd4
pop edi
pop ebx
pop esi
ret
Function at 0x4172d2
Capabilities:
Copy file

Disassembly:
mov eax, 0x449cdc
call fcn.00433058
sub esp, 0x250
push ebx
push esi
push edi
mov edi, 0x44ce68
push 0x104
mov dword [ebp - 0x1c], edi
call fcn.00442636
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov byte [esi], bl
push 0x80
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x24], edi
call fcn.00442636
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0x20], edi
mov byte [edi], bl
lea ecx, [ebp - 0x158]
mov byte [ebp - 4], 1
call fcn.00416e21
call fcn.00406bde
push eax
lea ecx, [ebp - 0x158]
call fcn.00416e94
push dword [0x457b3c]
push edi
call fcn.00433480
cmp byte [ebp + 0x18], bl
pop ecx
pop ecx
je 0x41735d
push dword [0x457b40]
push edi
call fcn.00433490
pop ecx
pop ecx
push 0x4585ec
push edi
call fcn.00433490
push esi
push str.E_Transcript
push 0x417944
push ebx
push 0x4585e8
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004170cf
add esp, 0x30
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x417489
call fcn.00406bf0
mov edx, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call dword [edx + 8]
push 0x2e
push esi
call fcn.00433220
pop ecx
cmp eax, ebx
pop ecx
je 0x4173cc
push str..exe
push eax
call fcn.00436330
pop ecx
test eax, eax
pop ecx
jne 0x4173cc
mov byte [ebp - 0xd], 1
push 0x7f02
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp byte [ebp - 0xd], bl
jne 0x41742d
cmp byte [ebp + 0x18], bl
je 0x41742d
push 0x2e
push esi
call fcn.00433220
pop ecx
cmp eax, ebx
pop ecx
je 0x417404
push str..ptx
push eax
call fcn.00433480
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push 1
push eax
lea eax, [ebp + 0x18]
push dword [ebp + 0x14]
mov dword [ebp + 0x18], ebx
push eax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00406bf0
mov ecx, eax
call fcn.00412046
jmp 0x417438
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41744d
push ebx
push ebx
push dword [0x457b44]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x5c
push esi
call fcn.00433220
push esi
push 0x461188
mov byte [eax], bl
call fcn.00433480
add esp, 0x10
call fcn.00406bde
push eax
lea ecx, [ebp - 0x158]
call fcn.00416fd3
push edi
call fcn.0044265f
push esi
call fcn.0044265f
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41abb0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 0x41aff4
push dword [ebp + 8]
push 0x2a4
push dword [0x45fb8c]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push dword [ebp + 0xc]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextA]
push esi
call fcn.0041b05c
push 8
mov edi, eax
call fcn.00442636
mov ebx, dword [ebp + 0x10]
pop ecx
pop ecx
mov dword [eax], edi
push eax
push 8
push esi
mov dword [eax + 4], ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 1
push edi
call fcn.0041b087
pop ecx
push eax
mov eax, dword [ebp - 8]
add eax, 0xffffffe6
push eax
push 0xd
push 0xd
push edi
call dword [sym.imp.USER32.dll_MoveWindow]
test ebx, ebx
jne 0x41ac76
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [ebp - 0x10]
push eax
push esi
call ebx
lea eax, [ebp - 8]
push eax
push esi
call ebx
xor ebx, ebx
push ebx
push 2
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push 6
add eax, 0xfffffffe
push eax
push dword [ebp - 8]
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ad11
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ecx, dword [0x4612c0]
add ecx, 0x64
cmp ecx, eax
jae 0x41ad6b
call esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor edi, edi
push 1
mov dword [0x4612c0], eax
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
call esi
test eax, eax
je 0x41ad6b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push edi
push edi
lea eax, [ebp - 0x1c]
push edi
push eax
jmp 0x41ad46
pop edi
pop esi
leave
ret
Function at 0x42761f
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
mov dword [ebp - 0xc], esi
je 0x427643
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x42764a
xor eax, eax
jmp 0x4277af
push eax
call fcn.004277b4
cmp dword [ebp + 0x18], esi
mov dword [ebp - 8], eax
je 0x427669
push 1
push dword [ebp + 0x18]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0xc], eax
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SetStretchBltMode]
push edi
push 3
push dword [ebp + 8]
call ebx
mov esi, dword [ebp + 0x14]
push 0xcc0020
push 0
mov edi, dword [ebp + 0xc]
push dword [ebp - 4]
mov eax, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi]
push dword [ebp - 8]
sub edx, eax
push edx
mov edx, dword [esi + 8]
sub edx, ecx
push edx
mov edx, dword [edi + 8]
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi + 0xc]
sub ecx, eax
push ecx
mov ecx, dword [edi]
sub edx, ecx
push edx
push eax
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchDIBits]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
test eax, eax
mov dword [ebp - 0x10], ecx
jne 0x42778d
push eax
push dword [ebp - 4]
push dword [ebp - 4]
call fcn.004277b4
push eax
push 4
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push 3
mov dword [ebp + 0xc], eax
push dword [ebp + 8]
call ebx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp + 0xc]
mov dword [ebp + 0x18], eax
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, dword [edi]
mov ecx, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp + 0x14], ebx
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov edx, dword [edi + 4]
sub ebx, eax
push 0xcc0020
sub esi, ecx
push ebx
push esi
push eax
mov eax, dword [edi + 0xc]
push ecx
push dword [ebp + 0x18]
sub eax, edx
push eax
mov eax, dword [edi + 8]
sub eax, dword [ebp + 0x14]
push eax
push edx
push dword [ebp + 0x14]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_StretchBlt]
test eax, eax
jne 0x42776f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x24]
lea eax, [ebp - 0x130]
push 0
push str.cant_paint__page__d___d_bytes_left_n
push eax
call fcn.00435fcc
add esp, 0x10
push dword [ebp - 8]
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0xc], 0
pop edi
pop ebx
je 0x4277ac
push 1
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x10]
pop esi
leave
ret 0x18
Function at 0x427949
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.004339b0
add esp, 0xc
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x42799a
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call esi
test eax, eax
je 0x4279b2
mov eax, dword [ebp - 0x8c]
dec eax
dec eax
jne 0x4279b2
cmp dword [ebp - 0x98], 5
jb 0x4279b2
push 1
pop eax
jmp 0x4279b4
xor eax, eax
pop esi
leave
ret

Function at 0x427c70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x461
mov edi, ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1004
push eax
mov dword [ebp - 4], eax
call esi
and dword [ebp + 8], 0
mov ebx, eax
test ebx, ebx
jle 0x427cfb
push 2
push dword [ebp + 8]
push 0x102c
push dword [ebp - 4]
call esi
and eax, 2
cmp al, 2
je 0x427cca
inc dword [ebp + 8]
cmp dword [ebp + 8], ebx
jl 0x427caa
jmp 0x427cfb
mov ebx, 0x104
add edi, 0x6fc
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x2c]
and dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], edi
push 0x102d
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42b7a1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
imul edi, edi, 0x1c
mov esi, ecx
mov eax, dword [esi + 8]
add eax, edi
mov ebx, dword [eax]
test ebx, ebx
jne 0x42b815
push dword [esi + 0x14]
push dword [eax + 0xc]
movzx eax, word [eax + 8]
push dword [esi + 4]
push eax
push dword [0x45fb8c]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov ebx, eax
push ebx
call fcn.00427d21
pop ecx
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 4]
sub ecx, eax
push 1
sub ecx, 0x3c
add eax, 0x11
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0xffffffde
push ecx
push eax
push 0x11
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esi + 8]
mov dword [eax + edi], ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push ebx
call edi
mov eax, dword [esi + 0x24]
test eax, eax
je 0x42b82c
push 0
push eax
call edi
push ebx
mov dword [esi + 0x24], ebx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42e050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
push 0x455e24
rep stosd dword es:[edi], eax
mov ax, word [esp + 0x174]
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x24], 0x44
mov word [esp + 0x54], ax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x168]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x60]
push edx
push eax
call esi
lea ecx, [esp + 0x60]
push 0x45b028
push ecx
call esi
mov eax, dword [esp + 0x16c]
test eax, eax
je 0x42e0c1
lea edx, [esp + 0x60]
push eax
push edx
call esi
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x7c]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x42e109
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, ebx
call fcn.0042f920
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret 0x10
mov eax, dword [esp + 0x174]
test eax, eax
je 0x42e121
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
mov eax, 0x20
pop ebx
add esp, 0x158
ret 0x10
Function at 0x42e84d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44a1f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x45baa0]
push esi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0042e150
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.0042e150
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.0042e150
lea ecx, [esp + 4]
mov byte [esp + 0x28], 4
mov dword [esp + 4], 0x44d5d4
call fcn.0042e620
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
push eax
call fcn.0042e680
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 5
push ecx
lea ecx, [esp + 8]
call fcn.0042eb70
mov eax, dword [eax]
lea ecx, [esi + 0x10]
push eax
mov byte [esp + 0x2c], 6
call fcn.00442a7e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 5
call fcn.004428f5
lea edx, [esp + 0x30]
lea ecx, [esp + 4]
push edx
call fcn.0042ebc0
mov eax, dword [eax]
lea ecx, [esi + 0x14]
push eax
mov byte [esp + 0x2c], 7
call fcn.00442a7e
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 5
call fcn.004428f5
mov dword [esi + 0x18], 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xb
call fcn.004428f5
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0xa
call fcn.004428f5
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 9
call fcn.004428f5
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 8
call fcn.004428f5
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.004428f5
mov ecx, dword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x42f920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44a5cf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0x14]
push edi
mov dword [esp + 8], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xc], 0x44d5cc
mov dword [esp + 0x10], 0x44d5c4
mov dword [esp + 8], eax
call fcn.0042e150
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0
call fcn.0042e150
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 1
call fcn.0042e150
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 2
call fcn.0042e150
lea ecx, [esp + 0x2c]
mov byte [esp + 0x3c], 3
call fcn.0042e150
mov dword [esp + 0x18], 0x44d5d4
mov dword [esp + 0x30], 0
mov dword [esp + 8], 1
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 4
call fcn.0042e1d0
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 5
call fcn.0042e2c0
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x48]
push edi
mov byte [esp + 0x40], 6
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x10], 0x44d59c
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
lea ecx, [eax - 0xc]
mov dword [esp + eax + 0xc], ecx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
lea ecx, [esp + eax + 0x10]
call fcn.0042e680
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x3c], 7
lea eax, [ecx - 2]
cmp eax, 0x9f
ja case.0x42fa33.6
xor edx, edx
mov dl, byte [eax + 0x42fb28]
jmp dword [edx*4 + 0x42fb14]
push 0
push 0
push 0
push str.XERR_OUTOFMEMORY
jmp 0x42faa6
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x48]
push eax
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0x10]
call fcn.0042e9e0
mov eax, dword [eax]
push 0
push 0
push eax
push str.XERR_FILEBADPATH
mov ecx, esi
mov byte [esp + 0x4c], 8
call fcn.0042f900
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], 7
call fcn.004428f5
jmp 0x42faad
push 0
push 0
push edi
push str.XERR_FILENOTFOUND
jmp 0x42faa6
push 0
push 0
push edi
push str.XERR_EXECBADEXEC
jmp 0x42faa6
push 0
push 0
push edi
push str.XERR_FILEGENERIC
mov ecx, esi
call fcn.0042f900
lea eax, [esp + 0x18]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0xc
call fcn.004428f5
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0xb
call fcn.004428f5
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 0xa
call fcn.004428f5
lea ecx, [esp + 0x20]
mov byte [esp + 0x3c], 9
call fcn.004428f5
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.004428f5
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8

Function at 0x433247
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x433272
test byte [esp + 8], 0x80
je 0x433261
and al, 0xfe
jmp 0x433263
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x433283
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436450
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x433b28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x433b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00436450
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x433b6b
test byte [esp + 8], 2
je 0x433b6b
call fcn.004364c3
mov dword [eax], 0xd
call fcn.004364cc
mov dword [eax], 5
jmp 0x433b44
xor eax, eax
ret
Function at 0x401cd8
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, eax
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.00404010
test eax, eax
je 0x401cfc
add esp, 0x24
pop ebx
pop esi
ret
lea esi, [esp + 0x1c]
mov dword [esp + 8], esi
mov dword [esp + 4], 1
mov dword [esp], ebx
call fcn.00403910
test eax, eax
jne 0x401da0
call fcn.004040d8
cmp eax, 0xd
je 0x401de0
mov dword [esp + 8], esi
mov dword [esp + 4], 3
mov dword [esp], ebx
call fcn.00403910
test eax, eax
je 0x401dbc
mov eax, ebx
call fcn.004018b4
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__core_file
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call fcn.00404f00
test eax, eax
je 0x401d8d
mov dword [esp + 4], eax
mov dword [esp], str._invoked_as__s
call sub.libintl_8.dll___printf__
mov dword [esp], 0x47547f
call sub.msvcrt.dll_puts
jmp 0x401cf3
mov eax, ebx
call fcn.004018b4
mov dword [esp], 0x4753a1
call sub.libintl_8.dll___printf__
add esp, 0x24
pop ebx
pop esi
ret
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401fd8
call fcn.004040d8
cmp eax, 0xd
je 0x401deb
mov dword [0x4a5048], 3
jmp 0x401cf3
mov eax, dword [ebx + 4]
mov dword [esp], eax
call fcn.00401fd8
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00402180
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.00471e04
jmp 0x401dd1

Function at 0x409e38
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test eax, eax
je 0x409eb4
mov edi, str.default
mov ecx, 8
mov esi, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x409e78
mov eax, dword [0x47336c]
test eax, eax
je 0x409ea8
test ebx, ebx
je 0x409e71
mov dword [ebx + 8], eax
or byte [ebx + 0xb4], 2
add esp, 0x10
pop ebx
pop esi
pop edi
ret
test ebx, ebx
je 0x409e98
and byte [ebx + 0xb4], 0xfd
call fcn.00409d4c
test eax, eax
je 0x409ea1
mov dword [ebx + 8], eax
add esp, 0x10
pop ebx
pop esi
pop edi
ret
call fcn.00409d4c
test eax, eax
jne 0x409e71
xor eax, eax
jmp 0x409e71
mov eax, dword [0x473374]
mov eax, dword [eax]
jmp 0x409e63
mov dword [esp], str.GNUTARGET
call sub.msvcrt.dll_getenv
test eax, eax
je 0x409e5a
jmp 0x409e4a