joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b23
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405dee
test bl, 8
mov dword [ebp - 8], eax
je 0x405b62
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434fa8], eax
jmp 0x405cdf
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405b7c
test eax, eax
je 0x405c8d
test bl, 2
je 0x405c8d
mov esi, 0x42f270
push edi
push esi
call fcn.00406411
cmp dword [ebp + 8], 0
je 0x405b9b
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405ba1
push edi
call fcn.00405d32
cmp word [edi], 0
jne 0x405bb1
cmp word [0x42f270], 0x5c
jne 0x405bbc
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c82
cmp word [ebp - 0x22c], 0x2e
jne 0x405c06
cmp word [ebp - 0x22a], 0
je 0x405c65
cmp word [ebp - 0x22a], 0x2e
jne 0x405c06
cmp word [ebp - 0x228], 0
je 0x405c65
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406411
test byte [ebp - 0x258], 0x10
je 0x405c31
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405c65
push dword [ebp + 0xc]
push edi
call fcn.00405b23
jmp 0x405c65
push dword [ebp - 4]
push edi
call 0x405adb
test eax, eax
jne 0x405c5d
cmp dword [ebp - 4], eax
je 0x405c55
push edi
push 0xfffffffffffffff1
call fcn.00405479
push 0
push edi
call fcn.004061d7
jmp 0x405c65
inc dword [0x434fa8]
jmp 0x405c65
push edi
push 0xfffffffffffffff2
call fcn.00405479
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405bde
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405c8d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405cdf
cmp dword [ebp - 8], esi
jne 0x405ca1
inc dword [0x434fa8]
jmp 0x405cdf
push edi
call fcn.0040676f
test eax, eax
je 0x405cdf
push edi
call fcn.00405ce6
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call 0x405adb
test eax, eax
jne 0x405cd7
cmp dword [ebp - 4], esi
je 0x405c99
push edi
push 0xfffffffffffffff1
call fcn.00405479
push esi
push edi
call fcn.004061d7
jmp 0x405cdf
push edi
push 0xffffffffffffffe5
call fcn.00405479
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x402b60
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi + 0x4fe0]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esi + 0x4fd8]
mov ebx, dword [esi + 0x4fdc]
shr ecx, 0x1c
mov eax, edi
and eax, 0xf
shl ebx, 4
add ecx, ebx
mov edx, edi
shr edx, 4
shl eax, 0x1c
cmp edi, ecx
sbb ecx, ecx
and ecx, 0x10000000
push ecx
push eax
push edx
mov edx, dword [esi + 0x28]
push 4
push edx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x4fe0], eax
je 0x402bc2
mov dword [esi + 0x18], edi
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [0x48bae8]
push 0x47a14c
push 0x47a140
push edi
mov esi, eax
call fcn.0043cec5
mov eax, dword [edi]
push esi
push esi
push str.LastError
push str._s_d__x__n
push eax
call fcn.0043d241
mov ecx, dword [edi]
push ecx
call fcn.0043d60c
mov edx, dword [0x48cb08]
mov eax, dword [0x48ba6c]
add esp, 0x24
push 0x100
shl edx, 9
add edx, 0x48bb08
push edx
push 0xdf
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [0x48cb08]
lea ecx, [eax + 1]
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x402c3a
dec ecx
or ecx, 0xfffffff8
inc ecx
shl eax, 9
add eax, 0x48bb08
push eax
mov dword [0x48cb08], ecx
call fcn.00418ff0
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x403b20
Capabilities:
Delete file

Disassembly:
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403b2e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x4fe0]
push eax
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 0x10], 0
je 0x403b70
cmp dword [esi + 0x2c], 0
je 0x403b70
mov ecx, dword [esi + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [esi + 0x48], 0x7e
lea eax, [esi + 0x48]
mov dword [esi + 0x10], 0
jne 0x403b70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret
Function at 0x40d3e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470f88
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x487004]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x30]
call fcn.004192a0
mov ecx, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x14], eax
mov ebx, esi
mov dword [esi], vtable.TAG_Plot.0
mov dword [esi + 0x10cc078], ecx
mov dword [esi + 0x1097a10], eax
call fcn.0040fba0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x1c
Function at 0x41c560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x4c
push esi
xor esi, esi
cmp word [0x48d118], si
push edi
mov edi, eax
jne 0x41c584
push 0x48d118
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x41c59a
push 0x5c
push 0x48d118
call fcn.0043d8f7
add esp, 8
cmp eax, esi
je 0x41c59a
mov word [eax], si
mov eax, 0x48d118
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41c5a2
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x41c5c7
cmp word [0x48d11c], 0x5c
jne 0x41c5c7
mov word [0x48d11c], si
cmp edi, esi
je 0x41c5de
push edi
push 0x208
push 0x48d118
call fcn.0043d52d
add esp, 0xc
mov eax, dword [esp + 0x64]
push eax
push 0x208
push 0x48d118
call fcn.0043e64c
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x44], eax
add esp, 0xc
mov dword [esp + 8], 0x4c
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x48d118
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], 0x88002c
mov word [esp + 0x40], si
mov word [esp + 0x42], si
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], 0x41c430
mov dword [esp + 0x50], esi
mov ecx, str.OPEN
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c69c
cmp dx, si
je 0x41c698
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c69c
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41c676
xor eax, eax
jmp 0x41c6a1
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41c6b2
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
jmp 0x41c6b6
mov eax, dword [esp + 0x58]
mov edx, str.SAVE
mov ecx, ebx
lea ecx, [ecx]
mov di, word [ecx]
cmp di, word [edx]
jne 0x41c6e6
cmp di, si
je 0x41c6e2
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x41c6e6
add ecx, 4
add edx, 4
cmp di, si
jne 0x41c6c0
xor ecx, ecx
jmp 0x41c6eb
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, esi
jne 0x41c6fa
lea edx, [esp + 8]
push edx
call dword [sym.imp.comdlg32.dll_GetSaveFileNameW]
cmp eax, esi
jne 0x41c706
pop edi
xor eax, eax
pop esi
add esp, 0x4c
ret
mov ecx, str.SAVE
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41c736
cmp dx, si
je 0x41c732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41c736
add eax, 4
add ecx, 4
cmp dx, si
jne 0x41c710
xor eax, eax
jmp 0x41c73b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x41c78b
cmp word [esp + 0x42], si
mov edx, dword [esp + 0x14]
jne 0x41c78b
mov ecx, dword [esp + 0x20]
lea ecx, [ecx + ecx - 1]
xor eax, eax
cmp ecx, esi
jbe 0x41c775
jmp 0x41c760
mov si, word [edx]
add edx, 2
test si, si
jne 0x41c760
add eax, 1
movzx esi, ax
cmp esi, ecx
jb 0x41c760
add edx, 2
push edx
push 0x208
push 0x48d118
call fcn.0043e64c
add esp, 0xc
pop edi
mov eax, 0x48d118
pop esi
add esp, 0x4c
ret
Function at 0x427cac
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x427ce5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0041d912
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041d8a9
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x429c12
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x429c55
call fcn.0041f007
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429c55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x429c70
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004297cc
test ebx, ebx
mov esi, eax
je 0x429c6e
test edi, edi
je 0x429c6e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x43c4a7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x487004]
jne 0x43c4b1
repz ret
jmp fcn.00443fa2
Function at 0x462b38
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0044d853
xor ebx, ebx
cmp dword [0x48b9a0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x462c0d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x462b78
xor eax, eax
jmp 0x462cd1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x462b71
push eax
call fcn.0044d7f0
mov dword [esp], 0x477970
push edi
mov dword [0x48b9a0], eax
call esi
push eax
call fcn.0044d7f0
mov dword [esp], 0x47795c
push edi
mov dword [0x48b9a4], eax
call esi
push eax
call fcn.0044d7f0
mov dword [0x48b9a8], eax
lea eax, [ebp - 8]
push eax
call fcn.00443147
test eax, eax
pop ecx
pop ecx
je 0x462bdb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00444bda
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x462c0d
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0044d7f0
cmp eax, ebx
pop ecx
mov dword [0x48b9b0], eax
je 0x462c0d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044d7f0
pop ecx
mov dword [0x48b9ac], eax
mov eax, dword [0x48b9ac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x462c86
cmp dword [0x48b9b0], esi
je 0x462c86
push eax
call fcn.0044d85c
pop ecx
call eax
cmp eax, ebx
je 0x462c53
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x48b9b0]
call fcn.0044d85c
pop ecx
call eax
test eax, eax
je 0x462c53
test byte [ebp - 0x18], 1
jne 0x462c86
lea eax, [ebp - 0xc]
push eax
call fcn.004431f6
test eax, eax
pop ecx
je 0x462c6e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00444bda
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x462c7d
or dword [ebp + 0x10], 0x200000
jmp 0x462cb7
or dword [ebp + 0x10], 0x40000
jmp 0x462cb7
mov eax, dword [0x48b9a4]
cmp eax, esi
je 0x462cb7
push eax
call fcn.0044d85c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x462cb7
mov eax, dword [0x48b9a8]
cmp eax, esi
je 0x462cb7
push dword [ebp - 4]
push eax
call fcn.0044d85c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x48b9a0]
call fcn.0044d85c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46ab88
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x487004]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0046aa00
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0043f810
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x46abd7
cmp dword [ebp - 0x1c], 5
jb 0x46abef
jmp 0x46abeb
cmp dword [ebp - 0x10], 1
jne 0x46abef
cmp dword [ebp - 0x1c], 4
ja 0x46abeb
jne 0x46abef
cmp dword [ebp - 0x18], 0
jbe 0x46abef
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x477a1c
call fcn.0046a7bd
test eax, eax
jge 0x46ac10
mov byte [0x48ba38], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043c4a7
add ebp, 0x78
leave
ret
Function at 0xe05c18
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0xcc7f31
mov eax, 0x5a4d
cmp word [ecx], ax
jmp 0xcc7f2b
mov edi, dword [edx + ecx + 0x18]
test edi, edi
jmp 0xe0436c
je 0xcc7f31
mov eax, dword [eax + ecx + 0x7c]
test dh, 0xa4
push ebx
push edi
cmp al, 0xb2
clc
mov dword [ebp - 0x10], eax
stc
test esp, 0xc121cb
mov dword [ebp - 8], 0xffffffff
jmp 0xd54ed2
je 0xe1d852
xor eax, eax
cmovg si, sp
pop esi
mov esp, ebp
movsx ebp, dx
pop ebp
ret
cmp esi, 0xffff
jmp 0xd87931
ja 0xc351e1
mov eax, esi
cmc
sub eax, dword [edx + ecx + 0x10]
jmp 0xdf47e3
jne 0xcc7f31
mov edx, dword [eax + ecx + 0x78]
cmc
cmp sp, 0x2d6b
mov dword [ebp - 4], edx
cmp si, dx
test edx, edx
jmp 0xc71aa5
mov dword [ebp - 8], eax
jmp 0xe2da31
je 0xe2da31
mov eax, dword [edx + ecx + 0x20]
stc
lea eax, [eax + ecx]
clc
sub ebx, ebx
jmp 0xe247ea
push ebp
mov ecx, 0x650c101d
bts bp, di
btr ebp, esp
mov ebp, esp
rcl ch, 4
test bx, si
mov cx, ax
mov ecx, dword [ebp + 8]
cmp bx, di
sub esp, 0x114
cmp ah, ch
push esi
clc
test ecx, ecx
jmp 0xe2092a
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jmp 0xdd8ad8
je 0xcc7f31
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0xbb0a46
Function at 0x408df6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x408e34
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x408e3b
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40c660
add eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4

Function at 0x408fdc
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x43d564], 0
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
jne 0x409019
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409004
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x408ff6
mov dword [ecx*4 + 0x43d560], eax
inc ecx
cmp ecx, 0x100
jne 0x408fef
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x40903b
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x43d560]
jmp 0x409023
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0xd22ffd
Capabilities:
Encode data using base64

Disassembly:
push dword [esp + 0xc]
popfd
lea esp, [esp + 0x2c]
call fcn.00d3c08c
Function at 0x40f20a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.004116e0
mov eax, dword [0x41803c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea eax, [ebp - 0x10010]
push esi
mov esi, dword [ebp + 8]
push edi
push 1
push eax
xor edi, edi
push edi
push edi
push esi
call ebx
test eax, eax
je 0x40f2a0
cmp dword [ebp + 0xc], edi
je 0x40f253
push edi
push edi
push edi
push dword [ebp + 0xc]
push esi
call ebx
test eax, eax
je 0x40f2a0
cmp dword [ebp + 0x10], edi
jbe 0x40f28d
mov ecx, 0x10000
push 0
lea eax, [ebp - 0x10008]
push eax
push ecx
lea eax, [ebp - 0x10004]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f28d
mov ecx, 0x10000
cmp dword [ebp - 0x10008], ecx
jne 0x40f28d
add edi, ecx
cmp edi, dword [ebp + 0x10]
jb 0x40f25d
push 0
push 0
push dword [ebp - 0x1000c]
push dword [ebp - 0x10010]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411358
mov esp, ebp
pop ebp
ret

Function at 0x4110d7
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x41808c]
test eax, eax
je 0x4110ee
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x411149
push edi
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041103c
mov edi, eax
add esp, 0xc
test edi, edi
je 0x411148
inc edi
lea eax, [ebp - 4]
push edi
push eax
call fcn.0040271a
mov esi, dword [ebp - 4]
pop ecx
pop ecx
test esi, esi
je 0x411148
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push esi
call fcn.004098b5
add esp, 0x10
mov byte [esi + edi - 1], 0
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.mozglue.dll_free]
pop ecx
pop edi
push 0x416034
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__dup]
pop ecx
push eax
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll__fdopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41117e
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push esi
call fcn.00402320
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010f0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x110c
call fcn.0045cb30
mov eax, dword [0x494db8]
xor eax, esp
mov dword [esp + 0x1108], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
lea ecx, [esp + 0x914]
push 0
push ecx
mov dword [esp + 0x18], eax
call fcn.0045bc00
add esp, 0xc
push 0x800
lea edx, [esp + 0x114]
push 0
push edx
call fcn.0045bc00
add esp, 0xc
lea eax, [esp + 0x910]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea ecx, [esp + 0x14]
push 0
push ecx
call fcn.0045bc00
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
xor esi, esi
jmp 0x401180
lea edx, [esp + 0x10]
push 0x80
push edx
call fcn.00401000
add esp, 8
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x914]
push ecx
lea edx, [esp + 0x118]
push edx
call ebx
lea eax, [esp + 0x110]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4011b3
mov ecx, dword [str..tmp]
mov edx, dword [0x483f3c]
mov dword [eax], ecx
mov cx, word [0x483f40]
mov dword [eax + 4], edx
lea edx, [esp + 0x110]
push edx
mov word [eax + 8], cx
call edi
test eax, eax
je 0x401206
inc esi
cmp esi, 0xa
jl 0x401180
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1108]
xor ecx, esp
call fcn.0045bbec
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x110]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401210
sub eax, edx
sar eax, 1
lea ecx, [esp + 0x110]
mov ebx, eax
mov eax, dword [esp + 0xc]
push ecx
call fcn.00402230
mov ecx, dword [esp + 0x1114]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0045bbec
mov esp, ebp
pop ebp
ret

Function at 0x401250
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 0x10], 0
mov edx, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0xc], edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [esp + 0x20]
lea eax, [esi + 8]
mov dword [esi], vtable.CSimpleThread.0
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 4], 0
mov dword [eax], 0xffffffff
mov dword [esi + 0x14], edi
je 0x4012ac
test ecx, ecx
je 0x4012ac
push eax
push 0
push edx
push ecx
push 0
push 0
call fcn.0045cc9c
add esp, 0x18
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
ret 0x18
Function at 0x4015c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4015ef
pop edi
pop esi
pop ebx
ret 0x14
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40160d
pop ebp
pop edi
pop esi
pop ebx
ret 0x14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx + 4], ebp
pop ebp
pop edi
mov dword [ebx], eax
pop esi
mov eax, 1
pop ebx
ret 0x14

Function at 0x401630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x478370
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x494db8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x14], vtable.CResourceUnpack.0
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [0x4982e0]
push edx
mov edx, dword [ecx + 0x28]
push eax
push 0x4982e0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call edx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
cmp eax, ebx
je 0x4016f7
mov eax, dword [0x496df8]
mov edx, dword [eax + 0xc]
mov ecx, 0x496df8
call edx
add eax, 0x10
mov dword [esp + 0x3c], eax
push 1
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x34], 1
call fcn.0040e900
test eax, eax
jne 0x40170d
mov byte [esp + 0x28], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4016f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x401720
lea eax, [esi - 0x10]
mov byte [esp + 0x28], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40174f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x20
ret 0x18