joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x436bd7
call fcn.0042e94e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x436bd7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x436bf3
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00436708
mov esi, eax
test edi, edi
je 0x436bf1
test ebx, ebx
je 0x436bf1
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x439545
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x439569
cmp dword [edi + 0x54], 0
jne 0x439569
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042e94e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00439506
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x439fbc
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x439fe7
call fcn.0042e94e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x43a00a
push eax
push dword [esi + 4]
call fcn.00439f42
push esi
push eax
mov ecx, 0x497a0c
call fcn.00439baf
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x43b0e3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x47c768]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x43b17b
push 0x4666ac
push 4
push eax
call fcn.0044880e
push eax
call fcn.00403c50
add esp, 0x10
push ebx
push edi
call fcn.00449066
mov edi, dword [eax]
call fcn.00449066
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00449003
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00449066
cmp dword [eax], ebx
je 0x43b192
call fcn.00449066
push dword [eax]
call fcn.00427c26
pop ecx
jmp 0x43b199
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x43b126
jmp 0x43b220
call fcn.00449066
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x43b21c
cmp dword [ebp - 0x234], esi
jae 0x43b21c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.004486c0
add esp, 0xc
push 0x464b54
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x43b20b
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x43b20b
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x43b20b
push ebx
push ebx
push esi
jmp 0x43b214
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x43b21e
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00446875
leave
ret

Function at 0x43c952
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x43c99a
call fcn.0042e94e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43c99a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43c9dd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x43c9c6
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x43c9c6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43c9da
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x446875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47c768]
jne 0x44687f
repz ret
jmp fcn.0044c5c9

Function at 0x455f44
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044bfd8
and dword [ebp - 4], 0
cmp dword [0x498ae4], 0
mov ebx, eax
jne 0x455ff5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4560a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4560a6
push eax
call fcn.0044bf66
mov dword [esp], 0x468a3c
push edi
mov dword [0x498ae4], eax
call esi
push eax
call fcn.0044bf66
mov dword [esp], 0x468a28
push edi
mov dword [0x498ae8], eax
call esi
push eax
call fcn.0044bf66
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x498aec], eax
call esi
push eax
call fcn.0044bf66
pop ecx
mov dword [0x498af4], eax
test eax, eax
je 0x455ff5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044bf66
pop ecx
mov dword [0x498af0], eax
mov eax, dword [0x498af0]
cmp eax, ebx
je 0x45604d
cmp dword [0x498af4], ebx
je 0x45604d
push eax
call fcn.0044bfe1
push dword [0x498af4]
mov esi, eax
call fcn.0044bfe1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45604d
test edi, edi
je 0x45604d
call esi
test eax, eax
je 0x456044
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x456044
test byte [ebp - 0xc], 1
jne 0x45604d
or dword [ebp + 0x10], 0x200000
jmp 0x456086
mov eax, dword [0x498ae8]
cmp eax, ebx
je 0x456086
push eax
call fcn.0044bfe1
pop ecx
test eax, eax
je 0x456086
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x456086
mov eax, dword [0x498aec]
cmp eax, ebx
je 0x456086
push eax
call fcn.0044bfe1
pop ecx
test eax, eax
je 0x456086
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x498ae4]
call fcn.0044bfe1
pop ecx
test eax, eax
je 0x4560a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4560a8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413f31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00413da7

Function at 0x41828a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417ddd

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5d7d7aa9
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6c041a7b
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x4036ef
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
lea eax, [edi + 1]
shr eax, 1
push eax
push esi
push 0
call fcn.0040377c
add esp, 0xc
cmp word [esi], 0x5a4d
movzx ecx, ax
jne 0x403775
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x403775
mov dx, word [eax + 0x18]
cmp dx, 0x10b
je 0x403733
cmp dx, 0x20b
jne 0x403775
mov edx, dword [eax + 0x58]
mov esi, 0xffff
cmp cx, dx
jb 0x403749
push ebx
movzx ebx, dx
sub ecx, ebx
pop ebx
jmp 0x40374e
sub ecx, edx
and ecx, esi
dec ecx
shr edx, 0x10
cmp cx, dx
jb 0x40375d
movzx edx, dx
sub ecx, edx
jmp 0x403762
sub ecx, edx
and ecx, esi
dec ecx
mov edx, dword [esp + 0x18]
add ecx, edi
mov dword [edx], ecx
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + 0x58]
mov dword [edx], ecx
jmp 0x403777
xor eax, eax
pop edi
pop esi
ret 0x10

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41d82a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4af050
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
ror byte [ecx + 0x43455008], 0x6f
insd dword es:[edi], dx
jo 0x41d8aa
arpl word [edx + esi], si
pop edi
das
lcall 0x5cc7, 0x49981d72
lodsd eax, dword [esi]
invalid
push eax
pop edx
call 0xf8ef8ce5
leave
std
adc edx, edx
jae 0x41d83f
dec esp
cmpsb byte [esi], byte es:[edi]
mov dword [esi], ebp
rcr edx, cl
and byte [ecx], al
dec eax
push edx
sbb al, 0xb7
dec edx
enter 0x5096, 0xffffffffffffffc9
sbb al, 0x28
xchg esp, eax
dec edi
fadd dword [esi - 0x521f6eb3]
and eax, edi
enter 0x6cb9, 0x78
inc eax
jae 0x41d8f1
invalid
adc al, 0x95
sub eax, 0xa069f402
arpl word [eax + 0x5a], cx
lcall 0x516a, 0xac8b5ab6
sar byte [edx + 0x34], 0x1a
xor al, 0x1a
std
pop ebp
pushal
je 0x41d904
mov byte [0xa434d03e], al
mov esp, 0x1e3ab214
in eax, dx
jp 0x41d90c
cmp byte [ecx - 0x2fd61aa8], dl
push cs
xchg edx, eax
sub al, 0x77
call 0x996e1582
adc byte [eax + ecx*2 - 4], al
or byte [edx + edi + 0x6c4e49e2], dl
invalid
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x409ed0
Capabilities:
Encode data using xor

Disassembly:
mov ebp, esp
mov esi, 0xc35dd9d3
nop
nop
dec esp
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
test dword [eax], 0x7000000
je 0x409ec0
or ecx, 0xffffff94
inc esp
add eax, dword [ebx - 0x2e6fd637]
mov dword [0xe2c10848], eax
add al, 0xb
inc edx
mov dl, ah
add al, 0xb
lahf
dec eax
add al, 0x81
leave
add ah, ch
jo 0x409f01
push edx
push eax
mov dword [0x5b044889], eax
mov dword [eax + 4], ecx
pop ebx
loop 0x409f58
invalid

Function at 0x40a340
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40a2ed
add eax, 0xc
push eax
call dword [edi]
cmp al, al
inc eax
add byte [ebx], dh
rcr byte [ebp - 0x3e], 4
add byte [ebx - 0x9582c0], cl
mov eax, dword [eax + 0x7d]
push 0xffffffffffffffff
push eax
call dword [0x409076]
test eax, eax
je 0x40a357
cmp eax, 0x32
sub al, 0xe3
cmp eax, 0x102
or al, 0x75
sbb bh, byte [eax + 0x11189]
pop esi
pop ebp
ret 4
dec edi
mov ebx, ebp
mov ecx, dword [ebp - 0x4f]
jmp 0x40a2d3
add byte [ebx], dh
sal byte [ebx*2 - 0x7cff473e], 0xfd
add dword [ebp + 0x4d], esi
xor eax, eax
xor al, 0x5d
pop ebp
ret 0xb8
mov eax, dword [ecx - 0x6f]
push eax
inc ecx
adc eax, 0xbec0d1
fimul dword [edi]
cmp eax, 0xffffffd5
jne 0x40a358
mov ecx, dword [ecx + 8]
push ecx
call dword [eax]
xor al, 0xc0
inc eax
add byte [ebp - 0x7b2a8a40], al
xor eax, 0xfddec03b
call esi
test dword [eax + 0x74], eax
leave
call esi
add eax, 0xafc80
pop esi
jl 0x40a35b
add al, 0
nop
nop
retf 0x9090
Function at 0x40af87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x488d20]
jne 0x40af91
repz ret
jmp fcn.0040e5ec

