joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9d0
Capabilities:
Accept command line arguments

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov cl, byte [eax]
mov edx, eax
cmp cl, 0x22
jne 0x40d9f7
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x22
je 0x40da0d
test cl, cl
je 0x40da0d
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x22
jne 0x40d9e8
jmp 0x40da0d
cmp cl, 0x20
je 0x40da0d
lea esp, [esp]
test cl, cl
je 0x40da0d
mov cl, byte [eax + 1]
inc eax
cmp cl, 0x20
jne 0x40da00
push esi
mov esi, eax
dec eax
cmp eax, edx
jbe 0x40da28
mov cl, byte [eax]
cmp cl, 0x5c
je 0x40da2d
cmp cl, 0x2e
jne 0x40da23
mov esi, eax
dec eax
cmp eax, edx
ja 0x40da15
cmp byte [eax], 0x5c
jne 0x40da2e
inc eax
sub esi, eax
push esi
push eax
push edi
call fcn.00434950
add esp, 0xc
mov byte [esi + edi], 0
pop esi
ret

Function at 0x4105b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x446be1
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x1e0], ebx
mov dword [esp + 0xf4], ebx
jle 0x4106e6
mov eax, dword [esi + 0x1c8]
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x410672
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41066b
lea eax, [ebp + 1]
push eax
lea ecx, [esp + 0x18]
call fcn.00403650
mov ebx, dword [esp + 0x14]
test al, al
je 0x41066b
push 0
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41065e
mov byte [ebx + ebp], 0
jmp 0x41066b
lea ecx, [esp + 0x14]
call fcn.0040dc80
mov ebx, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
call fcn.00409520
mov byte [esp + 0xf4], 1
call fcn.004205e2
mov eax, dword [eax + 8]
mov edx, dword [esp + 0xfc]
mov ecx, dword [esi + 0x1d0]
push eax
mov eax, dword [esi + 0x1e0]
push 0
push edx
push ecx
push eax
push ebx
lea ecx, [esp + 0x38]
call fcn.00409bb0
lea ecx, [esp + 0x20]
mov byte [esp + 0xf4], 0
call fcn.00409550
test ebx, ebx
je 0x4106ca
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe4
ret 4
mov eax, dword [esp + 0xfc]
cmp eax, 0x80070002
jne 0x410737
lea ecx, [esp + 0x3c]
call fcn.00402b00
mov byte [esp + 0xf4], 2
call fcn.004205e2
mov eax, dword [eax + 8]
mov esi, dword [esi + 0x1d0]
push eax
push 0x80070002
push esi
push ebx
lea ecx, [esp + 0x4c]
call fcn.00403570
lea ecx, [esp + 0x3c]
mov byte [esp + 0xf4], 0
call fcn.00402b30
jmp 0x4106ca
mov ecx, dword [esi + 0x1d0]
push 3
push eax
push ecx
call fcn.004036b0
add esp, 0xc
jmp 0x4106ca
Function at 0x412860
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x10c
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x118]
lea eax, [esp + 8]
push 0x400
push eax
mov ebx, ecx
call fcn.0040bd40
add esp, 8
test eax, eax
je 0x4129b1
mov eax, dword [esp + 8]
test al, al
je 0x4129b1
test ah, ah
je 0x4129b1
cmp byte [esp + 0xa], 0
jne 0x4129b1
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4128c0
sub eax, edx
add eax, 2
cmp eax, 0x104
jae 0x4129b1
lea edx, [esp + 0xc]
mov eax, ebp
sub edx, ebp
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4128e0
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4128f1
sub eax, edx
cmp byte [esp + eax + 0xb], 0x2e
lea eax, [esp + eax + 0xb]
push esi
je 0x41291e
cmp byte [eax], 0x5c
je 0x412919
lea ecx, [esp + 0x10]
cmp eax, ecx
jbe 0x412919
dec eax
cmp byte [eax], 0x2e
jne 0x412906
cmp byte [eax], 0x2e
jne 0x412951
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412923
sub ecx, esi
mov esi, ecx
lea edx, [esi + eax]
js 0x41293e
mov cl, byte [edx]
mov byte [edx + 3], cl
dec esi
dec edx
test esi, esi
jge 0x412933
mov byte [eax], 0x2d
mov dl, byte [esp + 0xc]
inc eax
mov byte [eax], dl
mov cl, byte [esp + 0xd]
mov byte [eax + 1], cl
jmp 0x412999
push edi
lea edi, [esp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412957
mov dx, word [0x44cda4]
lea eax, [esp + 0x10]
mov word [edi], dx
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412970
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x412980
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
je 0x4129b1
lea ecx, [esp + 0xc]
push ecx
jmp 0x4129b2
push ebp
mov ecx, ebx
call fcn.00411070
mov ecx, dword [esp + 0x110]
pop ebp
pop ebx
xor ecx, esp
call fcn.00434d81
add esp, 0x10c
ret 4
Function at 0x4129f0
Capabilities:
Rebuild import table

Disassembly:
push 0xffffffffffffffff
push 0x446de8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45cff0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov ecx, dword [0x45e3cc]
mov eax, dword [esp + 0x28]
and cl, 3
xor edx, edx
cmp cl, 2
setne dl
push eax
mov ecx, esi
lea edx, [edx + edx + 0x8a]
push edx
call fcn.0042bcd7
xor edi, edi
lea ecx, [esi + 0x7c]
mov dword [esp + 0x18], edi
mov dword [esi], vtable.CMenuBoxWebDlg.0
call fcn.004025c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0x44af80
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ecx
mov dword [esi + 0x184], edi
mov dword [esi + 0x188], edi
mov dword [esi + 0x18c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x190], eax
cmp eax, edi
je 0x412a95
push 0x44bad0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x412a97
xor eax, eax
fld qword [0x44bac8]
mov dword [esi + 0x194], eax
fstp qword [esi + 0x1a0]
mov byte [esi + 0x198], 0xff
fldz
mov dword [esi + 0x1b8], edi
fst qword [esi + 0x1b0]
mov dword [esi + 0x1bc], edi
fstp qword [esi + 0x1a8]
mov dword [esi + 0x1c0], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x413080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x114
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
mov ebp, dword [esp + 0x11c]
push esi
mov esi, dword [esp + 0x124]
test esi, esi
jne 0x4130ac
xor eax, eax
jmp 0x4130ba
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4130b1
sub eax, edx
push eax
push esi
mov ecx, ebp
call fcn.00401520
push 0x44cf94
push esi
call fcn.00436350
add esp, 8
test eax, eax
jne 0x4131a7
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x4131a7
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4131a7
push ebx
push str.WININET.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x4131a6
push edi
push str.InternetCanonicalizeUrlA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41319e
push 0x22000000
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x20], 1
call edi
test eax, eax
jne 0x41319e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41319e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41319e
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41319e
push 0x22000000
lea eax, [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x28]
push ecx
call edi
test eax, eax
je 0x413197
push esi
mov ecx, ebp
call fcn.00401610
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
mov ecx, dword [esp + 0x118]
pop esi
pop ebp
xor ecx, esp
call fcn.00434d81
add esp, 0x114
ret

