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

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push dword [esp + 0x24]
call fcn.00436830
mov edx, dword [ebp + 0xc]
mov ebx, eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x14], ebx
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x639080]
mov esi, eax
add esp, 8
test esi, esi
je 0x469792
lea ecx, [esi + 0xc]
mov dword [esi], ebp
mov dword [esi + 4], ecx
mov eax, dword [ebp + 0xc]
add eax, ecx
mov dword [esi + 8], eax
push edi
lea edi, [ebp + 4]
cmp ebx, dword [ebp + 0x10]
jbe 0x469692
mov eax, dword [ebp]
push ecx
call eax
mov eax, dword [esp + 0x28]
push ebx
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
mov eax, dword [esi + 8]
add eax, dword [ebp + 0xc]
push dword [esi + 4]
mov dword [esp + 0x38], eax
push eax
mov eax, dword [ebp + 8]
call eax
mov eax, dword [ebp + 0x14]
add esp, 0x18
mov dword [esp + 0x14], eax
push dword [esi + 4]
mov eax, dword [ebp]
call eax
push dword [esi + 8]
mov eax, dword [ebp]
call eax
mov eax, dword [esp + 0x1c]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x469703
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0x18], eax
nop dword [eax]
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x13], al
lea eax, [esp + 0x13]
push 1
push eax
push dword [esi + 4]
mov eax, dword [edi]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x1f], al
lea eax, [esp + 0x1f]
push 1
push eax
push dword [esi + 8]
mov eax, dword [edi]
call eax
add esp, 0x18
sub ebx, 1
jne 0x4696c0
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
cmp ebx, dword [ebp + 0x10]
jae 0x469735
nop dword [eax + eax]
mov eax, dword [edi]
push 1
push 0x62ade5
push dword [esi + 4]
call eax
mov eax, dword [edi]
push 1
push 0x62ade6
push dword [esi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [ebp + 0x10]
jb 0x469710
push dword [esp + 0x30]
call fcn.00436830
mov ecx, dword [esi]
push eax
push dword [esp + 0x34]
push dword [esi + 4]
mov eax, dword [ecx + 4]
call eax
mov edi, dword [esp + 0x44]
add esp, 0x10
mov ebx, dword [esi]
test edi, edi
jne 0x469760
mov edi, dword [ebx + 0xc]
add edi, dword [esi + 8]
push dword [esi + 4]
mov eax, dword [ebx + 8]
push edi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push edi
push dword [esi + 8]
call eax
push dword [esi + 8]
mov eax, dword [ebx + 8]
push edi
call eax
push esi
call dword [0x639084]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0xc
ret
Function at 0x477f72
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0046c410
mov eax, dword [0x639440]
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.0048872c
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x477fb4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x478110
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0046c480
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 + 0x65d388]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004807a1
mov ecx, dword [esi*4 + 0x65d388]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x478109
cmp eax, dword [edi + ecx + 0x24]
jne 0x478109
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x478109
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004807a1
add esp, 0x14
test edx, edx
jl 0x478109
jg 0x47807f
test eax, eax
jb 0x478109
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x478109
jl 0x478099
cmp dword [ebp - 0x1008], eax
ja 0x478109
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4780b7
test ebx, ebx
je 0x4780f0
cmp ecx, edi
jae 0x4780f0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4780d1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4780dd
cmp byte [ecx + 1], 0xa
jne 0x4780dd
inc ecx
jmp 0x4780dd
movzx eax, al
movsx eax, byte [eax + 0x639620]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4780b7
cmp edx, ebx
jne 0x4780b7
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x47810e
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0046c2a8
leave
ret
Function at 0x480138
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x639440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x62dd10
push esi
call fcn.0048adb0
pop ecx
pop ecx
test eax, eax
jne 0x480166
xor al, al
jmp 0x4801e3
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0047fe6f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4801a0
push dword [ebp - 0x210]
call fcn.00471dcc
xor al, al
jmp 0x4801e1
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4801a6
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4801c6
push edx
call fcn.0048006e
pop ecx
test al, al
je 0x480191
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4801d4
mov bl, 1
push dword [ebp - 0x210]
call fcn.00471dcc
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0046c2a8
leave
ret
Function at 0x485893
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x65d388]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4858d3
cmp byte [ebx], 0xa
jne 0x4858d3
or byte [eax + edi + 0x28], 4
jmp 0x4858d8
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4859d6
mov al, byte [edx]
cmp al, 0x1a
je 0x4859b8
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x485907
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48592c
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x485936
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4858e9
jmp 0x4859d6
push 0
lea eax, [ebp - 0xc]
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 0x4859b3
cmp dword [ebp - 0xc], 0
je 0x4859b3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x65d388]
test byte [eax + edi + 0x28], 0x48
je 0x48598d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x485978
mov byte [esi], dl
jmp 0x485989
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x65d388]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4859d6
cmp byte [ebp - 1], 0xa
jne 0x48599c
cmp esi, ebx
jne 0x48599c
mov byte [esi], 0xa
jmp 0x4859d5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004807bf
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4859d6
mov byte [esi], 0xd
jmp 0x4859d5
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x65d388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4859d2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4859d6
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4859df
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x65d388]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x485a22
cmp word [esi], dx
jne 0x485a22
or byte [edi + eax + 0x28], 4
jmp 0x485a27
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x485b7a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x485b5a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x485a69
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x485a9f
cmp eax, edx
jae 0x485aab
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x485a41
jmp 0x485b7a
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x485b56
cmp dword [ebp - 0x14], 0
je 0x485b56
mov eax, dword [ebx*4 + 0x65d388]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x485b2e
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x485af7
mov word [esi], cx
jmp 0x485b2a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x65d388]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x65d388]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x65d388]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x485b7a
pop ebx
cmp word [ebp - 4], bx
jne 0x485b3f
cmp esi, dword [ebp + 0xc]
jne 0x485b3f
mov word [esi], bx
jmp 0x485b77
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004807bf
add esp, 0x10
cmp word [ebp - 4], bx
je 0x485b7a
push 0xd
jmp 0x485b73
mov ecx, dword [ebx*4 + 0x65d388]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x485b71
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x485b7a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x487ff4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x62f46c
push 0x62f464
push str.FlsAlloc
push 0x1e
call fcn.00487e20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x488028
push dword [ebp + 8]
mov ecx, esi
call dword [0x4974f0]
call esi
jmp 0x48802e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x488072
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x62f47c
push 0x62f474
push str.FlsGetValue
push 0x20
call fcn.00487e20
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4880a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x4974f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x488b67
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004889d8
Function at 0x48cb29
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x639440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48cb74
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0048ccc8
test al, al
jne 0x48cb6e
sub edx, 2
cmp edx, edi
jne 0x48cb54
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48cb96
lea eax, [edi + 2]
cmp edx, eax
je 0x48cb96
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048ca75
add esp, 0x10
jmp 0x48cc90
push esi
lea ecx, [ebp - 0x255]
call fcn.0048ccc8
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48cbd9
push dword [ebp - 0x25c]
jmp 0x48cb86
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x48cc16
cmp word [ebp - 0x226], 0
je 0x48cc37
cmp word [ebp - 0x226], ax
jne 0x48cc16
cmp word [ebp - 0x224], 0
je 0x48cc37
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048ca75
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48cc83
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48cbf0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48cc6b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48cc90
push 0x48c8a5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047e7d0
add esp, 0x10
jmp 0x48cc60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c2a8
leave
ret

