joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da50
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x42e17c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], 0
cmp dword [ebp + 8], 0
je 0x40da9f
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40db3e
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.00410eb0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40daf7
cmp dword [ebp + 0x18], 0
je 0x40daf5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetModuleFileName_NULL__failed__last_error_d
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004069d0
add esp, 0xc
jmp 0x40dc0e
jmp 0x40db3e
push 0x5c
lea edx, [ebp - 0x210]
push edx
call fcn.00402720
add esp, 8
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x40db35
mov eax, dword [ebp - 0x21c]
add eax, 2
push eax
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call fcn.00412362
add esp, 0xc
lea edx, [ebp - 0x210]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x40db87
cmp dword [ebp + 0x18], 0
je 0x40db85
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.RegisterEventSource_NULL___s__failed__last_error_d
mov edx, dword [ebp + 0x18]
push edx
call fcn.004069d0
add esp, 0x10
jmp 0x40dc0e
jmp 0x40dbaf
cmp dword [ebp - 0x214], 6
jne 0x40dbaf
cmp dword [ebp + 0x18], 0
je 0x40dbaf
mov eax, dword [ebp + 8]
push eax
push str.RegisterEventSource_NULL___s__returns_ERROR_INVALID_HANDLE
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004069d0
add esp, 0xc
jmp 0x40dc0e
push 0
lea edx, [ebp + 0x14]
push edx
push 0
push 1
push 0
mov eax, dword [ebp + 0x10]
push eax
push 0
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x40dc04
cmp dword [ebp + 0x18], 0
je 0x40dc04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReportEvent___failed__last_error_d
mov eax, dword [ebp + 0x18]
push eax
call fcn.004069d0
add esp, 0xc
jmp 0x40dc0e
mov dword [ebp - 0x220], 1
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e39f
mov esp, ebp
pop ebp
ret

Function at 0x40e150
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x42e17c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 2
jne 0x40e190
cmp dword [ebp - 0x9c], 5
jb 0x40e190
mov al, 1
jmp 0x40e192
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e39f
mov esp, ebp
pop ebp
ret
Function at 0x40e39f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e17c]
jne 0x40e3a9
repz ret
jmp fcn.0041390c

Function at 0x41e020
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.00413a84
and dword [ebp - 4], 0
cmp dword [0x430078], 0
mov ebx, eax
jne 0x41e0d1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41e182
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41e182
push eax
call fcn.00413a12
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x430078], eax
call esi
push eax
call fcn.00413a12
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43007c], eax
call esi
push eax
call fcn.00413a12
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430080], eax
call esi
push eax
call fcn.00413a12
pop ecx
mov dword [0x430088], eax
test eax, eax
je 0x41e0d1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413a12
pop ecx
mov dword [0x430084], eax
mov eax, dword [0x430084]
cmp eax, ebx
je 0x41e129
cmp dword [0x430088], ebx
je 0x41e129
push eax
call fcn.00413a8d
push dword [0x430088]
mov esi, eax
call fcn.00413a8d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41e129
test edi, edi
je 0x41e129
call esi
test eax, eax
je 0x41e120
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41e120
test byte [ebp - 0xc], 1
jne 0x41e129
or dword [ebp + 0x10], 0x200000
jmp 0x41e162
mov eax, dword [0x43007c]
cmp eax, ebx
je 0x41e162
push eax
call fcn.00413a8d
pop ecx
test eax, eax
je 0x41e162
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41e162
mov eax, dword [0x430080]
cmp eax, ebx
je 0x41e162
push eax
call fcn.00413a8d
pop ecx
test eax, eax
je 0x41e162
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430078]
call fcn.00413a8d
pop ecx
test eax, eax
je 0x41e182
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41e184
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x15c135fd
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x7037381e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40565d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405928
test bl, 8
mov dword [ebp - 8], eax
je 0x40569c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429248], eax
jmp 0x405819
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4056b6
test eax, eax
je 0x4057c7
test bl, 2
je 0x4057c7
mov esi, 0x4246b8
push edi
push esi
call fcn.00405dd5
cmp dword [ebp + 8], 0
je 0x4056d5
push 0x40951c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x4056db
push edi
call fcn.0040586c
cmp word [edi], 0
jne 0x4056eb
cmp word [0x4246b8], 0x5c
jne 0x4056f6
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057bc
cmp word [ebp - 0x22c], 0x2e
jne 0x405740
cmp word [ebp - 0x22a], 0
je 0x40579f
cmp word [ebp - 0x22a], 0x2e
jne 0x405740
cmp word [ebp - 0x228], 0
je 0x40579f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405dd5
test byte [ebp - 0x258], 0x10
je 0x40576b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40579f
push dword [ebp + 0xc]
push edi
call fcn.0040565d
jmp 0x40579f
push dword [ebp - 4]
push edi
call fcn.00405615
test eax, eax
jne 0x405797
cmp dword [ebp - 4], eax
je 0x40578f
push edi
push 0xfffffffffffffff1
call fcn.0040507f
push 0
push edi
call fcn.00405c6f
jmp 0x40579f
inc dword [0x429248]
jmp 0x40579f
push edi
push 0xfffffffffffffff2
call fcn.0040507f
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405718
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4057c7
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405819
cmp dword [ebp - 8], esi
jne 0x4057db
inc dword [0x429248]
jmp 0x405819
push edi
call fcn.00406118
test eax, eax
je 0x405819
push edi
call fcn.00405820
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405615
test eax, eax
jne 0x405811
cmp dword [ebp - 4], esi
je 0x4057d3
push edi
push 0xfffffffffffffff1
call fcn.0040507f
push esi
push edi
call fcn.00405c6f
jmp 0x405819
push edi
push 0xffffffffffffffe5
call fcn.0040507f
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001bf70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.1001b38d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001b342
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.1001b37d
mov dh, 0x1b
sub ebx, edx
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.1001b38d
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1001b342
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.1001b37d
mov ch, 5
push ecx
je 0x1001c098
add al, 1
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1001c071
cmp dword [ebp - 0x398], 0
je 0x1001c23b
cmp dword [ebp + 0xc], 1
je 0x1001c23b
cmp dword [ebp + 0xc], 8
jne 0x1001c203
invalid
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
Function at 0xad0108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00ad0258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xad012e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xad011a
add dl, dl
jne 0xad0139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xad018c
xor eax, eax
add dl, dl
jne 0xad0146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xad022d
add dl, dl
jne 0xad0155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xad0160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xad016b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xad0176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xad0182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xad0125
mov eax, 1
add dl, dl
jne 0xad019a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xad01a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xad0191
sub eax, ebx
mov ebx, 1
jne 0xad01d8
mov ecx, 1
add dl, dl
jne 0xad01be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xad01c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xad01b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xad0125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xad01ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xad01fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xad01e6
cmp eax, 0x7d00
jae 0xad021d
cmp eax, 0x500
jb 0xad0218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xad0125
cmp eax, 0x7f
ja 0xad0220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xad0125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xad024e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xad0125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4173d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 1], cl
sub edx, 0
inc edx
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x417411
inc esi
xor ecx, ecx
movzx edx, byte [eax]
movzx ebx, byte [ebp - 1]
mov byte [ebp - 9], bl
xor dl, byte [ebp - 9]
mov ebx, dword [ebp + 8]
add ebx, ecx
mov edi, ebx
mov byte [edi], dl
inc ecx
inc eax
dec esi
jne 0x4173f6
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov byte [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
mov ecx, 0x65de7ba0
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x69de7791
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x14896549
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x78a16cf4
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x78c90aaf
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x772c1029
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x42211b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4347cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4347cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41c230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41c252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41c259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41c248
mov eax, 1
add ebx, ebx
jne 0x41c26b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41c260
jne 0x41c27c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c260
xor ecx, ecx
sub eax, 3
jb 0x41c290
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41c302
mov ebp, eax
add ebx, ebx
jne 0x41c29b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41c2a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41c2cc
inc ecx
add ebx, ebx
jne 0x41c2b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41c2ad
jne 0x41c2c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41c2ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41c2ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41c2dd
jmp 0x41c24e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41c2ec
add edi, ecx
jmp 0x41c24e
pop esi
mov edi, esi
mov ecx, 2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41c30a
cmp byte [edi], 5
jne 0x41c30a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41c30f
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41c387
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21bac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21be8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41c33c
mov ecx, edi
jns 0x41c36b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x21bec]
or eax, eax
je 0x41c381
mov dword [ebx], eax
add ebx, 4
jmp 0x41c359
call dword [esi + 0x21bf0]
popal
jmp 0x401150
Function at 0x403590
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40f020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403628
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403608
xor eax, eax
push ebp
push 0x403601
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 0x403644
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403608
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40f020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40f020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404008
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x410048], 0
je 0x404069
cmp word [0x41021c], 0xd7b2
jne 0x404031
cmp dword [0x410224], 0
jbe 0x404031
mov eax, 0x410218
call dword [0x410234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40f06c
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 0x404090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40f02c], 0
jne 0x404085
push 0
push 0x40f064
push 0x40f06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405800
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 0x405866
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.004043fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f4c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405850
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40586d
lea eax, [ebp - 0x10]
call fcn.0040418c
ret

Function at 0x4095b0
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_1
test eax, eax
jle 0x4095e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040427c
jmp 0x4095f2
mov eax, ebx
mov edx, esi
call fcn.004041e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4095fc
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_1
test eax, eax
jle 0x40961d
mov al, byte [esp]
jmp 0x40961f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409cb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409b1c
mov eax, dword [0x40f4b8]
cmp byte [eax], 0
je 0x409d30
mov eax, dword [0x40f3f8]
call fcn.00402e40
call fcn.004029e0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00406f4c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409d78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40f3d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x410664]
call fcn.00405188
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40aa78
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 0x40aadc
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_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004043fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406c58
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40aae3
lea eax, [ebp - 0xc]
call fcn.0040418c
ret