joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429e8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x429ed5
call fcn.0042ead1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x429ed5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x429ef1
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042998e
mov esi, eax
test edi, edi
je 0x429eef
test ebx, ebx
je 0x429eef
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42a6cb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x548521
call fcn.00527b79
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x42a6f0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42a742
call fcn.0042d36a
push eax
lea ecx, [ebp - 0x10]
call fcn.004015bc
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00523b78
push eax
call fcn.0040bf30
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401621
mov eax, esi
call fcn.00527c51
ret 8

Function at 0x42ebbe
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x42ec03
push 0x55bdb0
push 4
push eax
call fcn.005264c3
push eax
call fcn.0040bf30
add esp, 0x10
jmp 0x42ec19
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x42ec99
push edi
call fcn.0052808e
mov edi, dword [eax]
call fcn.0052808e
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005258ce
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0052808e
cmp dword [eax], 0
je 0x42ec6d
call fcn.0052808e
push dword [eax]
call fcn.00423826
pop ecx
jmp 0x42ec74
call fcn.0052808e
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x42ec99
cmp dword [ebp - 0x234], esi
jae 0x42ec99
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x42ec9b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005220b2
leave
ret
Function at 0x42f13a
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004253a4
pop ecx
cmp eax, esi
je 0x42f224
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x42f224
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00527ca0
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x42f224
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x42f224
cmp esi, 0x14
jge 0x42f224
push 0x10
push 0
push edi
call fcn.00529d94
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x42f213
call fcn.0052808e
cmp dword [eax], 0x22
je 0x42f213
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00527c83
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x42f1e9
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5b38b4], 0
jne 0x42f2af
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x42f2d8
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.0042ebbe
pop ecx
pop ecx
test eax, eax
jne 0x42f2da
inc edi
cmp edi, esi
jl 0x42f2b5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005220b2
leave
ret 8
Function at 0x43004f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x430097
call fcn.0042ead1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430097
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4300da
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4300c3
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 0x4300c3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4300d7
mov ecx, dword [esi + 0x68]
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 0x431e6f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0042ead1
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x431ea8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00431aac
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 0x431f06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x431f2a
cmp dword [edi + 0x74], 0
jne 0x431f2a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0042ead1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00431ec7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x432f25
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00428421
call fcn.0041bd27
cmp eax, esi
pop esi
jne 0x432f41
mov ecx, 0x5b3c48
jmp fcn.0043a182
ret
Function at 0x43345f
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00433103
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4334a9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00423777
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041b14a
jmp 0x4334b4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00437001
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4334ba
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00429f9a
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4334f7
call fcn.00433103
mov dword [esi + 0xc], 1
jmp 0x4334fc
call fcn.00433103
cmp dword [esi], 0
je 0x433545
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x43351d
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00423777
jmp 0x43352f
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401734
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041b14a
jmp 0x433569
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x433569
push dword [esi]
push dword [ebp + 8]
call fcn.00437001
pop esi
pop ebp
ret 0xc

Function at 0x439338
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x43936d
xor eax, eax
jmp 0x4393c0
lea eax, [ebp - 0x210]
push eax
call fcn.00527c83
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x43939e
push 0x585004
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005258ef
add esp, 0xc
test eax, eax
jne 0x439369
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005258ef
add esp, 0xc
test eax, eax
jne 0x439369
lea eax, [ebp - 0x210]
push eax
call fcn.004253a4
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005220b2
leave
ret
Function at 0x48f9eb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x48fa05
call fcn.0042ead1
mov esi, dword [eax + 0xc]
push dword [0x5b5728]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x48fa23
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x48fa1b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x48fa50
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x48fa1d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0048f919
mov esi, eax
jmp 0x48fa42

Function at 0x508f46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x508f5e
mov edi, dword [esi + 0xc]
jmp 0x508f9e
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x508f77
call fcn.0042b4a6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x508f8c
call fcn.0042b4a6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x508f9e
call fcn.0042b4a6
call fcn.0042ead1
cmp dword [eax + 0x3c], 0
je 0x508fb3
push edi
mov ecx, ebx
call fcn.00507d78
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00508e60
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x508fd1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x508fdd
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5220b2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5aff20]
jne 0x5220bc
repz ret
jmp fcn.0052d333