Function at 0x48d5b4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x48d5c5
pop esi
ret
push ebx
push edi
push esi
call fcn.0048d57d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00488eef
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x48d5ed
push ebx
push esi
push edi
call fcn.0046d280
add esp, 0xc
push 0
call fcn.00487ae8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x48d9b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d602
Function at 0x4941a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4941cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4941cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402fc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x481020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403058
push 0x80000002
call fcn.004012d4
test eax, eax
jne 0x403038
xor eax, eax
push ebp
push 0x403031
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403074
mov eax, dword [ebp - 4]
push eax
call fcn.004012dc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403038
mov eax, dword [ebp - 4]
push eax
call fcn.004012cc
ret
mov ax, word [0x481020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x481020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d64
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x483048], 0
je 0x403dc5
cmp word [0x48321c], 0xd7b2
jne 0x403d8d
cmp dword [0x483224], 0
jbe 0x403d8d
mov eax, 0x483218
call dword [fcn.00483234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48106c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403dec
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x481030], 0
jne 0x403de1
push 0
push 0x481064
push 0x48106c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026dc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x483049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403ee0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405424
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405654
push 0x80000001
call fcn.004012d4
test eax, eax
je 0x4054a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405654
push 0x80000002
call fcn.004012d4
test eax, eax
je 0x4054a7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405670
push 0x80000001
call fcn.004012d4
test eax, eax
jne 0x405530
xor eax, eax
push ebp
push 0x405529
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040526c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004012dc
test eax, eax
je 0x40550e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405690
mov eax, dword [ebp - 8]
push eax
call fcn.004012dc
test eax, eax
je 0x40550e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405530
mov eax, dword [ebp - 8]
push eax
call fcn.004012cc
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40564a
cmp byte [ebp - 0xd], 0
jne 0x405577
cmp byte [ebp - 0x12], 0
je 0x40564a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405590
dec ebx
cmp byte [ebx], 0x2e
je 0x40559f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40558f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40564a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4055dc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40564a
cmp byte [ebp - 0xd], 0
je 0x40564a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40564a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405d1c
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 0x405d82
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
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041d4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d6c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d89
lea eax, [ebp - 0x10]
call fcn.00403f64
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404424
push eax
call fcn.0040630c
cmp eax, 0xffffffff
je 0x4088f9
test al, 0x10
jne 0x4088fd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408904
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.00404424
push eax
call fcn.00406444
test eax, eax
jne 0x408926
call fcn.0040631c
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5d4
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 fcn.0040632c
test eax, eax
jle 0x40b60d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404054
jmp 0x40b616
mov eax, ebx
mov edx, esi
call fcn.00403fb8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b620
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 fcn.0040632c
test eax, eax
jle 0x40b641
mov al, byte [esp]
jmp 0x40b643
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret