joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40105a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x43f648]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x43f64c]
xor esi, esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], esi
call fcn.00401053
mov eax, dword [0x43f650]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [0x43f654]
add ebx, 0x23f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, dword [ebp - 0xc]
shl eax, 4
cmp dword [0x1a3020c], 0xc
mov dword [ebp - 4], eax
jne 0x4010df
push esi
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x438]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x1a3020c]
cmp eax, 0xfa9
jne 0x4010fb
mov dword [0x1a30208], 0xedeb2e40
cmp eax, 0x3eb
jne 0x40110f
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x1a3015c], esi
mov eax, dword [ebp - 0xc]
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [0x1a30204], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 8], eax
sub edi, dword [ebp - 8]
cmp dword [0x1a3020c], 0xc
mov dword [ebp - 4], eax
jne 0x401170
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + edi]
mov dword [ebp - 0x18], eax
mov eax, edi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
add ebx, 0x61c88647
dec dword [ebp - 0x20]
jne 0x4010ae
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 4
Function at 0x4051bb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43e2a8]
jne 0x4051c5
repz ret
jmp fcn.0040b4c7

Function at 0x40bf3a
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.00407c9c
and dword [ebp - 4], 0
cmp dword [0x448a04], 0
mov ebx, eax
jne 0x40bfeb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c09c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c09c
push eax
call fcn.00407c2a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x448a04], eax
call esi
push eax
call fcn.00407c2a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x448a08], eax
call esi
push eax
call fcn.00407c2a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x448a0c], eax
call esi
push eax
call fcn.00407c2a
pop ecx
mov dword [0x448a14], eax
test eax, eax
je 0x40bfeb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407c2a
pop ecx
mov dword [0x448a10], eax
mov eax, dword [0x448a10]
cmp eax, ebx
je 0x40c043
cmp dword [0x448a14], ebx
je 0x40c043
push eax
call fcn.00407ca5
push dword [0x448a14]
mov esi, eax
call fcn.00407ca5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c043
test edi, edi
je 0x40c043
call esi
test eax, eax
je 0x40c03a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c03a
test byte [ebp - 0xc], 1
jne 0x40c043
or dword [ebp + 0x10], 0x200000
jmp 0x40c07c
mov eax, dword [0x448a08]
cmp eax, ebx
je 0x40c07c
push eax
call fcn.00407ca5
pop ecx
test eax, eax
je 0x40c07c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c07c
mov eax, dword [0x448a0c]
cmp eax, ebx
je 0x40c07c
push eax
call fcn.00407ca5
pop ecx
test eax, eax
je 0x40c07c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x448a04]
call fcn.00407ca5
pop ecx
test eax, eax
je 0x40c09c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c09e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10b7c190
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10b7c19a
pushal
call 0x10b7c1a0
pop ebp
sub ebp, 0x10
sub ebp, 0xb7c190
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10b7c1c4
popal
xor eax, eax
inc eax
ret 0xc
rol byte [eax - 0x3e], 0xc
add cl, ch
add al, 0
add byte [eax], al
and ebx, dword [bx]
mov eax, 0xb7c190b8
add byte [ebx], al
lds eax, [ecx + 0x63c0]
add byte [ecx + 0x5d6], bh
jmp 0x10b7c1cd
mov eax, 0xb7c190
add eax, ebp
add eax, 0x63
mov ecx, 0x5d6
mov edx, 0xf8a3392d
xor byte [eax], dl
inc eax
dec ecx
jne 0x10b7c1e4
jmp 0x10b7c1f7
cmpsb byte [esi], byte es:[edi]
loopne 0x10b7c1a0
movsb byte es:[edi], byte [esi]
adc dword [0xecac2d2d], ebp
aad 0x2d
sub eax, 0x95e02e2d
sub ebp, dword [0x5972d2d]
sub eax, 0xcfda2d2d
in eax, 0xa6
lodsb al, byte [esi]
and dword [0xe82e2d2d], ebp
jge 0x10b7c1bf
dec ecx
or ecx, edx
movsb byte es:[edi], byte [esi]
sub dword [ecx], ecx
inc ebp
xor edx, ebx
or al, 0x2d
inc ebp
pop esp
out 0xb8, eax
sub eax, 0x4509012c
aad 0xa6
pop esp
movsd dword es:[edi], dword [esi]
lds ebp, [eax]
sub eax, 0x19c42d2d
sub eax, 0x49a02d2d
or ecx, edx
movsb byte es:[edi], byte [esi]
add dword [ecx], ecx
cmpsb byte [esi], byte es:[edi]
shl dword [esi + 0x2d2d25a8], 0x2d
cmpsb byte [esi], byte es:[edi]
mov eax, 0x2d2d2d21
cmpsb byte [esi], byte es:[edi]
mov al, byte [0x2d2d2d3d]
in al, dx
les ebp, [edi]
sbb al, 0x2f
scasb al, byte es:[edi]
out dx, eax
sub dword [edx - 0x58], esp
invalid
Function at 0x93aac0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x347000]
push edi
or ebp, 0xffffffff
jmp 0x93aae2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x93aae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x93aad8
mov eax, 1
add ebx, ebx
jne 0x93aafb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x93ab0c
jne 0x93ab2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x93ab2b
dec eax
add ebx, ebx
jne 0x93ab18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x93aaf0
add ebx, ebx
jne 0x93ab27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x93ab7d
xor ecx, ecx
sub eax, 3
jb 0x93ab43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x93abb2
sar eax, 1
mov ebp, eax
jmp 0x93ab4e
add ebx, ebx
jne 0x93ab4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x93ab1c
inc ecx
add ebx, ebx
jne 0x93ab5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x93ab1c
add ebx, ebx
jne 0x93ab69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x93ab5e
jne 0x93ab7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x93ab5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x93ab9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x93ab8e
jmp 0x93aade
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x93ab9c
add edi, ecx
jmp 0x93aade
pop esi
mov edi, esi
mov ecx, 0x733e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x93abba
cmp byte [edi], 0x2d
jne 0x93abba
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 al, bl
loop 0x93abbf
lea edi, [esi + 0x537000]
mov eax, dword [edi]
or eax, eax
je 0x93ac37
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x53a7d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x53a8dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x93abec
mov ecx, edi
jns 0x93ac1b
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 + 0x53a8e0]
or eax, eax
je 0x93ac31
mov dword [ebx], eax
add ebx, 4
jmp 0x93ac09
call dword [esi + 0x53a8e8]
mov ebp, dword [esi + 0x53a8e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x93ac6b
sub esp, 0xffffff80
jmp 0x515b42
Function at 0x402b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40c014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402bf8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402bd8
xor eax, eax
push ebp
push 0x402bd1
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 0x402c14
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 0x402bd8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40c014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40c014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40352c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x40358d
cmp word [0x40d218], 0xd7b2
jne 0x403555
cmp dword [0x40d220], 0
jbe 0x403555
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c05c
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 0x4035b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c020], 0
jne 0x4035a9
push 0
push 0x40c054
push 0x40c05c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4040c8
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 0x4042f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40414b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40414b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041d4
xor eax, eax
push ebp
push 0x4041cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403f10
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 sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404334
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041b2
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 0x4041d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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 0x4042ee
cmp byte [ebp - 0xd], 0
jne 0x40421b
cmp byte [ebp - 0x12], 0
je 0x4042ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404234
dec ebx
cmp byte [ebx], 0x2e
je 0x404243
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404233
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404280
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 0x4042ee
cmp byte [ebp - 0xd], 0
je 0x4042ee
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 0x4042ee
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 0x4041d4
Capabilities:
Get geographical location

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 0x4042f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40414b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4042f8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40414b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404314
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4041d4
xor eax, eax
push ebp
push 0x4041cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403f10
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 sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404334
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4041b2
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 0x4041d4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
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 0x4042ee
cmp byte [ebp - 0xd], 0
jne 0x40421b
cmp byte [ebp - 0x12], 0
je 0x4042ee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404234
dec ebx
cmp byte [ebx], 0x2e
je 0x404243
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404233
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4042ee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404280
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 0x4042ee
cmp byte [ebp - 0xd], 0
je 0x4042ee
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 0x4042ee
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 0x404484
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 0x4044ea
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.004038f0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402754
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4044d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4044f1
lea eax, [ebp - 0x10]
call fcn.004036a8
ret

Function at 0x404a34
Capabilities:
Set global application hook

Disassembly:
push 0
mov eax, dword [0x40d660]
push eax
mov eax, 0x404a14
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40d680], eax
ret
Function at 0x404ea8
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x438], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403b0c
xor eax, eax
push ebp
push 0x4050b6
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0
push 0
push 0
push 0
push 0x4050c8
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x405081
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 0xc], 0
je 0x40506a
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00404d9c
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x20]
call fcn.00403b1c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0x10], eax
mov eax, 0x4050d0
mov dword [ebp - 0x28], eax
push 0
push 0x80000000
lea eax, [ebp - 0x28]
push eax
push 0
push 0x4050dc
mov eax, dword [ebp - 0x24]
call fcn.00403b1c
push eax
push 0x4050e8
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.0040391c
push eax
mov eax, dword [ebp - 4]
call fcn.00403b1c
push eax
push 0x2f
push 0x4050f0
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x400
mov eax, dword [ebp - 0x2c]
call fcn.004024f8
mov esi, eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push 5
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40506a
xor eax, eax
push ebp
push 0x405063
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
push 0x400
lea eax, [ebp - 0x432]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x18], 0
je 0x405033
mov eax, dword [ebp - 0x18]
mov byte [ebp + eax - 0x432], 0
lea eax, [ebp - 0x438]
lea edx, [ebp - 0x432]
mov ecx, 0x402
call fcn.004038f0
mov edx, dword [ebp - 0x438]
lea eax, [ebp - 0x1c]
call fcn.00403924
jmp 0x404fdc
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00403c04
test eax, eax
setg byte [ebp - 5]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40506a
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405088
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x406cb4
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 0x406ced
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403798
jmp 0x406cf6
mov eax, ebx
mov edx, esi
call fcn.004036fc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406d00
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 0x406d21
mov al, byte [esp]
jmp 0x406d23
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4073a8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407220
mov eax, dword [0x40c4d0]
cmp byte [eax], 0
je 0x407424
mov eax, dword [0x40c3fc]
call fcn.004026d0
call fcn.004025ec
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.00406194
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 0x40746c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40745a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40c3d8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40d660]
call fcn.00403ed4
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 0x407e18
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 0x407e7c
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.004038f0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00406068
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e83
lea eax, [ebp - 0xc]
call fcn.004036a8
ret