joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403e89
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x433510]
push esi
test eax, eax
jne 0x403eae
push fcn.00403e57
push 0x10
push 0x258
call fcn.00404cb0
mov dword [0x433510], eax
push dword [esp + 0xc]
push eax
call fcn.00404bd1
mov esi, eax
test esi, esi
je 0x403faf
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x403ed0
mov edi, 0x42f4b4
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x403ee0
xor eax, eax
cmp word [ebx], ax
jne 0x403ee5
mov ebx, 0x42f484
push edi
call fcn.00404d4c
push ebx
mov dword [esp + 0x24], eax
call fcn.00404d4c
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x4330e4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x403f96
push edi
push eax
call fcn.00404d2a
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x403f46
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x403f4a
push 0x42e95c
push edi
call fcn.00404cf9
pop ecx
pop ecx
jmp 0x403f4a
mov edi, dword [esp + 0x18]
push ebx
push edi
call fcn.00404cf9
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x403f6e
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x403f84
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x403f82
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x4330e4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x403fad
cmp dword [esp + 0x14], 0xffffffff
je 0x403fa1
mov esi, dword [esp + 0x14]
push esi
push dword [0x433510]
call fcn.00404c76
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x403ffa
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x404142
xor ecx, ecx
cmp word [eax], cx
je 0x404142
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0040ab88
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call fcn.00404d4c
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x404053
cmp eax, 3
jne 0x40408d
cmp word [esp + 0xa], 0x3a
jne 0x40408d
cmp eax, 2
jne 0x404071
lea eax, [esp + 8]
push 0x42e95c
push eax
call fcn.00404cf9
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x404142
push 0xfffffffffffffffe
pop edi
jmp 0x404142
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x4040a2
cmp ax, bx
jne 0x4040ac
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x404095
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x4040eb
test byte [esp + 0x21c], 0x10
je 0x4040d2
push 0xfffffffffffffffe
pop edi
jmp 0x4040e2
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x404140
cmp word [esp + 0x10], bp
jne 0x4040f9
cmp word [esp + 0x12], bp
je 0x404118
cmp word [esp + 0x10], bx
jne 0x404107
cmp word [esp + 0x12], bx
je 0x404118
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x404140
cmp word [esp + 0x12], ax
jne 0x404140
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x40412d
test al, 0x10
je 0x404140
jmp 0x40413d
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x404140
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x408743
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x4087d9
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4087d6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x4087d6
lea eax, [esi - 1]
push eax
push dword [0x433548]
call fcn.00404c4e
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x4087d8
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x4087c6
mov edx, 0xfa01
cmp word [ecx], dx
je 0x4087d1
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x4087b6
jmp 0x4087d6
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x40887f
push eax
call esi
test al, al
jns 0x40887f
push 0x11
call esi
test al, al
js 0x40887f
push 0x10
call esi
test al, al
js 0x40887f
push 0x12
call esi
test al, al
js 0x40887f
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x40887f
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0040ff56
add esp, 0xc
test eax, eax
je 0x408853
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0040ff56
add esp, 0xc
test eax, eax
jne 0x40886a
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x4088c0
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0040ff16
pop ecx
pop ecx
test eax, eax
je 0x4088c0
test ebp, ebp
je 0x4088a3
push 0x11
call esi
test al, al
js 0x40889b
push 0x10
call esi
test al, al
js 0x40889b
push 0x12
call esi
test al, al
jns 0x4088a3
push 1
push ebp
call fcn.004089e4
test ebx, ebx
je 0x4088b7
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x4088c0
test edi, edi
je 0x4088c0
mov eax, dword [edi + 8]
jmp 0x4088c2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4098bd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004115f0
mov eax, dword [0x4329a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040f424
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4098ff
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x409a5b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00411540
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x433908]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004110c2
mov ecx, dword [esi*4 + 0x433908]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x409a54
cmp eax, dword [ecx + edi + 0x24]
jne 0x409a54
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409a54
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004110c2
add esp, 0x14
test edx, edx
jl 0x409a54
jg 0x4099ca
test eax, eax
jb 0x409a54
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x409a54
jl 0x4099e4
cmp dword [ebp - 0x1008], eax
ja 0x409a54
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x409a02
test ebx, ebx
je 0x409a3b
cmp ecx, edi
jae 0x409a3b
mov al, byte [ecx]
cmp al, 0xd
jne 0x409a1c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x409a28
cmp byte [ecx + 1], 0xa
jne 0x409a28
inc ecx
jmp 0x409a28
movzx eax, al
movsx eax, byte [eax + 0x4329b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x409a02
cmp edx, ebx
jne 0x409a02
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x409a59
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040f59c
leave
ret

Function at 0x409ec0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x409ef8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409ef3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.0040f6a0
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x40c1e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425210
push 0x425208
push str.FlsAlloc
push 0x1f
call fcn.0040c5fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c217
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f778]
call esi
jmp 0x40c21d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40c261
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425220
push 0x425218
push str.FlsGetValue
push 0x21
call fcn.0040c5fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c298
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f778]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40c2a0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x425228
push 0x425220
push str.FlsSetValue
push 0x22
call fcn.0040c5fa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40c2da
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42f778]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410bc3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x433908]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410c03
cmp byte [ebx], 0xa
jne 0x410c03
or byte [edi + eax + 0x28], 4
jmp 0x410c08
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x410d07
mov dl, byte [eax]
cmp dl, 0x1a
je 0x410cea
inc eax
cmp dl, 0xd
je 0x410c34
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x410c5a
cmp eax, ecx
jae 0x410c68
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x410c1c
jmp 0x410d07
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410ce5
cmp dword [ebp - 0x10], 0
je 0x410ce5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x433908]
test byte [eax + edi + 0x28], 0x48
je 0x410cbf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x410caa
mov byte [esi], dl
jmp 0x410cbb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x433908]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x410d07
cmp byte [ebp - 1], 0xa
jne 0x410cce
cmp esi, ebx
jne 0x410cce
mov byte [esi], 0xa
jmp 0x410d06
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411064
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x410d07
mov byte [esi], 0xd
jmp 0x410d06
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x433908]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x410d04
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x410d07
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x410d10
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x433908]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x410d56
cmp word [ebx], dx
jne 0x410d56
or byte [eax + edi + 0x28], 4
jmp 0x410d5b
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x410ebe
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x410e9e
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x410d9c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x410dd2
cmp eax, edx
jae 0x410de0
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x410d77
jmp 0x410ebe
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410e99
cmp dword [ebp - 0x18], 0
je 0x410e99
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x433908]
test byte [eax + edi + 0x28], 0x48
je 0x410e6f
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x410e33
mov word [esi], cx
jmp 0x410e6a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x433908]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x433908]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x433908]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x410ebe
pop eax
cmp word [ebp - 4], ax
jne 0x410e7f
cmp esi, ebx
jne 0x410e7f
mov word [esi], ax
jmp 0x410ebb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411064
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x410ebe
push 0xd
pop eax
jmp 0x410e7a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x433908]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x410eb8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x410ebe
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4126d4
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4329a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040baa3
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040baa3
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x415ecf
cmp word [ecx], dx
je 0x415ecf
mov eax, dword [0x4271e4]
push edi
dec eax
push eax
push 0x4270d0
call fcn.00416048
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x415f42
cmp word [eax], dx
je 0x415f42
mov eax, dword [edi]
test eax, eax
je 0x415ef3
cmp word [eax], dx
je 0x415ef3
lea eax, [ebp - 0x10]
push eax
call fcn.004160a9
jmp 0x415efc
lea eax, [ebp - 0x10]
push eax
call fcn.00416397
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x415f6c
mov eax, dword [0x4270cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x426dc0
call fcn.00416048
add esp, 0xc
test al, al
je 0x415f6c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x415f37
cmp word [eax], di
je 0x415f37
lea eax, [ebp - 0x10]
push eax
call fcn.004160a9
pop ecx
jmp 0x415f6e
lea eax, [ebp - 0x10]
push eax
call fcn.00416397
jmp 0x415f34
mov eax, dword [edi]
test eax, eax
je 0x415f59
cmp word [eax], dx
je 0x415f59
lea eax, [ebp - 0x10]
push eax
call fcn.004164cb
pop ecx
jmp 0x415f6c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x416037
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004165bd
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x416037
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x416037
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x416037
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415fc4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040c43d
test ebx, ebx
je 0x416032
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040c43d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416037
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x416037
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041e33c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x416039
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f59c
leave
ret
Function at 0x4166c3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040baa3
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 0x416732
cmp esi, dword [ebp - 4]
je 0x41672d
cmp dword [ebp + 0xc], 0
je 0x41672d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41670a
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041678c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x416734
xor eax, eax
inc eax
jmp 0x416734
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x417e40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417e6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417e6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4242f0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42438d
push ebx
push esi
call fcn.00424390
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00412f85
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42433a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42438c
push edi
push eax
call fcn.0040b375
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42435a
call fcn.0040b33b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42438b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00412f85
add esp, 0x20
test eax, eax
jne 0x424379
push edi
call fcn.0040b33b
jmp 0x424381
push ebx
call fcn.0040b33b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x435885
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x43588b
mov eax, dword [esp + 0x30]
mov dword [0x433524], eax
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00401000
mov edx, dword [0x433524]
push edx
push edx
push 0xff
call fcn.00403c50
lea eax, [esp + 0x10]
push eax
call fcn.004045b0
mov dword [esp + 0x10], 0xff
mov dword [esp + 0x14], 0
lea eax, [esp + 4]
push eax
mov ebx, dword [esp + 0x30]
or ebx, 0x20019
push ebx
push 0
push dword [esp + 0xc]
push 0x80000002
call sub.ADVAPI32.dll_RegOpenKeyExW
mov ebx, eax
and ebx, ebx
jne 0x4359f7
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push eax
push dword [esp + 0x2c]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegEnumKeyExW
mov ebx, eax
and ebx, ebx
jne 0x4359ee
lea eax, [esp + 8]
push eax
mov ebx, dword [esp + 0x30]
or ebx, 0x20019
push ebx
push 0
push dword [esp + 0x18]
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov ebx, eax
and ebx, ebx
jne 0x4359dd
push dword [0x433524]
mov eax, str.DisplayName
push eax
push dword [esp + 0x10]
call fcn.00435a9b
lea eax, [esp + 0x1c]
push eax
call fcn.004045b0
push dword [0x433524]
mov eax, str.Publisher
push eax
push dword [esp + 0x10]
call fcn.00435a9b
lea eax, [esp + 0x20]
push eax
call fcn.004045b0
mov edx, dword [esp + 0x18]
xor ecx, ecx
call fcn.00401010
jne 0x4359d4
push dword [esp + 0x18]
call fcn.00435468
and eax, eax
je 0x4359d4
mov edx, dword [esp + 0x18]
push dword [0x433524]
push edx
call fcn.00404610
pop eax
add eax, dword [0x432798]
jmp 0x435a07
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCloseKey
inc dword [esp + 0x14]
mov dword [esp + 0x10], 0xff
jmp 0x435906
push dword [esp + 4]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [0x433524]
add eax, dword [0x432798]
mov word [eax], 0
push dword [esp + 0xc]
call fcn.00404660
push dword [esp + 0x1c]
call fcn.00404660
push dword [esp]
call fcn.00404660
push dword [esp + 0x18]
call fcn.00404660
add esp, 0x20
pop ebx
ret 8

Function at 0x435a9b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x433524], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp]
call fcn.00401000
mov edx, dword [0x433524]
push edx
push edx
push 0x400
call fcn.00403c50
lea eax, [esp + 8]
push eax
call fcn.004045b0
mov dword [esp + 8], 0x400
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push eax
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
and ebx, ebx
jne 0x435b21
mov edx, dword [0x433524]
push edx
push edx
mov ebx, dword [esp + 0x10]
dec ebx
push ebx
push dword [esp + 0x10]
call fcn.00403bb0
pop eax
add eax, dword [0x432798]
jmp 0x435b4b
mov edx, 0x432028
push dword [0x433524]
push edx
call fcn.00404610
pop eax
add eax, dword [0x432798]
jmp 0x435b4b
push dword [esp + 4]
call fcn.00404660
push dword [esp]
call fcn.00404660
add esp, 0xc
pop ebx
ret 8