joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f3f2
Capabilities:
Get common file path

Disassembly:
push 0x278
mov eax, 0x4a3862
call fcn.0049fa2f
mov ebx, ecx
mov dword [ebp - 0x280], ebx
mov dword [ebp - 0x284], ebx
mov eax, dword fs:[0x2c]
xor esi, esi
mov dword [ebp - 0x284], ebx
mov edi, 0x4cb43c
mov ecx, dword [eax]
mov eax, dword [0x4cb438]
cmp eax, dword [ecx + 4]
jle 0x47f46f
push 0x4cb438
call fcn.0040d89d
cmp dword [0x4cb438], 0xffffffff
pop ecx
jne 0x47f46f
push 0x4b9024
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0040d89d
push 0x4a6690
call fcn.0040d89d
or dword [ebp - 4], 0xffffffff
mov dword [esp], 0x4cb438
call fcn.0040d89d
pop ecx
cmp dword [0x4cb44c], 0
jne 0x47f590
push 0x20a
lea eax, [ebp - 0x21c]
push esi
push eax
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
call fcn.0040d89d
test al, al
je 0x47f563
push str.LogSession
lea ecx, [ebp - 0x24c]
call fcn.0040d89d
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 1
call fcn.00477e85
mov ebx, eax
lea ecx, [ebp - 0x264]
push 0x4adacc
mov eax, dword [ebx]
mov edi, dword [eax + 0x40]
call fcn.0040d89d
mov esi, eax
push str.IE_is_protected_mode_
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
call fcn.0040d89d
push esi
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call dword [0x4a75c0]
mov ecx, ebx
call edi
lea ecx, [ebp - 0x234]
call fcn.0046a23d
lea ecx, [ebp - 0x264]
call fcn.0046a23d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.0046a23d
lea ecx, [ebp - 0x27c]
call fcn.00474779
mov esi, eax
mov edi, 0x4cb43c
cmp esi, edi
je 0x47f550
mov ecx, edi
call fcn.0046d98d
push esi
mov ecx, edi
call fcn.0040d89d
lea ecx, [ebp - 0x27c]
call fcn.0046d98d
mov ebx, dword [ebp - 0x280]
jmp 0x47f590
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea ecx, [ebp - 0x21c]
mov eax, 0x4b9024
cmovne ecx, eax
push ecx
mov ecx, edi
call fcn.0040d89d
push edi
mov ecx, ebx
call fcn.004723ba
mov eax, ebx
call fcn.0049f9de
ret

Function at 0x47f7a8
Capabilities:
Get session user name

Disassembly:
push 0x254
mov eax, 0x4a38b6
call fcn.0049fa2f
mov esi, ecx
mov dword [ebp - 0x260], esi
xor eax, eax
mov dword [ebp - 0x260], esi
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x260], 0x100
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040d89d
and dword [ebp - 4], 0
lea edx, [ebp - 0x25c]
lea ecx, [ebp - 0x22c]
call fcn.0046ee68
push str.AdobeHeadlights
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.0040d89d
mov byte [ebp - 4], 2
lea eax, [ebp - 0x22c]
cmp dword [ebp - 0x218], 0x10
lea ecx, [ebp - 0x244]
push dword [ebp - 0x21c]
cmovae eax, dword [ebp - 0x22c]
push eax
call fcn.0046a372
push eax
mov ecx, esi
call fcn.00469e2b
lea ecx, [ebp - 0x244]
call fcn.0046a23d
lea ecx, [ebp - 0x22c]
call fcn.0046a23d
lea ecx, [ebp - 0x25c]
call fcn.0046d98d
mov eax, esi
call fcn.0049f9de
ret
Function at 0x47fe6f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xf4
mov eax, 0x4a39c0
call fcn.0049fa2f
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], eax
cmp dword [ecx], ebx
jne 0x47fe97
xor al, al
jmp 0x47ff75
push 0x802
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], 0x400
call fcn.0040d89d
mov dword [esp], 0x802
mov edi, eax
push ebx
push edi
call dword [sym.imp.VCRUNTIME140.dll_memset]
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x47fec9
mov eax, dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
push edi
lea ecx, [ebp - 0x44]
push ecx
push ebx
push eax
mov eax, dword [ebp - 0x50]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cdq
cmp eax, ebx
jne 0x47ff55
cmp edx, ebx
jne 0x47ff55
cmp dword [ebp - 0x44], 4
jne 0x47ff48
mov esi, dword [edi]
push ecx
lea ecx, [ebp - 0x100]
call fcn.0048014f
push esi
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe8]
call fcn.0047276e
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x28]
push eax
call fcn.0040d89d
lea ecx, [ebp - 0x28]
call fcn.0046d98d
lea ecx, [ebp - 0x98]
call fcn.0048011f
lea ecx, [ebp - 0x98]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x47ff51
mov ecx, dword [ebp - 0x48]
push edi
call fcn.0040d89d
mov bl, 1
jmp 0x47ff6c
push esi
mov edx, str.Query_registry_value_with_key:
lea ecx, [ebp - 0x40]
call fcn.0040d89d
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0046d98d
push edi
call fcn.0048844b
pop ecx
mov al, bl
call fcn.0049f9de
ret 8

Function at 0x48ab60
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
push esi
xor esi, esi
cmp ecx, edx
je 0x48ab95
nop
movsx eax, byte [ecx]
inc ecx
imul eax, eax, 0xcc9e2d51
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
cmp ecx, edx
jne 0x48ab70
mov eax, 3
mov ecx, esi
mul esi
sub ecx, edx
shr ecx, 1
add ecx, edx
shr ecx, 0x1e
imul ecx, ecx, 0x7fffffff
sub esi, ecx
or esi, 0x40000000
mov eax, esi
pop esi
ret
Function at 0x401040
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x258], bl
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x259]
rep stosd dword es:[edi], eax
mov ebp, dword [esp + 0x360]
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebp
lea eax, [esp + 0x25c]
push str._s.
push eax
call fcn.00407060
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x258]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov cl, byte [esp + 0x40]
mov dword [esp + 0x10], eax
cmp cl, bl
jne 0x4010c5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x34c
ret
mov esi, 0x410054
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4010f2
cmp cl, bl
je 0x4010ee
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4010f2
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4010ce
xor eax, eax
jmp 0x4010f7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4011d8
mov esi, 0x410050
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40112c
cmp cl, bl
je 0x401128
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40112c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401108
xor eax, eax
jmp 0x401131
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x4011d8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x155]
mov byte [esp + 0x154], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
cmp byte [ecx + ebp], bl
jne 0x40116f
mov al, byte [ecx + ebp - 1]
dec ecx
cmp al, bl
je 0x401166
mov cl, byte [ecx + ebp]
cmp cl, 0x5c
je 0x401191
cmp cl, 0x2f
je 0x401191
lea eax, [esp + 0x40]
lea ecx, [esp + 0x154]
push eax
push ebp
push str._s_s
push ecx
jmp 0x4011a4
lea edx, [esp + 0x40]
lea eax, [esp + 0x154]
push edx
push ebp
push 0x410040
push eax
call fcn.00407060
mov al, byte [esp + 0x24]
add esp, 0x10
test al, 0x10
je 0x4011c8
lea ecx, [esp + 0x154]
push ecx
call fcn.00401040
add esp, 4
test al, al
je 0x401200
lea edx, [esp + 0x154]
push edx
call fcn.00401020
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4010c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x401218
jmp 0x4010c5
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x34c
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.00401000
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x401240
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x28]
lea ecx, [esp]
push ecx
mov dword [0x413768], eax
mov dword [esp + 4], 8
mov dword [esp + 8], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov edx, dword [0x413768]
push 0
push 0x401330
push 0
push 0x44c
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [0x41376c], eax
jne 0x4012a6
push 0x30
push str.My_Pictures_3D_Package
push str.Unfortunately_package_cover_is_stuck_and_gallery_cannot_be_unpacked
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x24
ret 0x10
push esi
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push eax
call edi
mov eax, dword [0x41376c]
push esi
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
test eax, eax
je 0x40131c
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov eax, dword [0x41376c]
lea edx, [esp + 0x18]
push edx
push eax
call ebp
test eax, eax
jne 0x401309
lea ecx, [esp + 0x18]
push ecx
call edi
lea edx, [esp + 0x18]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
jne 0x4012ea
pop ebp
pop ebx
mov eax, dword [esp + 0x18]
pop edi
pop esi
add esp, 0x24
ret 0x10

Function at 0x401470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [str.gallery_]
mov ecx, dword [0x4100c8]
mov dl, byte [0x4100cc]
mov dword [esp], eax
lea eax, [esp + 0xc]
mov dword [esp + 4], ecx
push eax
push 0x104
mov byte [esp + 0x10], dl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x4014b9
lea ecx, [esp + 0xc]
push 0x4100c0
push ecx
call fcn.00407060
add esp, 8
push edi
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
pop edi
mov al, byte [esp + ecx + 0xc]
test al, al
jne 0x4014dc
mov al, byte [esp + ecx + 0xb]
dec ecx
test al, al
je 0x4014d3
cmp byte [esp + ecx + 0xc], 0x5c
je 0x4014f7
push 1
lea edx, [esp + 0x10]
push 0x4100bc
push edx
call fcn.00407110
add esp, 0xc
lea eax, [esp]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x410040
push 0x413770
call fcn.00407060
push 0x413770
call fcn.0040ee85
add esp, 0x124
ret
Function at 0x4013d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0040c419

Function at 0x401a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a25
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a64
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401a60
lea ebx, [ebx]
cmp esi, edx
jae 0x401a64
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401a50
cmp esi, edx
jb 0x401a69
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x401d50
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ca2b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push esi
push edi
mov eax, dword [0x59eed8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
call fcn.0040fe9e
add esp, 4
push str.Global50ece850_439b_11e0_9207_0800200c9a66
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
cmp eax, 0xb7
jne 0x401dcc
push 0
push 0x54e40c
call fcn.0040fa57
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xa4]
call fcn.00401eb0
lea eax, [ebp - 0xa4]
mov ecx, eax
mov dword [ebp - 4], 0
mov dword [edi + 0x20], eax
call fcn.0040c77d
lea ecx, [ebp - 0xa4]
mov dword [ebp - 4], 0xffffffff
call fcn.0040c281
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402470
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x59eed8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 2
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00523fa0
add esp, 0xc
cmp byte [ebp - 0x83], 0x3a
jne 0x4024ea
mov al, byte [ebp - 0x84]
mov byte [ebp - 0x308], al
push 4
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x84]
push eax
mov word [ebp - 0x307], 0x5c3a
mov byte [ebp - 0x305], 0
call fcn.00523fa0
add esp, 0xc
push str.GetDiskFreeSpaceExA
push 0x54e428
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402541
lea ecx, [ebp - 0x31c]
push ecx
lea ecx, [ebp - 0x328]
push ecx
lea ecx, [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x84]
push ecx
call eax
test eax, eax
je 0x4025b1
mov eax, dword [ebp - 0x31c]
and eax, 0xfff00000
cmp dword [ebp - 0x318], 0
ja 0x402599
jmp 0x402592
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4025b1
mov eax, dword [ebp - 0x310]
mul dword [ebp - 0x314]
push 0
push dword [ebp - 0x30c]
push edx
push eax
call fcn.00524470
and eax, 0xfff00000
test edx, edx
jne 0x402599
cmp eax, 0x6400000
jbe 0x4025d4
mov eax, 1
test eax, eax
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523744
mov esp, ebp
pop ebp
ret
movsx eax, byte [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x304]
push str.error:__lu:__could_not_get_free_space_for___s:__n
push eax
call fcn.00524354
add esp, 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
test eax, eax
setne al
xor ecx, ebp
call fcn.00523744
mov esp, ebp
pop ebp
ret

Function at 0x403050
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x59eed8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push esi
lea eax, [ebp - 0x54]
push str._s_failed:_GetLastError_returned__u_n
push eax
call fcn.00524354
add esp, 0x10
lea eax, [ebp - 0x54]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40643c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x59eed8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x5a2028]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x406488
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4064a5
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a2028], eax
jmp 0x406491
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4064a5
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x406512
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4064c0
xor eax, eax
jmp 0x406512
lea eax, [ebp - 0x210]
push eax
call fcn.00525092
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4064f1
push 0x54eec0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00526e50
add esp, 0xc
test eax, eax
jne 0x4064bc
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00526e50
add esp, 0xc
test eax, eax
jne 0x4064bc
lea eax, [ebp - 0x210]
push eax
call fcn.0040b2a8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00523744
leave
ret

Function at 0x406cda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x406d1f
call fcn.0041159d
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406d1f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x406d3b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040cf35
mov ebx, eax
test edi, edi
je 0x406d39
test esi, esi
je 0x406d39
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40bcca
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x548eba
call fcn.00524ead
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x40bcf0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x40bd44
call fcn.00404670
push eax
lea ecx, [ebp - 0x10]
call fcn.00401000
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00524e05
push eax
call fcn.00403136
add esp, 0x14
test edi, edi
je 0x40bd37
push edi
call fcn.00524f90
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004018d0
mov eax, esi
call fcn.00524e7b
ret 8
Function at 0x40c475
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041159d
mov ebx, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c4ac
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0040c4cb
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4104cd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x410517
call fcn.0041159d
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x410514
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x410550
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test edi, edi
je 0x410539
push dword [ebp + 0x10]
mov edx, dword [eax]
push edi
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x20]
mov ebx, eax
test esi, esi
je 0x410539
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x68]
test ecx, ecx
je 0x41054e
mov eax, dword [ecx]
push dword [ebp + 0x10]
call dword [eax + 0xa0]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x417449
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x59eed8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x20], eax
mov eax, dword [0x5a2454]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
test eax, eax
jne 0x4174a2
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4174bf
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5a2454], eax
jmp 0x4174ab
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4174bf
mov eax, dword [ebp - 0x20]
push ebx
push edi
push eax
push dword [ebp + 8]
call esi
jmp 0x4175fc
mov eax, dword [ebp - 0x20]
and dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0053c6ae
lea eax, [ebp - 0x14]
push eax
call fcn.00525092
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00525036
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
lea edi, [esi + 1]
call fcn.0053c6ae
lea eax, [ebp - 0x14]
push eax
call fcn.00525092
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00525036
add esp, 0x38
add edi, esi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ecx, ax
mov ebx, ecx
push 7
lea eax, [ebp - 0x14]
and ecx, 0xfc00
and ebx, 0x3ff
push eax
or ecx, ebx
push ecx
call fcn.0053c6ae
lea eax, [ebp - 0x14]
push eax
call fcn.00525092
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00525036
push 7
lea eax, [ebp - 0x14]
push eax
push ebx
add edi, esi
call fcn.0053c6ae
lea eax, [ebp - 0x14]
push eax
call fcn.00525092
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
mov ebx, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00525036
push 7
lea eax, [ebp - 0x14]
push eax
push 0x800
add edi, esi
call fcn.0053c6ae
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.00525092
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
lea ecx, [ebx + edi*2]
push ecx
call fcn.00525036
lea eax, [edi + esi]
xor ecx, ecx
mov word [ebx + eax*2 + 2], cx
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523744
leave
ret