joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410930
Capabilities:
Identify system language via api

Disassembly:
push 0x46473c
push 8
push esi
call fcn.00432288
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
test ax, ax
jne 0x41095d
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
add ecx, 0xffffffff
cmp ecx, 0x26
ja case.0x410971.2
jmp dword [ecx*4 + 0x410c04]
shr ax, 0xa
cmp ax, 2
jne 0x410993
push str.zh_CN
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
cmp ax, 4
je 0x410982
push str.zh_TW
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.da_DK
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.nl_NL
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.fi_FI
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
and eax, 0xfc00
cmp eax, 0x800
jne 0x4109fa
push str.es_MX
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.es_ES
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
and eax, 0xfc00
cmp eax, 0xc00
jne 0x410a28
push str.fr_CA
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.fr_FR
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.de_DE
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.it_IT
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.ja_JP
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.ko_KR
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.pt_BR
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
and eax, 0xfc00
cmp eax, 0x800
jne case.0x410971.2
push str.en_GB
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.sv_SE
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.nb_NO
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.pl_PL
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.cs_CZ
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.ar_AE
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.hu_HU
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.tr_TR
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.el_GR
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.ru_RU
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.he_IL
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.ro_RO
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.sl_SI
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.sk_SK
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.uk_UA
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.hr_HR
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.lt_LT
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.lv_LV
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.et_EE
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push str.bg_BG
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
push 0x46473c
push 8
push esi
call fcn.00432288
add esp, 0xc
ret
Function at 0x412ff0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x456d9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4749e0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0044e43c
push 4
mov dword [esp + 0x24], 0
call fcn.004163e4
mov edi, eax
add esp, 4
test edi, edi
je 0x413074
call fcn.0044e2cd
mov dword [edi], eax
call fcn.0044e101
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0044e409
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x413069
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.0044e42a
jmp 0x413076
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 + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x4154b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
mov esi, eax
push 0x40000000
push esi
mov byte [edi + 0x80c], bl
mov byte [edi + 0x80d], bl
mov byte [edi + 0x80e], bl
mov byte [edi + 0x80f], bl
mov byte [edi + 0x810], bl
mov byte [edi + 0x811], bl
mov dword [edi + 0x814], 0x400
call ebp
cmp eax, 0xffffffff
mov dword [edi], eax
jne 0x415539
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push esi
call ebp
push ebx
lea ecx, [esp + 0x14]
push ecx
push 2
lea edx, [esp + 0x18]
push edx
push eax
mov dword [edi], eax
mov dword [esp + 0x20], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x800
lea eax, [edi + 4]
push ebx
push eax
call fcn.004346f0
push 8
call fcn.004163e4
add esp, 0x10
cmp eax, ebx
je 0x41555f
mov dword [eax], ebx
mov byte [eax + 4], bl
mov esi, eax
jmp 0x415561
xor esi, esi
mov dword [edi + 0x804], esi
cmp dword [esi], ebx
jne 0x41557d
push str.Local5071F542_DF26_4e46_810E_74570ED35255
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi], eax
push 8
call fcn.004163e4
add esp, 4
cmp eax, ebx
je 0x415592
mov dword [eax], ebx
mov byte [eax + 4], bl
jmp 0x415594
xor eax, eax
mov esi, eax
mov dword [edi + 0x808], eax
call fcn.004010c0
pop esi
pop ebp
mov eax, edi
pop ebx
add esp, 8
ret
Function at 0x4155b0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebp
push esi
push edi
mov esi, eax
mov edi, dword [esi + 0x808]
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
mov dword [0x4792ac], 0
call ebx
cmp eax, 0x102
je 0x4156de
cmp eax, 0xffffffff
je 0x4156de
cmp eax, 0x80
je 0x4156de
mov byte [edi + 4], 1
lea edi, [esi + 4]
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415600
sub eax, edx
sar eax, 1
je 0x4156b9
mov ebp, dword [esi + 0x804]
mov ecx, dword [ebp]
push 0xffffffffffffffff
push ecx
call ebx
cmp eax, 0x102
je 0x4156b9
cmp eax, 0xffffffff
je 0x4156b9
cmp eax, 0x80
je 0x4156b9
push 2
push 0
mov byte [ebp + 4], 1
mov edx, dword [esi]
push 0
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415660
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [esi]
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x800
push 0
push edi
call fcn.004346f0
mov edi, dword [esi + 0x804]
add esp, 0xc
cmp byte [edi + 4], 0
je 0x4156b9
mov ecx, dword [edi]
push 0
push 1
push ecx
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x4156b9
mov byte [edi + 4], 1
mov edi, dword [esi + 0x808]
cmp byte [edi + 4], 0
je 0x4156de
mov edx, dword [edi]
push 0
push 1
push edx
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x4156de
mov byte [edi + 4], 1
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
mov edi, dword [esi + 0x804]
mov ecx, dword [edi]
push ecx
call ebp
test eax, eax
je 0x4156fe
mov dword [edi], 0
mov eax, dword [esi + 0x804]
test eax, eax
je 0x415711
push eax
call fcn.00416414
add esp, 4
mov edi, dword [esi + 0x808]
mov edx, dword [edi]
push edx
call ebp
test eax, eax
je 0x415726
mov dword [edi], 0
mov esi, dword [esi + 0x808]
test esi, esi
je 0x415739
push esi
call fcn.00416414
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x415740
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x456ece
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x404], eax
push edi
mov eax, dword [0x4749e0]
xor eax, esp
push eax
lea eax, [esp + 0x410]
mov dword fs:[0], eax
mov eax, dword [0x4792ac]
test eax, eax
jne 0x4157f4
lea eax, [esp + 0xc]
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4157ac
push eax
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x467218
lea eax, [esp + 0x10]
push 0x200
push eax
call fcn.00434523
push 0x818
call fcn.004163e4
mov edi, eax
add esp, 0x10
mov dword [esp + 8], edi
test edi, edi
mov dword [esp + 0x418], 0
je 0x4157ed
lea eax, [esp + 0xc]
call fcn.004154b0
jmp 0x4157ef
xor eax, eax
mov dword [0x4792ac], eax
mov ecx, dword [esp + 0x410]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.004321fe
add esp, 0x414
ret

Function at 0x415820
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push esi
lea eax, [esp + 0x408]
push eax
push 0x200
mov esi, 4
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x408]
push ecx
lea edx, [esp + 0xc]
push 0x200
push edx
call fcn.00432288
add esp, 0xc
push str._asu.trace
lea eax, [esp + 0xc]
push 0x200
push eax
call fcn.00434523
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
call ebx
test eax, eax
je 0x415897
mov esi, 6
jmp 0x4158d8
lea edx, [esp + 0x408]
push edx
lea eax, [esp + 0xc]
push 0x200
push eax
call fcn.00432288
add esp, 0xc
push str._asu.debug
lea ecx, [esp + 0xc]
push 0x200
push ecx
call fcn.00434523
add esp, 0xc
lea edx, [esp + 8]
push edx
call ebx
test eax, eax
je 0x4158d8
mov esi, 5
lea eax, [esp + 0x408]
push eax
lea ecx, [esp + 0xc]
push 0x200
push ecx
call fcn.00432288
add esp, 0xc
push str._asu.buffer
lea edx, [esp + 0xc]
push 0x200
push edx
call fcn.00434523
add esp, 0xc
lea eax, [esp + 8]
push eax
call ebx
test eax, eax
je 0x41591e
mov dword [edi + 0x814], 0
cmp esi, 6
mov eax, 1
jl 0x41592e
mov byte [edi + 0x80c], al
cmp esi, 5
jl 0x415939
mov byte [edi + 0x80d], al
cmp esi, 4
jl 0x415944
mov byte [edi + 0x80e], al
cmp esi, 3
jl 0x41594f
mov byte [edi + 0x80f], al
cmp esi, 2
jl 0x41595a
mov byte [edi + 0x810], al
cmp esi, eax
jl 0x415964
mov byte [edi + 0x811], al
push str.1.0.175.0
push str.Build_Version____s
mov ecx, str.Setup
mov eax, edi
call fcn.00415ab0
push esi
push str.Logging_Level_verbosity_Set__to__d
mov ecx, str.Setup
mov eax, edi
call fcn.00415ab0
mov ecx, dword [esp + 0x81c]
add esp, 0x10
pop esi
pop ebx
xor ecx, esp
call fcn.004321fe
add esp, 0x80c
ret
Function at 0x415c40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
mov esi, eax
mov edi, dword [esi + 0x808]
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x415dfb
cmp eax, 0xffffffff
je 0x415dfb
cmp eax, 0x80
je 0x415dfb
push ebx
push ebp
lea ebp, [esi + 4]
mov eax, ebp
mov byte [edi + 4], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415c83
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
mov edi, eax
mov eax, edx
lea ebx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415ca0
sub eax, ebx
sar eax, 1
lea ecx, [eax + edi + 3]
cmp ecx, dword [esi + 0x814]
jb 0x415db5
mov eax, edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415cc4
mov edi, dword [esi + 0x804]
sub eax, edx
mov edx, dword [edi]
push 0xffffffffffffffff
sar eax, 1
push edx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x415dd4
cmp eax, 0xffffffff
je 0x415dd4
cmp eax, 0x80
je 0x415dd4
push 2
push 0
mov byte [edi + 4], 1
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, ebp
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415d20
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [esi]
push edx
push ebp
push eax
call edi
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi]
lea edx, [ebx + ebx]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0
call edi
mov eax, dword [esi]
push 0
lea edx, [esp + 0x14]
push edx
push 4
push 0x467308
push eax
mov dword [esp + 0x24], 0
call edi
push 0x800
push 0
push ebp
call fcn.004346f0
mov edi, dword [esi + 0x804]
add esp, 0xc
cmp byte [edi + 4], 0
je 0x415dd4
mov ecx, dword [edi]
push 0
push 1
push ecx
mov byte [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x415dd4
mov byte [edi + 4], 1
jmp 0x415dd4
push edx
push 0x400
push ebp
call fcn.00434523
push 0x467308
push 0x400
push ebp
call fcn.00434523
add esp, 0x18
mov esi, dword [esi + 0x808]
cmp byte [esi + 4], 0
pop ebp
pop ebx
je 0x415dfb
mov edx, dword [esi]
push 0
push 1
push edx
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
jne 0x415dfb
mov byte [esi + 4], 1
pop edi
pop esi
pop ecx
ret 4
Function at 0x415f00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push 0
push 0x2b
lea eax, [esp + 0x10]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x415f5d
push str.Unable_to_retreive_commonPath:_n
call fcn.00415740
mov ebx, str.Utilities
call fcn.00415ea0
add esp, 4
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004321fe
add esp, 0x214
ret
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415f64
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00403640
push 6
push str.Adobe
mov ecx, esi
call fcn.00408f70
cmp dword [esi + 0x18], 8
jb 0x415f97
mov esi, dword [esi + 4]
jmp 0x415f9a
add esi, 4
push esi
push str.ACF_Path_retreived_:_ls_n
call fcn.00415740
mov ebx, str.Utilities
call fcn.00415e10
mov ecx, dword [esp + 0x21c]
add esp, 8
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004321fe
add esp, 0x214
ret
Function at 0x416bd3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x455278
call fcn.00434b64
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.00422170
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x416c1e
call fcn.00422170
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 0x416c2f
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x416c3c
or eax, 0xffffffff
jmp 0x416d98
mov ecx, esi
call fcn.004166f8
mov dword [ebp - 0x14], eax
call fcn.004195b5
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x416cba
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x416cba
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x416cba
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00416587
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x416cba
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x416cba
mov ecx, ebx
call fcn.0041c364
test eax, eax
je 0x416cba
push 0
mov ecx, ebx
call fcn.0041c37f
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041affb
push dword [ebp - 0x14]
call fcn.0041950d
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.004169db
xor edi, edi
cmp eax, edi
je 0x416d17
test byte [esi + 0x3c], 0x10
je 0x416d01
push 4
pop edi
mov ecx, esi
call fcn.0041c275
test ax, 0x100
je 0x416cf7
push 5
pop edi
push edi
mov ecx, esi
call fcn.004190a3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x416d17
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041c54e
or dword [ebp - 4], 0xffffffff
jmp 0x416d42
cmp dword [ebp - 0x28], edi
je 0x416d50
push 1
mov ecx, ebx
call fcn.0041c37f
cmp dword [ebp - 0x2c], edi
je 0x416d60
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x416d79
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x416d79
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.00416732
cmp dword [esi + 0x58], edi
je 0x416d95
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00434c09
ret
Function at 0x41a5ad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41a5e6
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.0041a546
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00415320
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x41c13a
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 0x41c17d
call fcn.00422170
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41c17d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41c198
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041bcf4
test ebx, ebx
mov esi, eax
je 0x41c196
test edi, edi
je 0x41c196
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41f2ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4749e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41f329
push 0x45af10
push 4
push eax
call fcn.00432288
push eax
call fcn.00409070
add esp, 0x10
jmp 0x41f33b
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41f3a6
push edi
call fcn.004345d8
mov edi, dword [eax]
call fcn.004345d8
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00433247
add esp, 0x18
mov ebx, eax
call fcn.004345d8
cmp dword [eax], 0
je 0x41f386
call fcn.004345d8
push dword [eax]
call fcn.00416e6e
pop ecx
jmp 0x41f38d
call fcn.004345d8
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41f3a6
cmp ebx, esi
jae 0x41f3a6
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41f3a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004321fe
leave
ret
Function at 0x42050c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x420552
call fcn.00422170
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x420552
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x420595
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x42057e
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 0x42057e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x420592
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 0x4230c3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4230f1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42310f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042302d
jmp 0x42310f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42310f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042302d
test edi, edi
mov eax, edi
jne 0x4230f9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4781e0]
test ecx, ecx
je 0x4231d2
jmp 0x4230c2
ret 8

Function at 0x4321fe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4749e0]
jne 0x432208
repz ret
jmp fcn.00439c38
Function at 0x438277
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x474a00]
je 0x438292
inc edi
cmp edi, 0x17
jb 0x438283
cmp edi, 0x17
jae 0x438412
push ebp
push 3
call fcn.00444308
cmp eax, 1
pop ecx
je 0x4383de
push 3
call fcn.00444308
test eax, eax
pop ecx
jne 0x4382c6
cmp dword [0x47457c], 1
je 0x4383de
cmp ebx, 0xfc
je 0x438411
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4784b8
push ebp
call fcn.004397d5
add esp, 0xc
test eax, eax
je 0x4382fc
push esi
push esi
push esi
push esi
push esi
call fcn.004322fe
add esp, 0x14
push 0x104
mov esi, 0x4784d1
push esi
push 0
mov byte [0x4785d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438340
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004397d5
add esp, 0xc
test eax, eax
je 0x438340
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004322fe
add esp, 0x14
push esi
call fcn.00439840
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438385
push esi
call fcn.00439840
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4787cc
push 0x45d124
sub ecx, eax
push ecx
push eax
call fcn.00444255
add esp, 0x14
test eax, eax
je 0x438385
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004322fe
add esp, 0x14
jmp 0x438387
xor esi, esi
push 0x45d120
push ebx
push ebp
call fcn.004441e4
add esp, 0xc
test eax, eax
je 0x4383a7
push esi
push esi
push esi
push esi
push esi
call fcn.004322fe
add esp, 0x14
push dword [edi*8 + 0x474a04]
push ebx
push ebp
call fcn.004441e4
add esp, 0xc
test eax, eax
je 0x4383c9
push esi
push esi
push esi
push esi
push esi
call fcn.004322fe
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00444027
add esp, 0xc
jmp 0x438411
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438411
cmp ebp, 0xffffffff
je 0x438411
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x474a04]
push dword [esi]
call fcn.00439840
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret