joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4142c0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4142cf
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x4735d4]
test eax, eax
je 0x4142dd
call fcn.00414260
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x4143df
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x47a6e4]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x47a6e4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x47a6e4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x47a6e4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x47a6e4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x47a6e4]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x47a6e4]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x47a6e4]
xor eax, ecx
inc esi
dec edi
jne 0x4142f7
pop edi
test edx, edx
je 0x414401
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x47a6e4]
xor eax, ecx
inc esi
dec edx
jne 0x4143e3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x421c01
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 0x421c48
call fcn.0041abfb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x421c48
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x421c64
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042177b
mov esi, eax
test edi, edi
je 0x421c62
test ebx, ebx
je 0x421c62
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x422c7e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45b8d9
call fcn.00445a9b
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x422ca3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x422ce9
lea ecx, [ebp - 0x10]
call fcn.00401440
mov ecx, dword [esi + 0x50]
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.004199fc
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401070
mov eax, esi
call fcn.00445b73
ret 8
Function at 0x42676d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x47613c]
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 0x42680b
push 0x463214
push 4
push eax
call fcn.004479a0
push eax
call fcn.0040ea50
add esp, 0x10
push ebx
push edi
call fcn.00445f9e
mov edi, dword [eax]
call fcn.00445f9e
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.00441705
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00445f9e
cmp dword [eax], ebx
je 0x426822
call fcn.00445f9e
push dword [eax]
call fcn.00419bed
pop ecx
jmp 0x426829
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4267b3
jmp 0x4268b0
call fcn.00445f9e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
je 0x4268ac
cmp dword [ebp - 0x11c], esi
jae 0x4268ac
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x15c]
push ebx
push eax
mov dword [ebp - 0x160], 0x40
call fcn.004415f0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x42689b
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x42689b
lea ecx, [ebp - 0x160]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x42689b
push ebx
push ebx
push esi
jmp 0x4268a4
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x4268ae
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00441051
leave
ret

Function at 0x4286b3
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.0041abfb
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4286ec
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.00428304
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 0x42874a
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x42876e
cmp dword [edi + 0x54], 0
jne 0x42876e
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041abfb
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.0042870b
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 0x428c9c
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 0x428ce4
call fcn.0041abfb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x428ce4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x428d27
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 0x428d10
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 0x428d10
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x428d24
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 0x42aa1a
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x42aa45
call fcn.0041abfb
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x42aa68
push eax
push dword [esi + 4]
call fcn.0042a9a0
push esi
push eax
mov ecx, 0x47c624
call fcn.0042a654
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x42cae0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x42cb12
push dword [ebp + 8]
call edi
push eax
call fcn.0042d2b2
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x42cb3d
test byte [ebp - 4], 1
je 0x42cb3d
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42cb3d
push dword [ebp + 8]
call edi
push eax
call fcn.0042d2b2
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42cbf7
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0042ca42
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x42cb73
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0042ca42
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x42cb89
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.0042ca42
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42cbb6
push dword [ebp + 8]
call edi
push eax
call fcn.0042d2b2
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42cbe2
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0042d2b2
push ebx
call esi
test eax, eax
jne 0x42cbf4
push dword [ebp + 8]
call edi
push eax
call fcn.0042d2b2
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x42cc1f
test byte [ebp - 4], 1
jne 0x42cc1f
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x42cc1f
push dword [ebp + 8]
call edi
push eax
call fcn.0042d2b2
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x441051
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47613c]
jne 0x44105b
repz ret
jmp fcn.0044cd0c
Function at 0x4412bb
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 0x4412ec
call fcn.00445fb1
mov dword [eax], esi
call fcn.00445f9e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00449f8f
add esp, 0x14
push 0x16
pop eax
jmp 0x441341
test dword [ebp + 0xc], 0xfffffff9
jne 0x4412c8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x441319
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00445fc4
pop ecx
call fcn.00445f9e
mov eax, dword [eax]
jmp 0x441341
test al, 0x10
jne 0x44133f
test al, 1
je 0x44133f
test byte [ebp + 0xc], 2
je 0x44133f
call fcn.00445fb1
mov dword [eax], 5
call fcn.00445f9e
mov dword [eax], 0xd
jmp 0x441310
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4563d3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0044c652
and dword [ebp - 4], 0
cmp dword [0x47d404], 0
mov ebx, eax
jne 0x456484
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x456535
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x466ae0
push edi
call esi
test eax, eax
je 0x456535
push eax
call fcn.0044c5e0
mov dword [esp], 0x466ad0
push edi
mov dword [0x47d404], eax
call esi
push eax
call fcn.0044c5e0
mov dword [esp], 0x466abc
push edi
mov dword [0x47d408], eax
call esi
push eax
call fcn.0044c5e0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47d40c], eax
call esi
push eax
call fcn.0044c5e0
pop ecx
mov dword [0x47d414], eax
test eax, eax
je 0x456484
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044c5e0
pop ecx
mov dword [0x47d410], eax
mov eax, dword [0x47d410]
cmp eax, ebx
je 0x4564dc
cmp dword [0x47d414], ebx
je 0x4564dc
push eax
call fcn.0044c65b
push dword [0x47d414]
mov esi, eax
call fcn.0044c65b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4564dc
test edi, edi
je 0x4564dc
call esi
test eax, eax
je 0x4564d3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4564d3
test byte [ebp - 0xc], 1
jne 0x4564dc
or dword [ebp + 0x10], 0x200000
jmp 0x456515
mov eax, dword [0x47d408]
cmp eax, ebx
je 0x456515
push eax
call fcn.0044c65b
pop ecx
test eax, eax
je 0x456515
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x456515
mov eax, dword [0x47d40c]
cmp eax, ebx
je 0x456515
push eax
call fcn.0044c65b
pop ecx
test eax, eax
je 0x456515
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47d404]
call fcn.0044c65b
pop ecx
test eax, eax
je 0x456535
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x456537
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403e59
pop dword [ebp - 0x18]
mov eax, 0x4915c0b7
add eax, 0xb72a7da2
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x2e443eaa
sub dword [ebp - 0x28], 0xdff1f95f
mov dword [ebp - 0x24], 0x2ae34657
add dword [ebp - 0x24], 0x75005ee
mov dword [ebp - 0x20], 0x2518bdb8
add dword [ebp - 0x20], 0x27338676
mov dword [ebp - 0x1c], 0x3d1c3796
sub dword [ebp - 0x1c], 0x3d1c3796
lea eax, [ebp - 0x28]
push eax
mov eax, 0x6ce44d6e
add eax, 0x935c331e
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xed22aa4d
add dword [ebp - 0x28], 0x874fbf09
mov dword [ebp - 0x24], 0xf35440f8
sub dword [ebp - 0x24], 0xb1e7df83
mov dword [ebp - 0x20], 0xeb0dea23
add dword [ebp - 0x20], 0x78618249
mov dword [ebp - 0x1c], 0x343e090b
add dword [ebp - 0x1c], 0xcbc1f6f5
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xf29a131d
add eax, 0xda66db7
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x39f59
push 0
call eax
mov ecx, 0x54d9
mov ebx, eax
mov esi, 0x411000
add esi, dword [ebp - 0x18]
mov edi, 0x682e6682
sub edi, 0x3b8b1787
xor dword [ebp - 0x10], ebx
mov edx, dword [esi]
sub dword [ebp - 0xc], 0x29f613c4
sub edx, edi
xor dword [ebp - 8], eax
mov dword [ebx], edx
sub dword [ebp - 0xc], edx
add ebx, 0x41eaa78
add ebx, 0xfbe1558c
add esi, 0x5d1f5296
sub esi, 0x5d1f5292
loop 0x403f6f
add eax, 0xc09121df
add eax, 0x3f702458
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100024e3
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x454
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x450], eax
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [esp + 0x464]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10046d40]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x46c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
push 0x400
andps xmm0, xmmword [0x10046d60]
divsd xmm0, qword [0x10046d50]
addsd xmm0, qword [0x10046d48]
cvttsd2si eax, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x470], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x35]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x474]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [esp + 0x5c]
push 0x10044eac
push eax
call fcn.100233a0
test eax, eax
mov ecx, 0x10044eb4
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.10021ec4
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x458]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1001df6b
add esp, 0x454
ret 0x14
Function at 0x10008eeb
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x454
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x450], eax
push esi
mov esi, dword [esp + 0x45c]
push edi
mov edi, dword [esp + 0x464]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.GDI32.dll_SaveDC]
push 2
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_SetGraphicsMode]
push 1
push 0
push esi
call dword [sym.imp.GDI32.dll_ModifyWorldTransform]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
push 0x58
push esi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
call esi
push 0x5a
push dword [esp + 0x1c]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x1c], xmm0
call esi
movss xmm0, dword [esp + 0x14]
mulss xmm0, dword [0x10046d40]
push 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0xc], eax
imul eax, dword [esp + 0x46c], 0xa
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
divss xmm0, dword [0x10046d58]
cvttss2si eax, xmm0
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_DPtoLP]
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
push 0x400
andps xmm0, xmmword [0x10046d60]
divsd xmm0, qword [0x10046d50]
addsd xmm0, qword [0x10046d48]
cvttsd2si eax, xmm0
neg eax
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x470], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
setne byte [esp + 0x35]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x34], al
mov dword [esp + 0x36], eax
mov word [esp + 0x3a], ax
mov eax, dword [esp + 0x474]
neg eax
sbb eax, eax
and eax, 0x2bc
mov dword [esp + 0x30], eax
lea eax, [esp + 0x5c]
push eax
push 0x1002
push 0x800
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
push 5
lea eax, [esp + 0x5c]
push 0x10046ddc
push eax
call fcn.100233a0
test eax, eax
mov ecx, 0x10046de4
lea eax, [esp + 0x44]
cmovne ecx, edi
push ecx
push 0x20
push eax
call fcn.10021ec4
add esp, 0x18
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esp + 0x458]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.1001df6b
add esp, 0x454
ret 0x14
Function at 0x1000cf1a
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [edi + 4]
or eax, 0x2001f
push eax
push ebx
push dword [edi]
call fcn.10021ec4
mov esi, eax
test esi, esi
jne 0x1000cfc9
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000cfa4
lea eax, [esp + 0x28]
push eax
call fcn.1000cf1a
mov esi, eax
test esi, esi
jne 0x1000cfc9
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x30]
mov dword [esp + 0x30], 0x100
call ebp
lea ecx, [esp + 0x14]
test eax, eax
je 0x1000cf7f
call fcn.10003fa0
push ebx
mov ecx, edi
call fcn.1000c8c8
mov esi, eax
lea ecx, [esp + 0x14]
call fcn.10003fa0
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001df6b
add esp, 0x11c
ret 4
Function at 0x1000e480
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
mov eax, 0x114c
call fcn.1001e1d0
mov eax, dword [0x1006a1fc]
xor eax, esp
mov dword [esp + 0x1148], eax
push ebx
mov ebx, dword [esp + 0x1154]
lea eax, [esp + 0x14c]
push ebp
push esi
push edi
mov ebp, 0x800
xor esi, esi
push ebp
push esi
push eax
mov dword [esp + 0x1c], esi
call fcn.10020dd0
push ebp
lea eax, [esp + 0x968]
push esi
push eax
call fcn.10020dd0
push str.SOFTWAREMozillaMozilla_Firefox
lea eax, [esp + 0x174]
mov dword [esp + 0x30], ebp
push ebp
push eax
call fcn.10021ec4
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0x34]
add esp, 0x24
push eax
lea eax, [esp + 0x15c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x1000e532
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x95c]
push eax
push esi
push esi
push 0x1004a76c
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
test eax, eax
je 0x1000e54d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x1158]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001df6b
add esp, 0x114c
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
lea eax, [esp + 0x958]
push eax
lea eax, [esp + 0x15c]
push str.SOFTWAREMozillaMozilla_Firefox_sMain
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x15c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
jne 0x1000e532
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x800
push eax
push ebx
xor ebp, ebp
push ebp
push ebp
push 0x1004a7a8
push dword [esp + 0x24]
call edi
push dword [esp + 0x10]
test eax, eax
je 0x1000e5b7
call esi
jmp 0x1000e532
call esi
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000e5be
sub ecx, edx
cmp byte [ecx + ebx - 1], 0x5c
je 0x1000e5e2
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000e5d1
mov ax, word [0x1004a7bc]
mov word [edi], ax
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000e5e5
mov esi, str.extensions
lea eax, [esp + 0x18]
push eax
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x1000e619
push ebp
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x1000e62b
jmp 0x1000e532
push eax
call dword [sym.imp.kernel32.dll_FindClose]
test byte [esp + 0x18], 0x10
je 0x1000e532
xor eax, eax
inc eax
jmp 0x1000e534