Function at 0x40cca2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x488d20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00406a5f
and dword [ebp - 0x14], 0
cmp dword [0x48a348], 0
mov dword [ebp - 0x18], eax
jne 0x40cd55
push 0x404500
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40cdfd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4044f4
push ebx
call edi
test eax, eax
je 0x40cdfd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4044e4
push ebx
mov dword [0x48a348], eax
call edi
push eax
call esi
push 0x4044d0
push ebx
mov dword [0x48a34c], eax
call edi
push eax
call esi
push 0x4044b4
push ebx
mov dword [0x48a350], eax
call edi
push eax
call esi
mov dword [0x48a358], eax
test eax, eax
je 0x40cd55
push 0x40449c
push ebx
call edi
push eax
call esi
mov dword [0x48a354], eax
mov eax, dword [0x48a354]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40cdae
cmp dword [0x48a358], ecx
je 0x40cdae
push eax
call esi
push dword [0x48a358]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40cdae
test ebx, ebx
je 0x40cdae
call edi
test eax, eax
je 0x40cda5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40cda5
test byte [ebp - 8], 1
jne 0x40cdae
or dword [ebp + 0x10], 0x200000
jmp 0x40cde1
mov eax, dword [0x48a34c]
cmp eax, dword [ebp - 0x18]
je 0x40cde1
push eax
call esi
test eax, eax
je 0x40cde1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40cde1
mov eax, dword [0x48a350]
cmp eax, dword [ebp - 0x18]
je 0x40cde1
push eax
call esi
test eax, eax
je 0x40cde1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48a348]
call esi
test eax, eax
je 0x40cdfd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40cdff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af87
leave
ret
Function at 0x471230
Capabilities:
Delete directory
Get common file path
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1464
call fcn.0040e7b0
cmp dword [0x80f3b8], 0x37
jne 0x471322
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046c0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea edx, [esp + 0x868]
push edx
push 0x404750
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0x40471c
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea eax, [esp + 8]
push eax
push 0x404798
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0x4045f4
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x404808
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea edx, [esp + 0x464]
push edx
push 0
push 0x404870
push 0x40474c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
push 0
push 0x404880
push 0x404894
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0x80f3bc]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x48f41c]
mov byte [eax + esi], dl
add esp, 0x1464
ret
Function at 0x4714e0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x80f3b8]
sub esp, 0x1d4
push ebx
push ebp
push esi
mov esi, dword [0x48f41c]
shr eax, 3
push edi
test eax, eax
je 0x471695
mov dword [esp + 0x38], 0x9e3779b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jmp 0x471516
mov esi, dword [esp + 0x1c]
cmp dword [0x80f3b8], 0x1c
jne 0x471533
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edx, dword [0x489310]
mov ecx, dword [0x489314]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x489318]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x48931c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x20
jmp 0x471577
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x28]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x80e33c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x80f3b8], 0x1be
lea ebp, [ebx + edi]
jne 0x4715cc
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0x80f3b8], 0x979
mov dword [0x80e340], 0xff6b3619
mov dword [0x80e344], 0xffffffff
jne 0x471605
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
sub ebx, dword [esp + 0x18]
dec dword [esp + 0x20]
jne 0x471573
cmp dword [0x80f3b8], 0x8d4
jne 0x471648
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x80f3b8], 0x17
jne 0x471684
push 0
push 0
push 0
push 0x404558
push 0x404620
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x471512
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret