joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fe0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x10088c4], 1
jne 0x1001fee
call fcn.010031d0
mov eax, dword [esp + 4]
push eax
call fcn.01003210
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1002380
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x1008910]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x100239f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x100890c], 1
mov byte [0x1008908], bl
jne 0x10023f9
mov ecx, dword [0x1009ce8]
test ecx, ecx
je 0x10023e7
mov esi, dword [0x1009ce4]
sub esi, 4
cmp esi, ecx
jb 0x10023e7
mov eax, dword [esi]
test eax, eax
je 0x10023e0
call eax
mov ecx, dword [0x1009ce8]
sub esi, 4
cmp esi, ecx
jae 0x10023d2
push 0x100601c
push 0x1006014
call fcn.01002430
add esp, 8
push 0x1006024
push 0x1006020
call fcn.01002430
add esp, 8
test ebx, ebx
jne 0x1002420
push ebp
mov dword [0x1008910], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x1002b50
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x1008a20]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x1002b92
call edi
mov esi, eax
test esi, esi
je 0x1002b7c
mov eax, 1
jmp 0x1002b8d
call ebp
mov ebx, eax
test ebx, ebx
je 0x1002c9f
mov eax, 2
mov dword [0x1008a20], eax
cmp eax, 1
jne 0x1002c32
test esi, esi
jne 0x1002bab
call edi
mov esi, eax
test esi, esi
je 0x1002c9f
cmp word [esi], 0
mov eax, esi
je 0x1002bc5
add eax, 2
cmp word [eax], 0
jne 0x1002bb3
add eax, 2
cmp word [eax], 0
jne 0x1002bb3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1002c24
push edi
call fcn.01003a60
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1002c24
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1002c16
push ebx
call fcn.01003a10
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1002c9f
test ebx, ebx
jne 0x1002c43
call ebp
mov ebx, eax
test ebx, ebx
je 0x1002c9f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x1002c5b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002c4b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x1002c4b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.01003a60
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1002c7d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1003210
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x10061e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x1003234
add eax, 8
inc ebp
cmp eax, 0x1006270
jb 0x1003225
cmp ecx, dword [ebp*8 + 0x10061e0]
jne 0x10033db
mov eax, dword [0x10088c4]
cmp eax, 1
je 0x100339d
test eax, eax
jne 0x1003260
cmp dword [0x1006034], 1
je 0x100339d
cmp ecx, 0xfc
je 0x10033db
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100329b
mov ecx, 5
mov esi, 0x1001524
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10032e4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1001520
add ebx, ecx
push ebx
call fcn.010042c0
add esp, 0xc
mov ecx, 6
mov esi, 0x1001504
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001500
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x10014d8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x10061e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.01004230
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x1009be0]
test eax, eax
je 0x10033ae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x10033b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x10061e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x1004600
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x1009ce0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x10047ad
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x1009be0]
lea edi, [ecx*4 + 0x1009be0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x10047ad
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x100466e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x100467f
push 2
push ebp
push eax
call fcn.01004540
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x10047de
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x1004729
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x10046da
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x10046c7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x10046aa
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10047cf
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x1004725
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x10046a6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100479e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004772
cmp eax, 5
jne 0x100475b
mov dword [0x10088cc], eax
mov dword [0x10088c8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.01004d00
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x1004792
cmp byte [ebp], 0x1a
jne 0x1004792
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x10088c8], 0x1c
jmp 0x10047b7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x10088c8], 9
pop edi
pop esi
pop ebp
mov dword [0x10088cc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1004725
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100480f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x1004729
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1004729
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x655811e4
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x285f5a10
nop
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x2a19058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.02a191a8
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 0x2a1907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x2a1906a
add dl, dl
jne 0x2a19089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x2a190dc
xor eax, eax
add dl, dl
jne 0x2a19096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x2a1917d
add dl, dl
jne 0x2a190a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a190b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a190bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a190c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x2a190d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2a19075
mov eax, 1
add dl, dl
jne 0x2a190ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2a190f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2a190e1
sub eax, ebx
mov ebx, 1
jne 0x2a19128
mov ecx, 1
add dl, dl
jne 0x2a1910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2a19119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2a19105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a19075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x2a1913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2a1914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2a19136
cmp eax, 0x7d00
jae 0x2a1916d
cmp eax, 0x500
jb 0x2a19168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a19075
cmp eax, 0x7f
ja 0x2a19170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2a19075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x2a1919e
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 0x2a19075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401740
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x11c
mov dword [ebp - 0x114], ecx
mov dword [esp + 4], edx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
sub esp, 8
mov esi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x4d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], str.GetCurrentDirectoryA_returned__ld__GLE_ld_n
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.00401720
cmp byte [ebx + esi - 1], 0x5c
je 0x4017be
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x5c
mov word [ebx + eax], dx
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strcat]
mov eax, dword [ebp - 0x114]
test eax, eax
jne 0x4017e0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x110]
mov esi, ebx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x110]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x103
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetShortPathNameA]
sub esp, 0xc
mov esi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x57
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 0x10], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], str.GetShortPathNameA_returned__ld_for__s__GLE_ld_n
mov dword [esp], eax
call fcn.00401720
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x90]
sub esp, 0x98
mov dword [esp], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
call dword [sym.imp.lz32.dll_LZOpenFileA]
sub esp, 0xc
mov esi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x63
mov eax, esi
not eax
mov dword [esp + 8], ebx
shr eax, 0x1f
mov dword [esp + 4], str.LZOpenFileA_failed_to_create__s_n
mov dword [esp], eax
call fcn.00401720
mov dword [esp], esi
call dword [sym.imp.lz32.dll_LZClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
mov ebx, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x66
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetFileAttributesA__s_:_error__ld_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x88]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401720
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x90]
sub esp, 0x94
mov dword [esp], ebx
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
call dword [sym.imp.lz32.dll_LZOpenFileA]
sub esp, 0xc
mov esi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x70
mov eax, esi
not eax
mov dword [esp + 8], ebx
shr eax, 0x1f
mov dword [esp + 4], str.LZOpenFileA_failed_to_delete__s_n
mov dword [esp], eax
call fcn.00401720
mov dword [esp], esi
call dword [sym.imp.lz32.dll_LZClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
sub esp, 4
mov ebx, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x73
lea eax, [ebp - 0x88]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
sete al
mov dword [esp + 4], str.GetFileAttributesA_succeeded_on_deleted_file___s__n
mov dword [esp], eax
call fcn.00401720
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4019d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x90]
sub esp, 0x98
mov dword [esp], ebx
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
call dword [sym.imp.lz32.dll_LZOpenFileW]
sub esp, 0xc
mov esi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x1f9
mov eax, esi
not eax
mov dword [esp + 4], str.LZOpenFileW_failed_on_creation_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
mov dword [esp], esi
call dword [sym.imp.lz32.dll_LZClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
mov ebx, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x1fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], str.GetFileAttributesW__s_:_error__ld_n
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x88]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00401720
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x401a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [ebp - 0x90]
sub esp, 0x94
mov dword [esp], ebx
mov dword [esp + 8], 0x200
mov dword [esp + 4], eax
call dword [sym.imp.lz32.dll_LZOpenFileW]
sub esp, 0xc
mov esi, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x206
mov eax, esi
not eax
mov dword [esp + 4], str.LZOpenFileW_failed_on_delete_n
shr eax, 0x1f
mov dword [esp], eax
call fcn.00401720
mov dword [esp], esi
call dword [sym.imp.lz32.dll_LZClose]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
mov ebx, eax
call fcn.00404ab0
mov dword [eax], 0x408127
mov dword [eax + 4], 0x209
lea eax, [ebp - 0x88]
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
sete al
mov dword [esp + 4], str.GetFileAttributesW_succeeded_on_deleted_file___s__n
mov dword [esp], eax
call fcn.00401720
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x405760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00405820
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x1010915e
Capabilities:
Enumerate pe sections

Disassembly:
pop ecx
add esi, 0x28
dec ecx
jmp 0x101444c5
push ebp
jmp 0x10161bd9
mov ecx, dword [esi + 0x10]
push esi
mov esi, dword [esi + 0x14]
jmp 0x103d18f6
jne 0x10379216
pop esi
pop edi
jmp 0x103968dc
mov ebp, esp
add esp, 0xfffffffc
push ebx
jmp 0x1024b668
push ebx
mov ecx, dword [edx + 0x54]
mov edi, dword [ebp + 0xc]
jmp 0x10396868
push ecx
push edx
push edi
jmp 0x102c9ffe
push esi
mov edx, dword [ebp + 8]
mov esi, edx
jmp 0x103d118e
mov edi, dword [ebp + 0xc]
add edi, dword [esi + 0xc]
push ecx
jmp 0x101266b4
rep movsb byte es:[edi], byte [esi]
movzx ecx, word [edx + 6]
pop esi
jmp 0x10379216
pop edx
pop ecx
pop ebx
jmp 0x103d1901
add edx, dword [edx + 0x3c]
movzx ecx, word [edx + 0x14]
lea ebx, [ecx + edx + 0x18]
jmp 0x1022e2e1
add esi, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10093c61
leave
ret 8

Function at 0x1033eb1f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ax, word [edx + ebx*2]
cmp al, 0x40
jl 0x101b98b2
jmp 0x101f3d97
mov edi, dword [ebp + 8]
jmp 0x1022e23c
mov ecx, dword fs:[0x30]
jmp 0x10304646
push ecx
push edx
push edi
jmp 0x10144125
xor eax, dword [ebp + 0x10]
test eax, eax
je 0x10161d6c
jmp 0x102acadf
lea edi, [ebp - 0x104]
push edi
lea edx, [ecx + 0x30]
jmp 0x10094053
jne 0x100010e1
pop eax
call fcn.100937e6
jmp 0x10379499
mov edx, dword [edx]
or edx, edx
jne 0x103969da
jmp 0x103969d2
shl eax, 1
add eax, dword [ebx + 0x24]
add eax, edi
jmp 0x10109042
jmp 0x102acadf
mov eax, dword [esi]
or eax, eax
jmp 0x101b97b2
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebx + 0x1c]
jmp 0x10126b3a
add esi, 4
inc ecx
call fcn.100937e6
jmp 0x10058f8f
add eax, edi
mov eax, dword [eax]
add eax, edi
jmp 0x1037914e
push esi
cmp dword [ebp + 8], 0
je 0x100011e8
jmp 0x100011e0
mov eax, dword [ebx + 8]
mov ebx, dword [ebx]
add ebx, edi
jmp 0x10379324
jmp 0x10109048
sub ecx, 1
mov eax, ecx
jmp 0x1009433c
mov ebp, esp
add esp, 0xfffffef4
push ebx
jmp 0x1003ba83
jne 0x101b97bd
jmp 0x1022e1c4
add eax, edi
jmp 0x1010914c
stosb byte es:[edi], al
inc ebx
test ax, ax
jmp 0x10076416
cmp al, 0x5b
jg 0x101b98b2
add al, 0x20
jmp 0x101b98b2
ret 0x10
xor eax, eax
jmp 0x1037914e
jne 0x103793e5
push dword [ebx + 0x18]
pop dword [ebp - 0x108]
jmp 0x1039682b
mov ebx, edi
add ebx, dword [ebx + 0x3c]
lea ebx, [ebx + 0x78]
jmp 0x10161cc6
cmp dword [ebp - 0x108], ecx
jne 0x10109016
jmp 0x1022e1c4
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx]
jmp 0x10058fa7
push ebp
jmp 0x1017f2d3
pop ecx
pop ebx
leave
jmp 0x1022e1c1
pop esi
pop edi
pop edx
jmp 0x1035bea2
push dword [ebx + 0x10]
pop dword [ebp - 0x10c]
cmp dword [ebp + 0x14], 0
jmp 0x1022e200
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x10c]
jmp 0x10161d67
xor eax, dword [ebp + 0xc]
jne 0x1030464c
mov edi, dword [ecx + 0x18]
jmp 0x1022e23c
mov esi, dword [ebx + 0x20]
add esi, edi
xor ecx, ecx
jmp 0x10109011
mov edi, dword [ebp + 0xc]
jmp 0x1022e23c
xor ebx, ebx
jmp 0x100010e1