joyce8/EMBER2024-capa huggingface dataset:
Function at 0x481d22
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x48fbff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a2484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0047fb84
mov dword [ebp - 0x14], eax
cmp dword [0xa9be30], esi
jne 0x48fcf2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x48fc7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x48fdd2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x48fdd2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48fdd2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa9be30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa9be34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa9be38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa9be40], eax
test eax, eax
je 0x48fcef
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa9be3c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x48fd17
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48fd0a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x48fd2c
push 4
pop eax
jmp 0x48fdd4
cmp dword [ebp - 0x14], esi
je 0x48fd2c
push dword [0xa9be30]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x48fd11
mov eax, dword [0xa9be3c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x48fd8a
cmp dword [0xa9be40], edi
je 0x48fd8a
push eax
call ebx
push dword [0xa9be40]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x48fd8a
test eax, eax
je 0x48fd8a
call ecx
test eax, eax
je 0x48fd7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x48fd7f
test byte [ebp - 8], 1
jne 0x48fd8a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x48fdba
mov eax, dword [0xa9be34]
cmp eax, edi
je 0x48fdb7
push eax
call ebx
test eax, eax
je 0x48fdb7
call eax
mov esi, eax
test esi, esi
je 0x48fdb7
mov eax, dword [0xa9be38]
cmp eax, edi
je 0x48fdb7
push eax
call ebx
test eax, eax
je 0x48fdb7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa9be30]
call ebx
test eax, eax
je 0x48fdd2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x48fdd4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f02b
mov esp, ebp
pop ebp
ret
Function at 0x1005099
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x100e374], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x10050df
call ebx
test eax, eax
jns 0x10050d5
push 0x10015ac
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x10015a0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x100e370], eax
mov dword [0x100e374], 1
mov eax, dword [0x100e370]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10050fb
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x100512b
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x1005121
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x1005116
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x100511b
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x100512a
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x1005557
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
xor ebx, ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
cmp dword [0x100e358], esi
jne 0x1005621
push 0x800
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x100559b
mov ebx, 0x8007000e
jmp 0x1005621
push edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push 0x1001640
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
je 0x10055d3
jle 0x10055d1
and eax, edi
or eax, esi
mov ecx, eax
mov ebx, ecx
test ecx, ecx
jl 0x100561e
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001630
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
je 0x1005609
jle 0x1005607
and eax, edi
or eax, esi
mov ecx, eax
mov ebx, ecx
test ecx, ecx
jl 0x100561e
push dword [ebp - 4]
push 0x100e358
call fcn.01005415
mov ebx, eax
xor esi, esi
pop edi
cmp ebx, esi
jge 0x1005638
push 0x10015fc
push 0x100e358
call fcn.01005415
mov ebx, eax
jmp 0x1005621
cmp dword [ebp - 4], esi
je 0x100564e
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], esi
je 0x100565c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1005667
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100e34c]
push ebx
xor ebx, ebx
dec eax
mov dword [ebp - 4], ebx
je 0x100568f
dec eax
je 0x1005686
inc ebx
jmp 0x10057a9
mov dword [ebp - 8], 0x1001680
jmp 0x1005696
mov dword [ebp - 8], 0x1001670
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x1005733
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [0x100e314]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
mov edi, 0xffff
mov esi, 0x80070000
cmp eax, ebx
je 0x10056d4
jle 0x10056d2
and eax, edi
or eax, esi
mov ecx, eax
mov ebx, ecx
test ecx, ecx
jl 0x1005798
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 8]
mov dword [ebp + 8], 0x10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
je 0x100570c
jle 0x100570a
and eax, edi
or eax, esi
mov ecx, eax
mov ebx, ecx
test ecx, ecx
jl 0x1005798
cmp dword [ebp + 8], 0x10
jne 0x100572e
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax]
jl 0x100572e
mov ecx, dword [eax + 0xc]
cmp ecx, dword [eax + 4]
jge 0x1005798
xor ebx, ebx
inc ebx
jmp 0x1005798
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push dword [0x100e314]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor ecx, ecx
mov edi, 0xffff
mov esi, 0x80070000
cmp eax, ebx
je 0x100576d
jle 0x100576b
and eax, edi
or eax, esi
mov ecx, eax
mov ebx, ecx
test ecx, ecx
jl 0x1005798
push 0x10
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
je 0x1005796
jle 0x1005794
and eax, edi
or eax, esi
mov ecx, eax
mov ebx, ecx
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x10057a9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x1009939
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001e48
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1009a0e
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10099fd
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x10099e7
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x10099fd
push eax
push edi
push dword [ebp - 0x110]
call fcn.010098d1
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1009a10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010091bd
leave
ret 4
Function at 0x100b91d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x100e738], edi
jne 0x100ba39
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x100b984
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x100e738], edi
pop esi
je 0x100ba0c
dec eax
jne 0x100ba39
cmp dword [ebp - 0x11c], 5
jne 0x100b9f9
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x100b9ed
dec eax
je 0x100b9da
dec eax
je 0x100b9c0
mov dword [0x100e738], 0x14
jmp 0x100ba39
cmp word [ebp - 0xc], 1
jb 0x100b9d1
mov dword [0x100e738], 0x10
or dword [0x100e738], 4
jmp 0x100ba39
cmp word [ebp - 0xc], 2
jb 0x100b9d1
mov dword [0x100e738], 8
jmp 0x100b9d1
mov dword [0x100e738], 4
jmp 0x100ba39
cmp dword [ebp - 0x11c], 4
ja 0x100ba4b
mov dword [0x100e738], 2
cmp dword [ebp - 0x11c], 4
jne 0x100ba39
cmp dword [ebp - 0x118], edi
je 0x100ba2f
cmp dword [ebp - 0x118], 0xa
je 0x100ba2f
cmp dword [ebp - 0x118], 0x5a
jne 0x100ba39
mov dword [0x100e738], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100e738]
xor ecx, ebp
pop edi
call fcn.010091bd
leave
ret
mov dword [0x100e738], 0x20
jmp 0x100ba39

Function at 0x100ba5c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100bab0
push 3
lea eax, [ebp - 0x44]
push 0x10023c8
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.010091bd
leave
ret
Function at 0x100bac5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100e318]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x100e73c]
jne 0x100bb60
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x10022f8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100bb5f
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x10023b0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x100bb5f
push 3
push dword [esi*8 + 0x1002148]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x100bb51
inc esi
cmp esi, 0x1c
jb 0x100bb30
jmp 0x100bb5f
mov ax, word [esi*8 + 0x100214c]
mov word [0x100e73c], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x100e73c]
xor ecx, ebp
call fcn.010091bd
leave
ret
Function at 0x403840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, word [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40386f
xor al, al
jmp 0x403956
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40388d
xor al, al
jmp 0x403956
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4038b2
xor al, al
jmp 0x403956
mov edx, dword [ebp - 4]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 9], 0
cmp dword [ebp - 0x18], 0
je 0x403953
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x403942
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00417b30
add esp, 0xc
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x403938
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405fc0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x40392a
mov byte [ebp - 9], 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x18], 0
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x403d40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x430afc]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x280], ecx
mov eax, dword [ebp - 0x280]
mov dword [eax + 0x124], 0xbfdbef
push 0x104
push 0x104
mov ecx, dword [ebp - 0x280]
call fcn.00402c30
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x280]
call fcn.004079b0
push 0x5c
mov ecx, dword [ebp - 0x280]
call fcn.00404ab0
mov dword [ebp - 0x26c], eax
mov ecx, dword [ebp - 0x26c]
add ecx, 1
push ecx
lea edx, [ebp - 0x270]
push edx
mov ecx, dword [ebp - 0x280]
call fcn.00404b00
push eax
mov ecx, dword [ebp - 0x280]
call fcn.004027e0
lea ecx, [ebp - 0x270]
call fcn.004027c0
lea ecx, [ebp - 0x268]
call fcn.00401a40
push str.log.
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00404b70
add esp, 0xc
push 0
lea ecx, [ebp - 4]
call fcn.00402a70
push eax
lea ecx, [ebp - 0x268]
call fcn.00401ac0
test eax, eax
je 0x403e24
lea ecx, [ebp - 0x268]
call fcn.00401e10
jmp 0x403e5a
push 0
push 0x429e28
mov edx, dword [ebp - 0x280]
push edx
lea eax, [ebp - 0x274]
push eax
call fcn.00404b70
add esp, 0xc
mov ecx, eax
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x274]
call fcn.004027c0
push str.db.
mov ecx, dword [ebp - 0x280]
push ecx
lea edx, [ebp - 0x278]
push edx
call fcn.00404b70
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.004027e0
lea ecx, [ebp - 0x278]
call fcn.004027c0
push 0
lea ecx, [ebp - 4]
call fcn.00402a70
push eax
lea ecx, [ebp - 0x268]
call fcn.00401ac0
test eax, eax
je 0x403eb0
lea ecx, [ebp - 0x268]
call fcn.00401e10
jmp 0x403ee6
push 0
push 0x429e40
mov eax, dword [ebp - 0x280]
push eax
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00404b70
add esp, 0xc
mov ecx, eax
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x27c]
call fcn.004027c0
mov ecx, dword [ebp - 0x280]
call fcn.00404020
lea ecx, [ebp - 4]
call fcn.004027c0
lea ecx, [ebp - 0x268]
call fcn.00401aa0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041733b
mov esp, ebp
pop ebp
ret

Function at 0x4041f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.004027a0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 6]
push ecx
movzx edx, word [ebp - 8]
push edx
movzx eax, word [ebp - 0xa]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
push str.__02d:_02d:_02d._03d_
lea edx, [ebp - 0x18]
push edx
call fcn.004031a0
add esp, 0x18
lea ecx, [ebp - 0x18]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403210
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402a70
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x18]
call fcn.004027c0
mov esp, ebp
pop ebp
ret
Function at 0x407320
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x20]
call fcn.004074f0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x407353
xor al, al
jmp 0x40749e
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407371
xor al, al
jmp 0x40749e
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407396
xor al, al
jmp 0x40749e
mov ecx, dword [ebp - 4]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 0x20]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 8], 0
je 0x40749c
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407485
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00417b30
add esp, 0xc
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x407478
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.004074b0
add esp, 8
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0
je 0x407478
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 4]
call fcn.00406030
test eax, eax
jne 0x40743f
mov al, 1
jmp 0x40749e
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
je 0x407467
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax]
call edx
mov dword [ebp - 0x24], eax
jmp 0x40746e
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x20]
mov dword [edx + 8], 0
xor al, al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x430afc]
xor eax, ebp
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x454], ecx
call fcn.00402b80
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x2c]
call fcn.0040c4c0
mov eax, dword [ebp - 0x454]
push eax
lea ecx, [ebp - 0x18]
call fcn.00409940
lea ecx, [ebp - 0x438]
call fcn.0040c4c0
push 0x400
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409050
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4096ce
call fcn.00409060
mov dword [ebp - 0x444], eax
jmp 0x409823
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x440], eax
cmp dword [ebp - 0x440], 0
jne 0x4096ff
call fcn.00409060
mov dword [ebp - 0x444], eax
jmp 0x409823
mov eax, dword [ebp - 0x440]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x448], eax
cmp dword [ebp - 0x448], 0
jne 0x40972f
call fcn.00409060
mov dword [ebp - 0x444], eax
jmp 0x409823
mov edx, dword [ebp - 0x440]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
cmp edx, dword [ebp - 0x1c]
jae 0x40977f
mov dword [ebp - 0x44c], 0x8007000e
lea ecx, [ebp - 0x438]
call fcn.0040c4e0
lea ecx, [ebp - 0x2c]
call fcn.00407920
mov eax, dword [ebp - 0x44c]
jmp 0x409858
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
lea ecx, [ebp - 0x438]
call fcn.0040c500
lea ecx, [ebp - 0x438]
call fcn.00402a70
test eax, eax
jne 0x4097ac
mov dword [ebp - 0x444], 0x8007000e
jmp 0x409823
mov ecx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x438]
call fcn.00402a70
push eax
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
call fcn.00402b80
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
jne 0x4097ee
call fcn.00409060
mov dword [ebp - 0x444], eax
jmp 0x409823
lea ecx, [ebp - 0x438]
call fcn.00402a70
xor ecx, ecx
mov edx, dword [ebp - 0x43c]
mov word [eax + edx*2], cx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x438]
call fcn.00402a70
push eax
lea ecx, [ebp - 0x18]
call fcn.00409970
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x10], 0
je 0x409833
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x444]
mov dword [ebp - 0x450], edx
lea ecx, [ebp - 0x438]
call fcn.0040c4e0
lea ecx, [ebp - 0x2c]
call fcn.00407920
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0x30]
xor ecx, ebp
call fcn.0041733b
mov esp, ebp
pop ebp
ret 0x10