Function at 0x413be0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push ecx
push edx
xor edi, edi
call esi
test eax, eax
jne 0x413c7b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push 0xf003f
push ebx
push ebp
push ecx
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x413c74
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
lea eax, [esp + 0x34]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x413c56
cmp dword [esp + 0x18], ebx
jne 0x413c56
cmp dword [esp + 0x1c], ebx
jne 0x413c56
lea edi, [ebx + 1]
mov edx, dword [esp + 0x14]
push edx
call esi
test edi, edi
je 0x413c74
mov eax, dword [esp + 0x10]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x413c74
lea ebx, [eax + 1]
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x413c90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 4]
push eax
push 0x20019
xor esi, esi
push esi
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x413ce7
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
push eax
push esi
push esi
push ecx
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413cdc
lea esi, [eax + 1]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret

Function at 0x413ec0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
lea eax, [esp + 8]
push eax
push edi
mov ecx, esi
call fcn.00413c90
add esp, 8
test eax, eax
je 0x413ee4
mov ecx, dword [esp + 8]
cmp ecx, dword [esp + 0x14]
je 0x413f49
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x413f34
mov edx, dword [esp + 4]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push eax
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x413f49
jle 0x413f42
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x414780
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x68
mov eax, dword [0x45cff0]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
push edi
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x54]
sub ebp, 0x44d144
jmp 0x4147c0
movzx edx, byte [esi + ebp + 0x44d144]
movzx eax, byte [esi + 0x44d144]
xor edx, eax
push edx
push str._02X
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0xd
jl 0x4147c0
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + 0x44d128]
movzx edx, byte [esp + eax + 0x54]
mov byte [esp + ecx + 0x34], dl
movzx ecx, byte [eax + 0x44d129]
movzx edx, byte [esp + eax + 0x55]
add eax, 2
cmp eax, 0x1a
mov byte [esp + ecx + 0x34], dl
jl 0x4147f0
movzx eax, byte [esp + 0x38]
push 0x10
lea ecx, [esp + 0x38]
push ebx
push ecx
mov byte [esp + 0x5a], bl
mov byte [esp + 0x1f], al
mov byte [esp + 0x44], bl
call fcn.00434d55
movzx edx, byte [esp + 0x1f]
mov esi, eax
movzx eax, byte [esp + 0x48]
push 0x10
lea ecx, [esp + 0x48]
push ebx
push ecx
mov byte [esp + 0x50], dl
mov dword [esp + 0x34], esi
mov byte [esp + 0x2b], al
mov byte [esp + 0x54], bl
call fcn.00434d55
movzx edx, byte [esp + 0x2b]
mov edi, eax
movzx eax, byte [esp + 0x58]
push 0x10
lea ecx, [esp + 0x58]
push ebx
push ecx
mov byte [esp + 0x60], dl
mov dword [esp + 0x50], edi
mov byte [esp + 0x37], al
mov byte [esp + 0x64], bl
call fcn.00434d55
movzx edx, byte [esp + 0x37]
mov ebp, eax
movzx eax, byte [esp + 0x68]
push 0x10
lea ecx, [esp + 0x68]
push ebx
push ecx
mov byte [esp + 0x70], dl
mov dword [esp + 0x54], ebp
mov byte [esp + 0x43], al
mov byte [esp + 0x74], bl
call fcn.00434d55
movzx edx, byte [esp + 0x43]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
movzx eax, byte [esp + 0x76]
push 0x10
lea ecx, [esp + 0x78]
push ebx
push ecx
mov byte [esp + 0x80], dl
mov byte [esp + 0x4f], al
mov byte [esp + 0x82], bl
call fcn.00434d55
movzx edx, byte [esp + 0x4f]
mov dword [esp + 0x6c], eax
movzx eax, byte [esp + 0x8a]
push 0x10
lea ecx, [esp + 0x86]
push ebx
push ecx
mov byte [esp + 0x8e], dl
mov byte [esp + 0x5b], al
mov byte [esp + 0x96], bl
call fcn.00434d55
movzx edx, byte [esp + 0x5b]
mov cl, byte [esp + 0x78]
add esp, 0x48
mov byte [esp + 0x4e], dl
test cl, 8
je 0x414932
or esi, 0x10000
jmp 0x414936
mov esi, dword [esp + 0x1c]
test cl, 4
je 0x414943
or edi, 0x10000
jmp 0x414947
mov edi, dword [esp + 0x2c]
test cl, 2
je 0x414954
or ebp, 0x10000
jmp 0x414958
mov ebp, dword [esp + 0x24]
test cl, 1
je 0x414969
mov ecx, dword [esp + 0x14]
or ecx, 0x10000
jmp 0x41496d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
cmp edx, ebx
je 0x414977
mov dword [edx], eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x414992
push ecx
push ebp
push edi
push esi
push str._05u__05u__05u__05u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00434d81
add esp, 0x68
ret
Function at 0x416c00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
push 0x45b9fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x416c88
push str.GetFileSizeEx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x416c49
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 0xc]
mov dword [ebp - 8], eax
jmp 0x416c7e
cmp dword [ebp + 0xc], 0
je 0x416c7e
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x416c77
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416c7e
mov dword [ebp - 8], 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x417320
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
push 0x45bb08
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417383
push str.GetFileAttributesExA
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x417379
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 8], 0
je 0x417450
cmp dword [ebp + 0xc], 0
jne 0x417448
cmp dword [ebp + 0x10], 0
je 0x417448
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x417431
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x417427
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x14]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x20], 0xffffffff
jne 0x417427
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417427
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x417446
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
jmp 0x417450
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417460
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4174c3
push str.GetFileAttributesExW
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4174b9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 8], 0
je 0x417590
cmp dword [ebp + 0xc], 0
jne 0x417588
cmp dword [ebp + 0x10], 0
je 0x417588
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x417571
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
push ecx
mov edx, dword [ebp - 0x14]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x14]
add eax, 4
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x417567
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 0x14]
add edx, 0x1c
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x20], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0x20], 0xffffffff
jne 0x417567
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x417567
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x417586
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
jmp 0x417590
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418b25
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x45cff0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x418bc3
push 0x44da5c
push 4
push eax
call fcn.0043746a
push eax
call fcn.00417c36
add esp, 0x10
push ebx
push edi
call fcn.00436ece
mov edi, dword [eax]
call fcn.00436ece
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00434866
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00436ece
cmp dword [eax], ebx
je 0x418bda
call fcn.00436ece
push dword [eax]
call fcn.00417ef7
pop ecx
jmp 0x418be1
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x418b6b
jmp 0x418c68
call fcn.00436ece
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x418c64
cmp dword [ebp - 0x11c], esi
jae 0x418c64
lea eax, [ebp - 0x118]
push eax
call dword [0x45b8f8]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.00435880
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x418c53
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x418c53
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x418c53
push ebx
push ebx
push esi
jmp 0x418c5c
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x418c66
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00434d81
leave
ret

Function at 0x4273bd
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 0x427404
call fcn.004205e2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x427404
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x427420
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00426f37
mov esi, eax
test edi, edi
je 0x42741e
test ebx, ebx
je 0x42741e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4