Function at 0x522e90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x522eb7
call fcn.005280a1
mov dword [eax], esi
call fcn.0052808e
push 0x16
pop esi
mov dword [eax], esi
call fcn.0052d826
mov eax, esi
jmp 0x522f0c
test dword [ebp + 0xc], 0xfffffff9
jne 0x522e9d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x522ee4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005280b4
pop ecx
call fcn.0052808e
mov eax, dword [eax]
jmp 0x522f0c
test al, 0x10
jne 0x522f0a
test al, 1
je 0x522f0a
test byte [ebp + 0xc], 2
je 0x522f0a
call fcn.005280a1
mov dword [eax], 5
call fcn.0052808e
mov dword [eax], 0xd
jmp 0x522edb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5266b4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x5266dc
call fcn.005280a1
and dword [eax], 0
call fcn.0052808e
mov dword [eax], 0x16
call fcn.0052d826
or eax, 0xffffffff
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5266f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005280b4
pop ecx
jmp 0x5266d7
test byte [ebp + 0xc], 0x80
je 0x526704
and eax, 0xfffffffe
jmp 0x526707
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5266ea
xor eax, eax
pop ebp
ret

Function at 0x539648
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5aff20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0052cd5b
and dword [ebp - 0x14], 0
cmp dword [0x5b80f8], 0
mov dword [ebp - 0x18], eax
jne 0x5396fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5397a3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x582058
push ebx
call edi
test eax, eax
je 0x5397a3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x582048
push ebx
mov dword [0x5b80f8], eax
call edi
push eax
call esi
push 0x582034
push ebx
mov dword [0x5b80fc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5b8100], eax
call edi
push eax
call esi
mov dword [0x5b8108], eax
test eax, eax
je 0x5396fb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5b8104], eax
mov eax, dword [0x5b8104]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x539754
cmp dword [0x5b8108], ecx
je 0x539754
push eax
call esi
push dword [0x5b8108]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x539754
test ebx, ebx
je 0x539754
call edi
test eax, eax
je 0x53974b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53974b
test byte [ebp - 8], 1
jne 0x539754
or dword [ebp + 0x10], 0x200000
jmp 0x539787
mov eax, dword [0x5b80fc]
cmp eax, dword [ebp - 0x18]
je 0x539787
push eax
call esi
test eax, eax
je 0x539787
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x539787
mov eax, dword [0x5b8100]
cmp eax, dword [ebp - 0x18]
je 0x539787
push eax
call esi
test eax, eax
je 0x539787
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5b80f8]
call esi
test eax, eax
je 0x5397a3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5397a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005220b2
leave
ret
Function at 0x54250d
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x54254e
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x542527
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x54256c
dec esi
je 0x542563
dec esi
jne 0x542571
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40f2c7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f306
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f306
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f306
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f306
cmp dword [ecx + 0x74], 0xe
jbe 0x40f306
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411daa
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x55dca0
push str.FlsAlloc
push 0x1f
call fcn.00411a7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411dde
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x411de4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411e28
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x55dcc4
push str.FlsGetValue
push 0x21
call fcn.00411a7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411e5f
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411e67
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x55dcd8
push str.FlsSetValue
push 0x22
call fcn.00411a7c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411ea1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x414369
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5b6390]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4143b4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004145c5
test al, al
jne 0x4143ae
sub edx, 2
cmp edx, edi
jne 0x414394
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4143d6
lea eax, [edi + 2]
cmp edx, eax
je 0x4143d6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00414030
add esp, 0x10
jmp 0x4144d0
push esi
lea ecx, [ebp - 0x255]
call fcn.004145c5
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414419
push dword [ebp - 0x25c]
jmp 0x4143c6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x414456
cmp word [ebp - 0x226], 0
je 0x414477
cmp word [ebp - 0x226], ax
jne 0x414456
cmp word [ebp - 0x224], 0
je 0x414477
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00414030
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4144c3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x414430
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4144ab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4144d0
push 0x413a80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041ba90
add esp, 0x10
jmp 0x4144a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bd5f
leave
ret

Function at 0x4171f8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041063b
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417267
cmp esi, dword [ebp - 4]
je 0x417262
cmp dword [ebp + 0xc], 0
je 0x417262
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41723f
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00416d4a
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x417269
xor eax, eax
inc eax
jmp 0x417269
xor eax, eax
pop edi
pop esi
leave
ret