joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4071b0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
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 dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x408932
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov eax, dword [esp]
add esp, 4
dec ebx
call fcn.00408962
mov esi, 0x8dce5d39
mov ebx, ebx
xor dword [ecx], eax
mov esi, esi
sub esi, 0x27638733
inc ecx
add ebx, ebx
cmp ecx, edx
jne fcn.00408932
push esi
pop esi
ret
Function at 0x4022d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x43cca8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push edi
mov eax, dword [0x44ede8]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebp, ebp
xor bl, bl
cmp dword [esi + 8], ebp
je 0x4023b9
cmp dword [esi + 0x40], ebp
jne 0x402345
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x40232f
push str.GetPage
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
mov dword [esi + 0x40], eax
jne 0x402340
mov dword [esi], 0x7f
push str.EWSIntf::get_page:_Function_not_found_in_DLL:_GetPage_n
jmp 0x40233a
mov dword [esi], 6
push str.EWSIntf::get_page:_Attempting_to_lookup_GetPage_with_no_DLL_handle_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [esi + 0x40], ebp
je 0x4023b9
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x800
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x38], ebp
call fcn.00401fe0
mov edi, dword [esp + 0x18]
mov bl, al
cmp bl, 1
jne 0x4023ac
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esi + 8]
push edi
push eax
mov eax, dword [esi + 0x40]
push ecx
push edx
mov dword [esp + 0x2c], ebp
call eax
test eax, eax
je 0x4023ac
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
push edi
call fcn.00403840
mov bl, 1
cmp edi, ebp
je 0x4023b9
push edi
call fcn.00412b03
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x28
ret 0xc

Function at 0x4023d0
Capabilities:
Print debug messages

Disassembly:
push esi
push 0xc18
call fcn.00412b08
mov esi, eax
add esp, 4
test esi, esi
je 0x402403
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push ecx
push 0xc18
push esi
call fcn.00420f5d
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00412b03
add esp, 4
pop esi
ret

Function at 0x402410
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push str.mvhlewsi.dll
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi + 4], eax
je 0x4024ac
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenEWSPort_W
push eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push str.OpenEWSPort_A
push eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi + 4]
push str.OpenEWS_W
push eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 4]
push str.OpenEWS_A
push eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push str.CloseEWS
push eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 4]
push str.EWSLastError
push eax
call edi
mov dword [esi + 0x20], eax
mov eax, dword [esi + 4]
push str.WriteEWS
push eax
call edi
mov dword [esi + 0x24], eax
mov eax, dword [esi + 4]
push str.ReadEWS
push eax
call edi
mov dword [esi + 0x28], eax
mov eax, dword [esi + 4]
push str.WriteReadEWS
push eax
call edi
mov dword [esi + 0x2c], eax
pop edi
call fcn.004021e0
pop esi
ret
Function at 0x404ae0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x44ede8]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
push edi
push str.Entering_CHpePrintApp::ePrintSplash
call fcn.004082f0
mov edi, eax
call fcn.004087d0
add esp, 4
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.004232b0
add esp, 0xc
lea esi, [esp + 8]
call fcn.004080d0
mov ecx, esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.HPSplash
push ecx
call esi
push str.HPePrint.exe
lea edx, [esp + 0xc]
push edx
call esi
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push str.Exiting_CHpePrintApp::ePrintSplash
call fcn.004082f0
mov edi, eax
call fcn.004087d0
mov ecx, dword [esp + 0x218]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00420baf
add esp, 0x214
ret
Function at 0x405950
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405969
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4059a4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4059a0
lea ebx, [ebx]
cmp esi, eax
jae 0x4059a4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405990
cmp esi, eax
jb 0x4059aa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406140
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43d461
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x44ede8]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44ede8]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x16c]
xor ebx, ebx
push 0xff
lea eax, [esp + 0x5d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x64], bl
call fcn.004232b0
mov edi, 0xf
add esp, 0xc
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov ecx, ebp
mov dword [esp + 0x164], ebx
call fcn.0041c8b3
push 0x400
push ebx
push 0x455258
call fcn.004232b0
add esp, 0xc
push ebx
push ebx
push 0x400
push 0x455258
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0x4458d0
lea ecx, [esp + 0x18]
push 0x455258
push ecx
call fcn.0042154f
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x40621e
cmp dword [esp + 0x54], 0x10
jb 0x406392
mov edx, dword [esp + 0x40]
push edx
jmp 0x40638a
push eax
push 0xfa
lea eax, [esp + 0x60]
push 1
push eax
call fcn.0042183b
add esp, 0x10
test eax, eax
je 0x406277
lea eax, [esp + 0x58]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x406240
sub eax, edx
push eax
lea ecx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x44]
call fcn.00407170
mov edx, dword [esp + 0x14]
push edx
push 0xfa
lea eax, [esp + 0x60]
push 1
push eax
call fcn.0042183b
add esp, 0x10
test eax, eax
jne 0x406237
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004218c8
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x164], 1
xor edi, edi
lea ebx, [ebx]
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push 6
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.driver
lea esi, [esp + 0x48]
mov byte [ecx + 4], bl
call fcn.00403920
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x54], esp
push 0xffffffffffffffff
mov byte [esp + 0x1a4], 2
push ebx
lea edx, [esp + 0x80]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.00403ec0
mov ecx, esi
mov byte [esp + 0x1a0], 1
call fcn.004027b0
cmp eax, ebx
je 0x406357
cmp dword [esp + 0x38], 0x10
mov esi, dword [esp + 0x24]
jae 0x406317
lea esi, [esp + 0x24]
push 0x400
push ebx
push 0x454a58
call fcn.004232b0
add esp, 0xc
push 0x400
push 0x454a58
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x454a58
mov ecx, ebp
call fcn.0041ca0d
add edi, 1
jmp 0x4062a0
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x40636f
mov eax, dword [esp + 0x24]
push eax
call fcn.00412b03
add esp, 4
cmp dword [esp + 0x54], esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jb 0x406392
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00412b03
add esp, 4
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00420baf
add esp, 0x154
ret 4
Function at 0x4087d0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x200c
call fcn.00425b90
mov eax, dword [0x44ede8]
xor eax, esp
mov dword [esp + 0x2008], eax
cmp dword [esp + 0x2010], 0
push ebx
push ebp
push esi
je 0x40891a
push 0x1ffe
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.004232b0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea ecx, [edi + 0x248]
push ecx
push str._s__X_:
lea edx, [esp + 0x1c]
push 0x1000
push edx
call fcn.00420fd3
mov edx, dword [esp + 0x2030]
add esp, 0x14
lea ecx, [esp + 0x2020]
push ecx
push edx
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [esp + eax*2 + 0x1c]
push edx
call fcn.00420a8d
push 0x4465cc
lea eax, [esp + 0x24]
push 0x1000
push eax
call fcn.00421bd2
lea eax, [edi + 0x40]
add esp, 0x1c
lea edx, [eax + 2]
jmp 0x408880
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408880
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub eax, edx
sar eax, 1
je 0x4088b2
lea esi, [edi + 4]
push esi
call ebx
lea ecx, [esp + 0x10]
push ecx
mov eax, edi
call fcn.00408740
push esi
call ebp
lea eax, [esp + 0x10]
xor edx, edx
lea esi, [eax + 2]
jmp 0x4088c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4088c0
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
je 0x408906
cmp word [esp + edx*2 + 0x10], 0xa
jne 0x4088e3
mov word [esp + edx*2 + 0x10], 0x20
lea eax, [esp + 0x10]
add edx, 1
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4088f0
sub eax, esi
sar eax, 1
add eax, 0xfffffffe
cmp edx, eax
jb 0x4088d4
lea esi, [edi + 4]
push esi
call ebx
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call ebp
mov ecx, dword [esp + 0x2014]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420baf
add esp, 0x200c
ret

Function at 0x408e10
Capabilities:
Identify system language via api

Disassembly:
push esi
xor ecx, ecx
movzx esi, ax
mov edx, 0x450388
jmp 0x408df0
cmp dword [edx], esi
je 0x408e01
add ecx, 1
add edx, 0x10
cmp ecx, 0x26
jb 0x408df0
pop esi
ret
shl ecx, 4
mov ax, word [ecx + 0x45038c]
pop esi
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edi, ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp si, di
movzx eax, ax
jne 0x408e4b
cmp si, ax
jne 0x408e4b
pop edi
mov eax, esi
pop esi
pop ebx
jmp 0x408de0
xor eax, eax
movzx edx, bx
mov ecx, 0x450388
cmp dword [ecx], edx
je 0x408e6b
add eax, 1
add ecx, 0x10
cmp eax, 0x26
jb 0x408e55
pop edi
pop esi
movzx eax, bx
pop ebx
ret
pop edi
shl eax, 4
movzx eax, word [eax + 0x45038c]
pop esi
pop ebx
ret
Function at 0x409fb0
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esi], 0
push ecx
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40a044
cmp word [ebx + 8], 2
push edi
jne 0x40a015
cmp word [ebx + 0xa], 4
jne 0x40a015
mov edi, dword [ebx + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40a015
jmp 0x409ff0
mov edx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ebp
push eax
push ecx
call fcn.00409f40
test eax, eax
mov dword [esi], eax
je 0x40a038
add edi, 4
lea esi, [eax + 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x409ff0
mov edx, dword [ebx]
mov eax, dword [esp + 0x20]
push 0x400
push edx
push 0x401
push eax
call fcn.004226ea
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x40a054.11001
jmp dword [eax*4 + 0x40a07c]
pop esi
pop ebp
mov eax, 0x2af9
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afa
pop ebx
ret 0x10
pop esi
pop ebp
mov eax, 0x2afb
pop ebx
ret 0x10
Function at 0x40a8a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x238
mov eax, dword [0x44ede8]
xor eax, esp
mov dword [esp + 0x234], eax
cmp dword [0x454a3c], 0
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], str.getaddrinfo
mov dword [esp + 0x14], 0x40a300
mov dword [esp + 0x18], str.getnameinfo
mov dword [esp + 0x1c], 0x40a5e0
mov dword [esp + 0x20], str.freeaddrinfo
mov dword [esp + 0x24], fcn.0040a2b0
je 0x40a905
movzx eax, word [esp + 0x24c]
mov eax, dword [eax*8 + 0x4510f8]
jmp 0x40aa1e
push 0x104
lea ecx, [esp + 0x13c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40aa05
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x2c]
push 0x10c
push eax
call fcn.00421116
push str.ws2_32
lea ecx, [esp + 0x38]
push 0x10c
push ecx
call fcn.00422aee
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea edx, [esp + 0x28]
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40a97c
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40a9c8
push esi
call ebp
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x2c]
push 0x10c
push ecx
call fcn.00421116
push str.wship6
lea edx, [esp + 0x38]
push 0x10c
push edx
call fcn.00422aee
add esp, 0x18
lea eax, [esp + 0x28]
push eax
call edi
mov esi, eax
test esi, esi
je 0x40aa05
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x40a9c8
push esi
call ebp
jmp 0x40aa05
xor edi, edi
lea ebx, [ebx]
mov ecx, dword [esp + edi*8 + 0x10]
push ecx
push esi
call ebx
test eax, eax
mov dword [esp + edi*8 + 0x14], eax
je 0x40a9c3
add edi, 1
cmp edi, 3
jl 0x40a9d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [0x4510f8], edx
mov dword [0x451100], eax
mov dword [fcn.0040a2b0], ecx
movzx edx, word [esp + 0x24c]
mov eax, dword [edx*8 + 0x4510f8]
mov dword [0x454a3c], 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00420baf
add esp, 0x238
ret 4
Function at 0x40f700
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x43cc2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x44ede8]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0043b1b5
push 4
mov dword [esp + 0x20], 0
call fcn.00412ad8
mov edi, eax
add esp, 4
test edi, edi
je 0x40f780
call fcn.0043b5c5
mov dword [edi], eax
call fcn.0043b3f9
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0043b24c
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40f775
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0043b26d
jmp 0x40f782
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x411a40
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x43cd38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x44ede8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00403ae0
mov eax, 0x446e14
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411a97
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x10]
call fcn.00412590
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00403ae0
cmp dword [esp + 0x24], 8
jb 0x411adc
mov eax, dword [esp + 0x10]
push eax
call fcn.00412b03
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x417d0d
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 0x417d50
call fcn.00419b83
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417d50
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417d6b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004178c7
test ebx, ebx
mov esi, eax
je 0x417d69
test edi, edi
je 0x417d69
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4184d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x43c570
call fcn.0042373a
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00419b83
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x418521
call fcn.00419b83
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x418532
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41853f
or eax, 0xffffffff
jmp 0x41869b
mov ecx, esi
call fcn.0041801d
mov dword [ebp - 0x14], eax
call fcn.004151fd
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x4185bd
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4185bd
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4185bd
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00413d8c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x4185bd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x4185bd
mov ecx, ebx
call fcn.00419d52
test eax, eax
je 0x4185bd
push 0
mov ecx, ebx
call fcn.00419d6d
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00416bce
push dword [ebp - 0x14]
call fcn.00415155
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004182de
xor edi, edi
cmp eax, edi
je 0x41861a
test byte [esi + 0x3c], 0x10
je 0x418604
push 4
pop edi
mov ecx, esi
call fcn.00419cfd
test ax, 0x100
je 0x4185fa
push 5
pop edi
push edi
mov ecx, esi
call fcn.00414cc6
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41861a
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00419dd4
or dword [ebp - 4], 0xffffffff
jmp 0x418645
cmp dword [ebp - 0x28], edi
je 0x418653
push 1
mov ecx, ebx
call fcn.00419d6d
cmp dword [ebp - 0x2c], edi
je 0x418663
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41867c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41867c
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.00418057
cmp dword [esi + 0x58], edi
je 0x418698
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004237a6
ret
Function at 0x41b29c
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x44ede8]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x41b33a
push 0x441184
push 4
push eax
call fcn.00421b66
push eax
call fcn.004059c0
add esp, 0x10
push ebx
push edi
call fcn.0042197f
mov edi, dword [eax]
call fcn.0042197f
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00420fef
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.0042197f
cmp dword [eax], ebx
je 0x41b351
call fcn.0042197f
push dword [eax]
call fcn.00412b0d
pop ecx
jmp 0x41b358
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41b2eb
jmp 0x41b3ca
call fcn.0042197f
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x41b3c6
cmp dword [ebp - 0x40], esi
jae 0x41b3c6
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004232b0
add esp, 0xc
push 0x440b3c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x41b3b8
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41b3b8
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x41b3b8
push ebx
push ebx
push esi
jmp 0x41b3be
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x41b3c8
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.00420baf
add ebp, 0x1f4
leave
ret
Function at 0x420baf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ede8]
jne 0x420bb9
repz ret
jmp fcn.0042858a