joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d9f6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ab5c8
push 0x4ab5c0
push 0x4ab5c8
push 0x1e
call fcn.0046df52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46da2a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x46da30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46da74
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x4ab5e4
push str.FlsGetValue
push 0x20
call fcn.0046df52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46daab
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x472bd2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x472c1d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00472d48
test al, al
jne 0x472c17
sub edx, 2
cmp edx, edi
jne 0x472bfd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x472c3f
lea eax, [edi + 2]
cmp edx, eax
je 0x472c3f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00472b1e
add esp, 0x10
jmp 0x472d39
push esi
lea ecx, [ebp - 0x255]
call fcn.00472d48
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x472c82
push dword [ebp - 0x25c]
jmp 0x472c2f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x472cbf
cmp word [ebp - 0x226], 0
je 0x472ce0
cmp word [ebp - 0x226], ax
jne 0x472cbf
cmp word [ebp - 0x224], 0
je 0x472ce0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00472b1e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x472d2c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x472c99
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x472d14
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x472d39
push 0x472d70
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00469bb0
add esp, 0x10
jmp 0x472d09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00453803
leave
ret
Function at 0x473ee1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x473f7e
push ebx
push esi
call fcn.00473fcf
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00473e2a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x473f2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x473f7d
push edi
push eax
call fcn.00426ea0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x473f4b
call fcn.00440330
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x473f7c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00473e2a
add esp, 0x20
test eax, eax
jne 0x473f6a
push edi
call fcn.00440330
jmp 0x473f72
push ebx
call fcn.00440330
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x473f81
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x473f92
pop esi
ret
push ebx
push edi
push esi
call fcn.00473fcf
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00426ea0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x473fba
push ebx
push esi
push edi
call fcn.00455f00
add esp, 0xc
push 0
call fcn.00440330
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x474011
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047427a

Function at 0x476bb0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00476bbb
Function at 0x4972d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 8
call fcn.00452d6c
add esp, 4
mov dword [eax], ebx
mov dword [eax + 4], edi
xor ecx, ecx
push ecx
push ecx
push eax
push 0x497320
push ecx
push ecx
call fcn.00461eba
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x49730f
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x497940
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4ce9c0], 0
je 0x497978
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x4ce9b0]
test esi, esi
je 0x497a12
test byte [0x4c0c40], 1
je 0x497961
cmp byte [esi + 0xb], 0
jns 0x497997
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4b3fe0]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4ce9c0], eax
inc eax
cmp eax, 1
ja 0x497961
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.00456480
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x497ab8
xor ebx, ebx
jmp 0x497961
push 0xc
call fcn.00452d6c
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.00456480
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edi, edi
dec edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, esi
lea eax, [ebp - 0x218]
push eax
call fcn.00420950
movzx eax, byte [esi + 0xb]
test al, al
jns 0x497a69
mov eax, dword [esi + 4]
mov ecx, esi
push eax
push 0x5c
call fcn.0043d780
cmp eax, edi
je 0x497aa1
movzx ecx, byte [esi + 0xb]
mov edx, ecx
test cl, cl
jns 0x497a84
mov edx, dword [esi + 4]
cmp edx, eax
jbe 0x497b68
mov edx, eax
inc edx
test cl, cl
js 0x497b4d
mov word [esi + eax*2 + 2], 0
mov byte [esi + 0xb], dl
mov ecx, esi
push 0x4b4068
call fcn.00421da0
mov dword [0x4ce9b0], esi
jmp 0x497986
mov ecx, dword [0x4ce9b0]
push esi
call fcn.004218a0
mov ecx, dword [0x4ce9b0]
movzx eax, byte [ecx + 0xb]
test al, al
js 0x497b5e
mov edx, ecx
cmp word [edx + eax*2 - 2], 0x5c
je 0x497af0
push 0x4b4064
call fcn.00421da0
mov ecx, dword [0x4ce9b0]
push 0x4b4068
call fcn.00421da0
mov eax, dword [0x4ce9b0]
cmp byte [eax + 0xb], 0
jns 0x497b07
mov eax, dword [eax]
movaps xmm0, xmmword [0x4b3fe0]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4ce9c0], eax
inc eax
cmp eax, 1
ja 0x497961
mov dword [0x4ce9c0], 0
jmp 0x497a0b
mov ecx, dword [esi]
mov word [ecx + eax*2 + 2], 0
mov dword [esi + 4], edx
jmp 0x497aa1
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
jmp 0x497ad8
mov ecx, esi
call fcn.00495eb0
int3
Function at 0x498da0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4be014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x498e12
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x498e16
cmp byte [ebp + 0xc], 0
je 0x498df2
cmp byte [esi + 4], 0
je 0x498e67
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, esi
push edi
call fcn.00426700
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453803
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x498dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x498e3c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x498e40
xor ebx, ebx
jmp 0x498dfc
mov eax, dword [esi]
jmp 0x498e28
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x498e6e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x498df2
mov edi, dword [ebp - 0x14]
jmp 0x498df2
mov eax, dword [esi]
jmp 0x498de6
mov eax, dword [esi]
jmp 0x498e53
Function at 0x401190
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x42b0c0]
test eax, eax
push esi
push edi
je 0x4011eb
mov eax, dword [esp + 0x10]
mov edx, dword [0x42a054]
mov ecx, dword [0x42a058]
lea esi, [edx + eax]
cmp esi, ecx
jl 0x4011b6
sub ecx, edx
mov eax, ecx
test eax, eax
jle 0x40125f
mov esi, dword [0x42a050]
mov edi, dword [esp + 0xc]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x42a054]
add ecx, eax
pop edi
mov dword [0x42a054], ecx
pop esi
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
push eax
push ecx
push 1
push esi
call fcn.00416328
mov edi, eax
mov eax, dword [0x42b0b0]
add esp, 0x10
test eax, eax
je 0x40125d
test edi, edi
jle 0x40125d
mov edx, dword [0x42af1c]
mov eax, dword [0x42af00]
lea ecx, [eax + edx]
mov edx, dword [0x42af0c]
mov eax, dword [0x42af08]
add eax, edx
and ecx, 0xff
and eax, 0xff
test edi, edi
jle 0x40125d
mov dl, byte [0x42af14]
push ebx
push ebp
mov ebp, edi
mov bl, byte [esi]
xor bl, cl
sub bl, al
add dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x401247
pop ebp
mov byte [0x42af14], dl
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x410620
Capabilities:
Log keystrokes

Disassembly:
push ecx
push edi
push esi
call dword [sym.imp.USER32.dll_TranslateMessage]
push esi
call dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [0x42bee0]
test byte [eax + 0x30c], 2
je 0x4106ac
mov edx, dword [esi + 4]
cmp edx, 0x200
mov edi, dword [0x42bed8]
jne 0x41068d
test edi, edi
movzx eax, word [esi + 0xc]
movzx ecx, word [esi + 0xe]
jne 0x410682
cmp dword [0x42bed0], eax
jne 0x41066b
cmp dword [0x42bed4], ecx
je 0x41068d
push 0x4282bc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.004167e3
mov dword [0x42bed0], eax
mov dword [0x42bed4], ecx
cmp edx, 0x100
jne 0x4106ac
test edi, edi
jne 0x4106ac
push 0x4282bc
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], edi
call fcn.004167e3
cmp dword [esi + 4], 0x100
jne 0x4106ea
cmp dword [esi + 8], 9
jne 0x4106c0
call fcn.00410390
push 2
call fcn.00403ed0
add esp, 4
test eax, eax
je 0x4106ea
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ecx
push eax
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push 2
call fcn.00404c90
add esp, 0x10
pop edi
pop ecx
ret
Function at 0x4106f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
cmp dword [edi + 0xec], 9
je 0x4108ab
mov ebx, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov ebp, dword [sym.imp.WINMM.dll_timeGetTime]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x410744
cmp dword [esp + 0x1c], 0x12
je 0x4108bd
lea esi, [esp + 0x18]
call fcn.00410620
jmp 0x41089e
mov eax, dword [edi + 0xec]
dec eax
cmp eax, 7
ja case.0x410754.4
jmp dword [eax*4 + 0x41091c]
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
cmp dword [esp + 0x1c], 0x12
je 0x4108d4
lea esi, [esp + 0x18]
call fcn.00410620
cmp dword [edi + 0xec], 3
je case.0x410754.3
push 0xff
push 0x3e8
push 0
push 0
push 0
call ebx
jmp 0x41089e
cmp dword [0x42a158], 0xffffffff
jne 0x4107b6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
jmp 0x4107b8
call ebp
push eax
call fcn.00403c30
add esp, 4
mov dword [edi + 0xec], eax
cmp dword [0x42a158], 0xffffffff
jne 0x410827
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
push esi
call fcn.00403c70
add esp, 4
test eax, eax
je 0x410800
mov edx, dword [edi + 0xf8]
push 0xff
sub edx, esi
push edx
push 0
push 0
push 0
call ebx
jmp 0x41089e
mov eax, dword [0x42bee0]
test byte [eax + 0x30c], 2
je 0x41089e
mov eax, dword [0x42bed8]
test eax, eax
je 0x41089e
dec eax
mov dword [0x42bed8], eax
jmp 0x41089e
call ebp
mov esi, eax
add esi, 5
push esi
call fcn.00403c70
add esp, 4
test eax, eax
je 0x410853
mov ecx, dword [edi + 0xf8]
push 0xff
sub ecx, esi
push ecx
push 0
push 0
push 0
call ebx
jmp 0x41089e
call ebp
cmp eax, dword [edi + 0xf8]
jge 0x410872
lea ecx, [ecx]
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
cmp eax, dword [edi + 0xf8]
jl 0x410860
mov edx, dword [0x42bee0]
mov dword [edi + 0xfc], eax
mov dword [edi + 0xec], 0
test byte [edx + 0x30c], 2
jmp 0x41080c
mov dword [edi + 0xec], 3
cmp dword [edi + 0xec], 9
jne 0x410714
mov dword [edi + 0xec], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x4282bc
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0
call fcn.004167e3
push 0x4282bc
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0
call fcn.004167e3
push 0x4282bc
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0xa
call fcn.004167e3
push 0x4282bc
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x2a
call fcn.004167e3
lea ecx, [ecx]
movsd dword es:[edi], dword [esi]
pop es
inc ecx
add bh, al
pop es
inc ecx
add byte [eax + 7], ah
inc ecx
add byte [ebp - 0x4affbef8], dh
or byte [ecx], al
jmp 0x41093a
inc ecx
add ah, cl
int3
Function at 0x4118c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x114
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x124]
push edi
lea eax, [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
mov dword [esp + 0x18], 0
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x12c]
jl 0x411955
mov ecx, dword [ebx + 0x130]
push eax
call fcn.00412710
mov ecx, dword [esp + 0x130]
dec ecx
je 0x411927
dec ecx
je 0x41191d
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x41192f
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x41192f
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x411981
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x24]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00415780
add esp, 8
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
lea edx, [esp + 0x10]
push edx
call fcn.00415790
add esp, 4
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0xc
Function at 0x4145e0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov edi, ecx
call fcn.00412660
mov eax, dword [edi + 0x320]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test ecx, ecx
je 0x414631
mov ecx, eax
mov esi, dword [ecx + ebx*4]
test esi, esi
mov ebp, dword [esi + 0x34]
je 0x41461b
mov ecx, esi
call fcn.004141c0
push esi
call fcn.0041679f
add esp, 4
mov edx, dword [edi + 0x320]
push 0
push ebp
mov dword [edx + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x158
call fcn.004167a4
add esp, 4
test eax, eax
je 0x41464c
mov dword [eax], 0
mov esi, eax
jmp 0x41464e
xor esi, esi
mov eax, dword [edi + 0x320]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 1
push ecx
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x44], 1
mov ecx, dword [edi + 0x31c]
push ebp
push ecx
mov ecx, esi
call fcn.00414400
xor eax, eax
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
pop esi
pop ebp
pop ebx
ret 0x10

Function at 0x415ac0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x417f12
push 0x128
push 0x423770
call fcn.0041edbc
mov eax, dword [0x42a26c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x418022
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x417fd3
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00417cd0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x417fc0
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x418022
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x418022
mov al, byte [edi]
cmp al, 0x5c
je 0x417fe1
cmp al, 0x2f
jne 0x417fe6
cmp al, byte [edi + 1]
je 0x41801c
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0041ec60
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x418022
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041ec01
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x41803e
push edi
call fcn.004164af
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041eb09
call fcn.0041edf7
ret
Function at 0x415ae0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x415afc
mov edi, 0x10
test bl, 2
je 0x415b04
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415b2e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x415b5b
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x415b99
mov al, byte [esp + 0x40]
test al, al
je 0x415b99
cmp al, 0x2e
jne 0x415b7f
mov al, byte [esp + 0x41]
test al, al
je 0x415b99
cmp al, 0x2e
jne 0x415b7f
mov al, byte [esp + 0x42]
test al, al
je 0x415b99
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.0040b510
push 0x423418
push esi
call fcn.0040b510
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415b40
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x417b79
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x417ba7
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x417bac
cmp eax, 1
je 0x417bac
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x417bb0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x42a26c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x417c40
push ebx
call fcn.00417b79
test eax, eax
pop ecx
jne 0x417c15
mov dword [0x42bf5c], 0xf
mov dword [0x42bf58], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041eb09
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x417c4f
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x417bfc
inc eax
cmp eax, 0x104
ja 0x417bfc
test edi, edi
mov ecx, edi
jne 0x417c8b
cmp eax, dword [ebp + 0xa0]
jg 0x417c6f
mov eax, dword [ebp + 0xa0]
push eax
call fcn.0041649d
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x417ca2
mov dword [0x42bf58], 0xc
jmp 0x417bfc
cmp eax, dword [ebp + 0xa0]
jle 0x417ca2
mov dword [0x42bf58], 0x22
jmp 0x417bfc
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.0041e9e0
pop ecx
pop ecx
jmp 0x417bfe