joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4023e0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
mov ebx, dword [esp + 0x2014]
lea eax, [esp + 4]
push ebp
mov ebp, dword [esp + 0x201c]
push esi
mov esi, dword [esp + 0x2014]
push edi
mov edi, dword [esp + 0x201c]
push 0x1000
push eax
push esi
call fcn.004093e0
add esp, 0xc
test eax, eax
je 0x402454
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push dword [esp + 0x2028]
lea eax, [esp + 0x14]
push ebx
lea eax, [eax + edi*2]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40246f
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esp + 0x2028]
lea eax, [edi + esi]
push ebp
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2004
ret

Function at 0x4024d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x3004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x3000], eax
push ebx
mov ebx, dword [esp + 0x300c]
push esi
push edi
push 0x428a54
lea edi, [esp + 0x10]
mov esi, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._PYI__d:_s_
mov eax, edi
push esi
push eax
call fcn.00401c60
add esp, 0x14
test eax, eax
js 0x402527
add edi, eax
sub esi, eax
mov eax, 0
cmovs esi, eax
lea eax, [esp + 0x3018]
push eax
push 0
push ebx
push esi
push edi
call fcn.00401030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00413c41
push 0x1000
lea eax, [esp + 0x102c]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004093e0
add esp, 0x28
pop edi
pop esi
pop ebx
test eax, eax
je 0x40258b
lea eax, [esp + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x3000]
xor ecx, esp
call fcn.0040c2c3
add esp, 0x3004
ret
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x3000]
xor ecx, esp
call fcn.0040c2c3
add esp, 0x3004
ret

Function at 0x4025b0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
mov ebx, dword [esp + 0x200c]
push esi
push edi
push str.DEBUG
lea edi, [esp + 0x10]
mov esi, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._PYI__d:_ls_
mov eax, edi
push esi
push eax
call fcn.00402490
add esp, 0x14
test eax, eax
js 0x402608
sub esi, eax
lea edi, [edi + eax*2]
mov eax, 0
cmovs esi, eax
lea eax, [esp + 0x2018]
push eax
push 0
push ebx
push esi
push edi
call fcn.00401030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00413c82
add esp, 0x1c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x200c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2004
ret
Function at 0x402710
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2010]
xor ebx, ebx
push esi
push edi
push str.ERROR
lea edi, [esp + 0x14]
mov esi, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._PYI__d:_ls_
mov eax, edi
push esi
push eax
call fcn.00402490
add esp, 0x14
test eax, eax
js 0x40276f
mov ecx, esi
lea edi, [edi + eax*2]
sub ecx, eax
mov esi, 0
mov ebx, eax
cmovns esi, ecx
lea eax, [esp + 0x201c]
push eax
push 0
push ebp
push esi
push edi
call fcn.00401030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00413c82
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10
push str.Error
lea eax, [esp + 0x18]
lea eax, [eax + ebx*2]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2004
ret

Function at 0x402980
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2000], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2010]
xor ebx, ebx
push esi
push edi
push str.WARNING
lea edi, [esp + 0x14]
mov esi, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._PYI__d:_ls_
mov eax, edi
push esi
push eax
call fcn.00402490
add esp, 0x14
test eax, eax
js 0x4029df
mov ecx, esi
lea edi, [edi + eax*2]
sub ecx, eax
mov esi, 0
mov ebx, eax
cmovns esi, ecx
lea eax, [esp + 0x201c]
push eax
push 0
push ebp
push esi
push edi
call fcn.00401030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00413c82
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x30
push str.Warning
lea eax, [esp + 0x18]
lea eax, [eax + ebx*2]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x2010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2004
ret
Function at 0x402a40
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2008
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2004], eax
mov eax, dword [esp + 0x2014]
push ebx
push ebp
mov ebp, dword [esp + 0x2014]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x10], eax
lea edi, [esp + 0x14]
mov esi, 0x1000
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._PYI__d:ERROR_
mov eax, edi
push esi
push eax
call fcn.00402490
add esp, 0x10
test eax, eax
js 0x402aa5
mov ecx, esi
lea edi, [edi + eax*2]
sub ecx, eax
mov esi, 0
mov ebx, eax
cmovns esi, ecx
lea eax, [esp + 0x2028]
push eax
push 0
push dword [esp + 0x18]
push esi
push edi
call fcn.00401030
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.00413c82
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x402ae4
sub esi, eax
lea edi, [edi + eax*2]
mov eax, 0
cmovs esi, eax
push ebp
push str._ls:
push esi
push edi
call fcn.00402490
add esp, 0x10
test eax, eax
js 0x402b05
sub esi, eax
lea edi, [edi + eax*2]
mov eax, 0
cmovs esi, eax
push 0
push esi
push edi
push 0x400
push dword [esp + 0x2030]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x402b35
push str._FormatMessageW_failed.__n
push esi
push edi
call fcn.00402490
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10
push str.Error
lea eax, [esp + 0x1c]
lea eax, [eax + ebx*2]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2008
ret
Function at 0x407a60
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1018]
xor ebx, ebx
push 0x4285d0
push eax
call fcn.004045f0
mov esi, eax
add esp, 8
test esi, esi
je 0x407abc
push 0x4286b8
push edi
call fcn.004045f0
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x407ad7
call fcn.0040f981
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.0040c2c3
add esp, 0x1004
ret
call fcn.0040f9b1
add esp, 4
test eax, eax
jne 0x407b49
push esi
push 0x1000
lea eax, [esp + 0x14]
push 1
push eax
call fcn.0040fbe2
add esp, 0x10
test eax, eax
je 0x407b30
push edi
push eax
lea eax, [esp + 0x14]
push 1
push eax
call fcn.00410305
add esp, 0x10
test eax, eax
je 0x407b2d
push edi
call fcn.0040f9dd
add esp, 4
test eax, eax
jne 0x407b2d
push esi
call fcn.0040f9b1
add esp, 4
test eax, eax
je 0x407ae3
jmp 0x407b49
push edi
jmp 0x407b3e
push esi
call fcn.0040f9dd
add esp, 4
test eax, eax
je 0x407b49
push esi
call fcn.00415bbb
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.0040f981
push edi
call fcn.0040f981
mov ecx, dword [esp + 0x1014]
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x1004
ret

Function at 0x407b80
Capabilities:
Create directory

Disassembly:
mov eax, 0x3008
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x3004], eax
mov eax, dword [esp + 0x300c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x301c]
mov ecx, esi
push edi
mov edi, dword [esp + 0x3024]
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407bc0
sub ecx, edx
mov edx, edi
lea ebx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x407bd0
sub edx, ebx
lea eax, [edx + 1]
add eax, ecx
cmp eax, 0x1000
jae 0x407c91
push 0x5c
push esi
push str._s_c
lea eax, [esp + 0x20]
push 0x1000
push eax
call fcn.00401c60
push 0x5c
push edi
mov ebp, eax
call fcn.0040d7a0
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x407c8d
mov ebx, 0x1000
sub ebx, ebp
lea ebp, [esp + ebp + 0x14]
nop
push edi
mov eax, esi
sub eax, edi
push eax
push 0x42b4b4
push ebx
push ebp
call fcn.00401c60
lea eax, [esp + 0x28]
push eax
call fcn.00404590
add esp, 0x18
test eax, eax
jne 0x407c79
push 0x1000
lea eax, [esp + 0x1018]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004093e0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push dword [eax + 0x301c]
lea eax, [esp + 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x407c91
lea eax, [esi + 1]
push 0x5c
push eax
call fcn.0040d7a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x407c20
xor eax, eax
jmp 0x407c94
or eax, 0xffffffff
mov ecx, dword [esp + 0x3014]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x3008
ret
Function at 0x407cb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push esi
xorps xmm0, xmm0
push 0x2000
movlpd qword [esp + 0x10], xmm0
call fcn.00413d99
mov esi, eax
add esp, 4
mov dword [esp + 8], esi
test esi, esi
jne 0x407ceb
push 0x2000
push str.LOADER:_failed_to_allocate_read_buffer___d_bytes___n
call fcn.004024d0
add esp, 8
jmp 0x407e81
push ebx
mov ebx, dword [esp + 0x24]
push 2
push 0
push 0
push ebx
call fcn.00410006
add esp, 0x10
test eax, eax
jns 0x407d15
push str.LOADER:_failed_to_seek_to_the_end_of_the_file__n
call fcn.004024d0
add esp, 4
jmp 0x407e80
push edi
push ebx
call fcn.00416262
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x30]
test edx, edx
ja 0x407d41
jb 0x407d2f
cmp edi, eax
jae 0x407d41
push str.LOADER:_file_is_too_short_to_contain_magic_pattern__n
call fcn.004024d0
add esp, 4
jmp 0x407e7f
push ebp
test edx, edx
jne 0x407d61
cmp edi, 0x2000
jae 0x407d61
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
jmp 0x407d6e
mov ebp, edi
mov ebx, edx
add ebp, 0xffffe000
adc ebx, 0xffffffff
sub edi, ebp
mov dword [esp + 0x10], ebx
cmp edi, eax
jb 0x407e7e
push 0
push ebx
push ebp
push dword [esp + 0x38]
call fcn.00410006
add esp, 0x10
test eax, eax
js 0x407e6f
push dword [esp + 0x2c]
push edi
push 1
push esi
call fcn.0040fbe2
add esp, 0x10
cmp eax, edi
jne 0x407e5f
mov eax, dword [esp + 0x34]
sub edi, eax
add edi, 1
je 0x407e25
lea ebx, [esi - 1]
add ebx, edi
nop dword [eax]
mov esi, dword [esp + 0x30]
mov edx, ebx
sub eax, 4
jb 0x407de1
nop dword [eax + eax]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x407de6
add edx, 4
add esi, 4
sub eax, 4
jae 0x407dd0
cmp eax, 0xfffffffc
je 0x407e47
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x407e13
cmp eax, 0xfffffffd
je 0x407e47
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x407e13
cmp eax, 0xfffffffe
je 0x407e47
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x407e13
cmp eax, 0xffffffff
je 0x407e47
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x407e47
mov eax, dword [esp + 0x34]
dec ebx
sub edi, 1
jne 0x407dc0
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, eax
mov edx, 0
add edi, ebp
adc edx, ebx
add edi, 0xffffffff
adc edx, 0xffffffff
test ebx, ebx
jne 0x407d42
test ebp, ebp
je 0x407e7e
jmp 0x407d42
xor eax, eax
add edi, ebp
adc eax, dword [esp + 0x10]
add edi, 0xffffffff
mov dword [esp + 0x18], edi
adc eax, 0xffffffff
mov dword [esp + 0x1c], eax
jmp 0x407e7e
push edi
push str.LOADER:_failed_to_read_chunk___zd_bytes___n
call fcn.004024d0
add esp, 8
jmp 0x407e7e
push ebx
push ebp
push str.LOADER:_failed_to_seek_to_the_offset_0x_llX__n
call fcn.004024d0
add esp, 0xc
pop ebp
pop edi
pop ebx
push dword [esp + 8]
call fcn.00413d7e
mov eax, dword [esp + 0x10]
add esp, 4
mov edx, dword [esp + 0x10]
pop esi
add esp, 0x18
ret
Function at 0x4082d0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x2254
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2250], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2260]
lea eax, [esp + 0x258]
push esi
push edi
push ebp
push 0x42bd48
push 0x1000
push eax
call fcn.00402490
mov ebx, eax
add esp, 0x10
cmp ebx, 0x1000
jge 0x408493
lea eax, [esp + 0x10]
mov esi, 0x1001
push eax
lea eax, [esp + 0x264]
sub esi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408493
mov edx, 0x42bd54
lea ecx, [esp + 0x3c]
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x408376
test ax, ax
je 0x408372
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x408376
add ecx, 4
add edx, 4
test ax, ax
jne 0x408350
xor eax, eax
jmp 0x40837b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40846a
mov ecx, 0x42bd58
lea eax, [esp + 0x3c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4083b6
test dx, dx
je 0x4083b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4083b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408390
xor eax, eax
jmp 0x4083bb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40846a
lea eax, [esp + 0x3c]
push eax
push 0x42bd60
lea eax, [esp + ebx*2 + 0x266]
push esi
push eax
call fcn.00402490
add esp, 0x10
cmp eax, esi
jge 0x40846a
mov eax, dword [esp + 0x10]
test al, 0x10
je 0x408443
test eax, 0x400
je 0x408420
cmp dword [esp + 0x34], 0xa000000c
jne 0x408420
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40846a
lea eax, [esp + 0x260]
push eax
push str.LOADER:_failed_to_remove_directory_symbolic_link:__ls_n
jmp 0x408462
lea eax, [esp + 0x260]
push eax
call fcn.004082d0
add esp, 4
test eax, eax
jns 0x40846a
lea eax, [esp + 0x260]
push eax
push str.LOADER:_failed_to_remove_directory:__ls_n
jmp 0x408462
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40846a
lea eax, [esp + 0x260]
push eax
push str.LOADER:_failed_to_remove_file:__ls_n
call fcn.004025b0
add esp, 8
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x408341
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
dec eax
neg eax
sbb eax, eax
jmp 0x408496
or eax, 0xffffffff
mov ecx, dword [esp + 0x2260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2254
ret
Function at 0x4085f0
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x2028
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x2024], eax
push ebx
mov ebx, dword [esp + 0x2030]
push ebp
xor ebp, ebp
mov dword [esp + 8], ebx
push esi
push edi
cmp dword [ebx + 0x3038], ebp
je 0x408694
push 0x42bb20
call fcn.004087c0
push dword [ebx + 0x3038]
mov ebp, eax
call fcn.00408030
mov edi, eax
add esp, 8
test edi, edi
jne 0x408652
push ebp
call fcn.00413d7e
add esp, 4
or eax, 0xffffffff
jmp 0x4087a7
push edi
push 0x42bb24
call fcn.00416a1c
push edi
mov esi, eax
call fcn.00413d7e
add esp, 0xc
test esi, esi
je 0x408687
push str.LOADER:_failed_to_set_the_TMP_environment_variable._n
call fcn.00402710
push ebp
call fcn.00413d7e
add esp, 8
or eax, 0xffffffff
jmp 0x4087a7
push str.LOADER:_successfully_resolved_the_specified_runtime_tmpdir_n
call fcn.004025b0
add esp, 4
lea eax, [esp + 0x34]
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x34]
push eax
push str.LOADER:_attempting_to_create_temporary_application_directory_under__ls_n
call fcn.004025b0
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
push str._MEI_d
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.004023b0
add esp, 0x18
xor esi, esi
jmp 0x4086d5
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00417242
add esp, 8
mov edi, eax
push dword [ebx + 0x301c]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40870e
push edi
call fcn.00413d7e
inc esi
add esp, 4
or ebx, 0xffffffff
cmp esi, 5
jl 0x4086d1
jmp 0x408744
push 0x1000
lea eax, [ebx + 0x2012]
push eax
push edi
call fcn.00409460
add esp, 0xc
test eax, eax
jne 0x408739
push str.LOADER:_length_of_teporary_directory_path_exceeds_maximum_path_length__n
call fcn.00402710
add esp, 4
or ebx, 0xffffffff
jmp 0x40873b
xor ebx, ebx
push edi
call fcn.00413d7e
add esp, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x3038], 0
je 0x4087a5
push 0
push 0
push 0x42bb20
call fcn.004093e0
test ebp, ebp
je 0x40878f
push 0
push 0
push ebp
mov edi, eax
call fcn.004093e0
mov esi, eax
push esi
push edi
call fcn.00416a1c
push edi
call fcn.00413d7e
push esi
call fcn.00413d7e
push ebp
call fcn.00413d7e
add esp, 0x2c
jmp 0x4087a5
mov esi, eax
push 0x42b664
push esi
call fcn.00416a1c
push esi
call fcn.00413d7e
add esp, 0x18
mov eax, ebx
mov ecx, dword [esp + 0x2034]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x2028
ret
Function at 0x4087c0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4004
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x4000], eax
mov eax, dword [esp + 0x4008]
push 0
push 0
push eax
call fcn.004093e0
add esp, 0xc
lea ecx, [esp]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 0x1000
jae 0x408853
test eax, eax
je 0x408853
push 0x1000
lea eax, [esp + 0x2004]
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x1000
jae 0x408853
test eax, eax
je 0x408853
push 0
lea eax, [esp + 0x2004]
push 0
push eax
call fcn.00409460
add esp, 0xc
mov ecx, dword [esp + 0x4000]
xor ecx, esp
call fcn.0040c2c3
add esp, 0x4004
ret
mov ecx, dword [esp + 0x4000]
xor eax, eax
xor ecx, esp
call fcn.0040c2c3
add esp, 0x4004
ret
Function at 0x408f20
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x4010
call fcn.0040c600
mov eax, dword [0x439040]
xor eax, esp
mov dword [esp + 0x400c], eax
push ebx
push esi
mov esi, dword [esp + 0x401c]
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ebx
mov dword [esp + 0x20], ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x409131
mov eax, dword [esp + 0xc]
test eax, eax
je 0x409131
push 1
push eax
call fcn.00413d73
add esp, 8
mov dword [esp + 8], eax
test eax, eax
je 0x409131
push ebp
push edi
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x18]
push eax
push ebx
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x409122
push 0x1000
lea eax, [esp + 0x2020]
push eax
lea eax, [esi + 0x2012]
push eax
call fcn.004093e0
add esp, 0xc
test eax, eax
je 0x409122
lea esi, [esp + 0x201c]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x408fd7
mov ebp, dword [esp + 0x14]
sub esi, ecx
shr ebp, 2
xor ebx, ebx
push ebp
push str.LOADER:_found__d_loaded_DLLs..._n
sar esi, 1
call fcn.004025b0
add esp, 8
xor edi, edi
test ebp, ebp
je 0x409040
mov ecx, dword [esp + 0x10]
nop word [eax + eax]
push 0x1000
lea eax, [esp + 0x20]
push eax
push dword [ecx + edi*4]
push dword [esp + 0x24]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jne 0x409088
push str.LOADER:_could_not_resolve_DLLs_name___skipping__n
call fcn.004025b0
add esp, 4
mov ecx, dword [esp + 0x10]
inc edi
cmp edi, ebp
jl 0x409010
push ebx
push str.LOADER:_found__d_DLL_s__loaded_from_applications_temporary_directory__n
call fcn.004025b0
add esp, 8
test ebx, ebx
jle 0x409122
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
nop
push 0x1000
lea eax, [esp + 0x20]
push eax
push dword [edi]
push ebp
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
jne 0x4090c1
push str.LOADER:_could_not_resolve_DLLs_name__was_it_unloaded_____skipping__n
call fcn.004025b0
add esp, 4
jmp 0x409116
lea eax, [esp + 0x1c]
push eax
push str.LOADER:_loaded_DLL:__ls_n
call fcn.004025b0
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x202c]
push eax
call fcn.00416390
add esp, 0x14
test eax, eax
jne 0x409037
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + edi*4]
mov dword [ecx + ebx*4], eax
inc ebx
jmp 0x40903b
lea eax, [esp + 0x1c]
push eax
push str.LOADER:_forcing_unload_of__ls_n
call fcn.004025b0
add esp, 8
mov esi, 1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x409108
cmp esi, 0x20
jge 0x409148
lea eax, [esp + 0x1c]
push eax
push str.LOADER:_forcing_unload_of__ls_n
call fcn.004025b0
add esp, 8
inc esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x4090e4
push esi
push str.LOADER:_DLL_unloaded_after__d_attempt_s___n
call fcn.004025b0
add esp, 8
add edi, 4
sub ebx, 1
jne 0x409060
mov ebp, dword [esp + 0x10]
push ebp
call fcn.00413d7e
add esp, 4
pop edi
pop ebp
mov ecx, dword [esp + 0x4014]
pop esi
pop ebx
xor ecx, esp
call fcn.0040c2c3
add esp, 0x4010
ret
push esi
push str.LOADER:_giving_up_after__d_attempts__n
jmp 0x40910e
Function at 0x40cf4a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40cf89
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40cf89
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40cf89
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40cf89
cmp dword [ecx + 0x74], 0xe
jbe 0x40cf89
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x414a58
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4314b0
push esi
call fcn.0041cf1e
pop ecx
pop ecx
test eax, eax
jne 0x414a86
xor al, al
jmp 0x414b03
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00414799
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x414ac0
push dword [ebp - 0x210]
call fcn.00413d7e
xor al, al
jmp 0x414b01
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x414ac6
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x414ae6
push edx
call fcn.0041498f
pop ecx
test al, al
je 0x414ab1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x414af4
mov bl, 1
push dword [ebp - 0x210]
call fcn.00413d7e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040c2c3
leave
ret