joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b670
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6e9f84]
xor edx, edx
cmp eax, edx
jne 0x49b696
xor eax, eax
mov byte [eax + 0x6e9e84], al
inc eax
cmp eax, 0x100
jl 0x49b67e
mov dword [0x6e9f84], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6e9e84
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49b727
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49b6fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49b6c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49b7a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49b7f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49b7da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a2170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eec1e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a2a90
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5afa94
call fcn.004df581
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a2203
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004df581
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a21fc
push 0
mov ecx, eax
call fcn.004992a0
mov dword [esi + 0xc], eax
jmp 0x4a2205
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a2205
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4d5f60
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4efd20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004caea2
mov eax, dword [0x67ab50]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004cadd4
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004d6a50
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4d6007
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d5ffe
cmp al, 0xff
je 0x4d5ffe
dec al
mov byte [ecx], al
jmp 0x4d6007
push ecx
call fcn.004df5aa
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4d6038
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4d602f
cmp al, 0xff
je 0x4d602f
dec al
mov byte [ecx], al
jmp 0x4d6038
push ecx
call fcn.004df5aa
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4e1c0e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4e1c46
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dfc9b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dfc73
jmp 0x4e1c52
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e32ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e3341
call fcn.004e9079
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e3341
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e3338
xor eax, eax
jmp 0x4e3349
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e334f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e95a9
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 0x4e95d7
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e95f5
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e950f
jmp 0x4e95f5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e95f5
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e950f
test edi, edi
mov eax, edi
jne 0x4e95df
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1001f212
Capabilities:
Encode data using xor

Disassembly:
clc
mov dword [esp + 8], esi
cmp edi, ebx
lea esp, [esp + 0x40]
jbe 0x100314a6
pushal
mov byte [esp], 0x9c
pushfd
lea esp, [esp + 0x24]
ja 0x1002379f
push 0x3c09af49
sub ebx, edi
scasd eax, dword es:[edi]
or dword [ecx + ebp], edi
sti
mov di, bx
sub edi, esi
adc al, cl
xor al, 0x1f
lea esp, [esp + 4]
add ebx, esp
sal edi, 0x17
push 0x62587e02
sbb di, 0xedd1
test bx, 0xad09
mov edi, ebx
seto al
sub al, cl
rcl al, cl
setae al
mov al, 0x2e
clc
test dh, cl
pushfd
mov dword [esp + 4], eax
repne scasb al, byte es:[edi]
add al, 0xf2
scasb al, byte es:[edi]
call fcn.100338f0
mov ecx, 0x361d8b6b
fcmovnb st(0), st(4)
loope 0x1001f235
jmp 0x1001f270
push esi
push ecx
lea esp, [esp + 8]
ja 0x1002379f
push 0x5185b85b
xor al, dl
sub ebx, edi
clc
dec di
and di, si
add esp, 4
add ebx, esp
shrd di, bp, cl
neg al
mov edi, ebx
stc
mov al, 0x2e
cmc
push 0xfd7d24b2
repne scasb al, byte es:[edi]
pushal
lea esp, [esp + 0x24]
jne 0x10031984
movsx ax, bl

Function at 0x10023b5a
Capabilities:
Authenticate hmac

Disassembly:
lea eax, [edx - 0x778711ac]
lea eax, [edi*4 + 0x6fd00fe1]
lahf
lea eax, sym.imp.KERNEL32.dll_VirtualFree_1
call fcn.1003270e
invalid
Function at 0x10031593
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x100231c0
mov dword [esp], eax
push 0xfb61598f
mov byte [esp], ah
not al
pushal
lodsb al, byte [esi]
call fcn.10032507
clc
jmp 0x1001f4d9
dec bl
jmp 0x10022a91
xchg dword [esp + 8], esi
movzx si, cl
shld si, si, cl
mov esi, edi
call fcn.10027481
jmp 0x100334b0
inc ecx
mov bl, 0xcd
jnp 0x10027507
dec bl
inc ecx
pushfd
shr bl, 2
call fcn.100234c7
inc bl
setno bl
inc bl
inc ecx
jmp 0x1001f03f
lea esp, [esp + 0x20]
jae 0x10022a92
cmp cl, 0x80
test bl, 0x3d
pushfd
cmp eax, 0x7f
jmp 0x10031523
jae 0x1001f1df
cmc
stc
cmp ah, dh
stc
cmp ah, 5
pushal
jmp 0x1002865a
mov byte [esp], 0x69
pushal
lea esp, [esp + 0x24]
ja 0x10022a9d
call fcn.100285cf
push esp
push 0x72702065
outsd dx, dword [esi]
arpl word [ebp + 0x64], sp
jne 0x100315b5
and byte gs:[ebp + 0x6e], ah
je 0x100315bb
jns 0x1003156b
jo 0x100315bc
imul ebp, dword [esi + 0x74], 0x20632520
arpl word [edi + 0x75], bp
insb byte es:[edi], dx
and byte fs:[esi + 0x6f], ch
je 0x1003157e
bound esp, qword [ebp + 0x20]
insb byte es:[edi], dx
outsd dx, dword [esi]
arpl word [ecx + 0x74], sp
and byte fs:[ecx + 0x6e], ch
and byte [eax + ebp*2 + 0x65], dh
and byte [ecx + edi*2 + 0x6e], ah
popal
insd dword es:[edi], dx
imul esp, dword [ebx + 0x20], 0x6b6e696c
and byte [ecx + ebp*2 + 0x62], ch
jb 0x100315e3
imul esp, dword [edx + 0x72], 0x20797261
and eax, 0x73
jb 0x100315fd
and byte [0x73], ah
insb byte es:[edi], dx
jae 0x10031601
jb 0x100315fb
outsb dx, byte gs:[esi]
push edi
add byte [ebp + 0xf282464], cl
lea esp, [esp + 0x28]
je 0x10033207
dec si
xadd dx, si
ror si, 0xb
mov esi, dword [eax + 0x3c]
btr dx, 1
shld dx, di, 6
bsf edx, ebx
add esi, eax
lea edx, [esi - 0x56c9e4c]
xchg esi, eax
mov ah, 0x61
xchg ebx, eax
cli
stc
test ebp, 0xb07f86d8
pushfd
mov edx, dword [esi + 0x78]
stc
bt di, 1
cmp ecx, ebp
test edx, edx
call fcn.10032d4e
mov dword [esp + 0x28], eax
pushfd
push dword [esp + 0x2c]
ret 0x30
stc
jne 0x1003166a
insb byte es:[edi], dx
call 0x2d37b0bb
xor al, 0x1d
pop ecx
or byte [ebx + 0x7f133199], ah
loope 0x1003164b
add al, 0x65
out 0x4a, eax
stosb byte es:[edi], al
ret 0xf5f6
pushal
cmp eax, 0x875ceabf
jg 0x100316c6
mov dl, 0x3c
das
retf
or al, 0x39
call 0xc93c2b0c
fadd qword [eax + edi*8 - 0x47c00245]
mov al, 0x35
ja 0x10031697
mov eax, 0x287735b0
jo 0x1003165d
out dx, al
div ah
jbe 0x10031685
cld
ficom word [edi - 0x75]
push 3
xchg esi, eax
push edi
scasd eax, dword es:[edi]
push ecx
cmp ebx, 0x51
xlatb
dec byte [edi]
mov edx, 0xe9601ce7
mov dh, 0x51
invalid
push edx
sbb bl, ch
aam 0xf5
mov ch, 0xa7
invalid
call fcn.100286f6
cmc
stc
cmc
test ebp, 0xb0d9a1c9
cmp eax, 0x7d00
jmp 0x10028902

Function at 0x100324a7
Capabilities:
Authenticate hmac

Disassembly:
cmp eax, dword [ebp - 0x10]
pushal
lea esp, [esp + 0x24]
mov byte [esp], dh
lea esp, [esp + 0xc]
jb 0x10033213
push edi
stc
jmp 0x10027750
Function at 0x4058f0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x90], 4
push 0
push str.Agent_ld
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp - 0x94]
and ecx, 4
jne 0x405956
push 0
push 0
push 0
push 4
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x8c], eax
jmp 0x405971
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
je 0x4059d4
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00405600
add esp, 0xc
mov dword [ebp - 0x90], eax
push 0x64
push 0
lea ecx, [ebp - 0x100]
push ecx
call fcn.00413bb0
add esp, 0xc
mov edx, dword [ebp - 0x90]
push edx
push str.InternetGetData_res:__d
lea eax, [ebp - 0x100]
push eax
call fcn.0041419b
add esp, 0xc
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4059db
mov eax, 4
jmp 0x4059e1
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret

Function at 0x405a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x13c], ecx
mov eax, dword [ebp - 0x13c]
mov dword [eax], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x405fa0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x429bb4
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x432d28], eax
cmp dword [0x432d28], 0
jne 0x405b4c
push 0x104
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.winhlp32.exe
lea eax, [ebp - 0x138]
push eax
call fcn.004165e0
add esp, 8
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x13c]
mov dword [edx], eax
mov eax, dword [ebp - 0x13c]
cmp dword [eax], 0
je 0x405b4c
push 0x6a
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [0x432d28], eax
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret
Function at 0x4090e0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push str.msnmsgr.exe
call fcn.00408380
add esp, 4
test eax, eax
je 0x4090f8
jmp 0x40911f
push 0x432d30
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40911f
push 0
push 0
push 0
push 0x432d30
push 0x42a9e8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x409270
Capabilities:
Create process on windows
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x634
mov eax, dword [0x431474]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov word [ebp - 0x630], 0
push 0x206
push 0
lea eax, [ebp - 0x62e]
push eax
call fcn.00413bb0
add esp, 0xc
mov word [ebp - 0x420], 0
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00413bb0
add esp, 0xc
lea edx, [ebp - 0x630]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
add ecx, 0xe0
call fcn.00409da0
push eax
lea eax, [ebp - 0x630]
push eax
push str._s_s
push 0x104
lea ecx, [ebp - 0x420]
push ecx
call fcn.004047f0
add esp, 0x14
mov word [ebp - 0x218], 0
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00413bb0
add esp, 0xc
mov dword [ebp - 4], 0
push 1
call fcn.00409130
add esp, 4
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x8c
call fcn.00409da0
push eax
call fcn.004053e0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409362
jmp 0x409419
mov ecx, dword [ebp + 8]
add ecx, 0x54
call fcn.00409da0
push eax
call fcn.00416b2a
add esp, 4
mov dword [ebp - 0x428], eax
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x409419
mov dword [ebp - 0x634], 0
push 0
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x634], eax
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x634]
cmp edx, dword [ebp - 4]
jne 0x409419
push 2
call fcn.00409130
add esp, 4
push 5
push 0
mov ecx, dword [ebp + 8]
add ecx, 0xc4
call fcn.00409da0
push eax
lea eax, [ebp - 0x420]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [0x432a10], 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00413b95
mov esp, ebp
pop ebp
ret
Function at 0x420b8e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004185bb
xor ebx, ebx
cmp dword [0x4345b0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x420c63
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x420bce
xor eax, eax
jmp 0x420d27
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x420bc7
push eax
call fcn.00418558
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4345b0], eax
call esi
push eax
call fcn.00418558
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4345b4], eax
call esi
push eax
call fcn.00418558
mov dword [0x4345b8], eax
lea eax, [ebp - 8]
push eax
call fcn.00419503
test eax, eax
pop ecx
pop ecx
je 0x420c31
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413c34
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x420c63
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00418558
cmp eax, ebx
pop ecx
mov dword [0x4345c0], eax
je 0x420c63
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00418558
pop ecx
mov dword [0x4345bc], eax
mov eax, dword [0x4345bc]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x420cdc
cmp dword [0x4345c0], esi
je 0x420cdc
push eax
call fcn.004185c4
pop ecx
call eax
cmp eax, ebx
je 0x420ca9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4345c0]
call fcn.004185c4
pop ecx
call eax
test eax, eax
je 0x420ca9
test byte [ebp - 0x18], 1
jne 0x420cdc
lea eax, [ebp - 0xc]
push eax
call fcn.0041953a
test eax, eax
pop ecx
je 0x420cc4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00413c34
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x420cd3
or dword [ebp + 0x10], 0x200000
jmp 0x420d0d
or dword [ebp + 0x10], 0x40000
jmp 0x420d0d
mov eax, dword [0x4345b4]
cmp eax, esi
je 0x420d0d
push eax
call fcn.004185c4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x420d0d
mov eax, dword [0x4345b8]
cmp eax, esi
je 0x420d0d
push dword [ebp - 4]
push eax
call fcn.004185c4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4345b0]
call fcn.004185c4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4074bc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x407522
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00405224
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403968
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40750c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407529
lea eax, [ebp - 0x10]
call fcn.00404fb4
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405474
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a8c1
test al, 0x10
jne 0x40a8c5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40aa04
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405474
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
pop ebx
ret

Function at 0x40aa18
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00405474
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40aa3a
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40e008
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40e041
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004050a4
jmp 0x40e04a
mov eax, ebx
mov edx, esi
call fcn.00405008
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e054
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x40e075
mov al, byte [esp]
jmp 0x40e077
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f0a4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f17a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040504c
lea eax, [ebp - 8]
call fcn.004054c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405474
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f164
mov eax, ebx
call fcn.00402bb8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f15d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00405474
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f147
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f18c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f147
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f164
mov eax, dword [ebp - 0x10]
call fcn.00402be8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f181
lea eax, [ebp - 8]
call fcn.00404fb4
ret

Function at 0x40f8f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40f958
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00405224
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040a424
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f95f
lea eax, [ebp - 0xc]
call fcn.00404fb4
ret

Function at 0x410158
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x58f848]
cmp dword [eax], 0
je 0x41018e
push 0xa
push 0x4101e4
mov eax, dword [0x58f848]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_FindResourceA
push eax
mov eax, dword [0x58f848]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
jmp 0x4101da
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x58fe68]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4101da
mov ebx, dword [esp + 4]
push 0xa
push 0x4101e4
mov esi, dword [ebx + 4]
push esi
call sub.KERNEL32.DLL_FindResourceA
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4101da
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x4101a5
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret