joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c367a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c3717
push ebx
push esi
call fcn.004c3636
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004bde6a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c36c4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c3716
push edi
push eax
call fcn.004b27b8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c36e4
call fcn.004ae3f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c3715
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004bde6a
add esp, 0x20
test eax, eax
jne 0x4c3703
push edi
call fcn.004ae3f2
jmp 0x4c370b
push ebx
call fcn.004ae3f2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4c371a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c372b
pop esi
ret
push ebx
push edi
push esi
call fcn.004c3636
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b27b8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c3753
push ebx
push esi
push edi
call fcn.0046b9c0
add esp, 0xc
push 0
call fcn.004ae3f2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c3fb0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c39c8

Function at 0x4c6e2c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004b0e1d
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c6e9b
cmp esi, dword [ebp - 4]
je 0x4c6e96
cmp dword [ebp + 0xc], 0
je 0x4c6e96
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4c6e73
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004c697e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4c6e9d
xor eax, eax
inc eax
jmp 0x4c6e9d
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4c6f02
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f11c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004b0e1d
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004b0e1d
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4c6f79
cmp word [ecx], dx
je 0x4c6f79
mov eax, dword [0x4e5304]
push edi
dec eax
push eax
push 0x4e51f0
call fcn.004c6ea1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4c6fec
cmp word [eax], dx
je 0x4c6fec
mov eax, dword [edi]
test eax, eax
je 0x4c6f9d
cmp word [eax], dx
je 0x4c6f9d
lea eax, [ebp - 0x10]
push eax
call fcn.004c6884
jmp 0x4c6fa6
lea eax, [ebp - 0x10]
push eax
call fcn.004c691f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4c7016
mov eax, dword [0x4e51ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4e4ee0
call fcn.004c6ea1
add esp, 0xc
test al, al
je 0x4c7016
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4c6fe1
cmp word [eax], di
je 0x4c6fe1
lea eax, [ebp - 0x10]
push eax
call fcn.004c6884
pop ecx
jmp 0x4c7018
lea eax, [ebp - 0x10]
push eax
call fcn.004c691f
jmp 0x4c6fde
mov eax, dword [edi]
test eax, eax
je 0x4c7003
cmp word [eax], dx
je 0x4c7003
lea eax, [ebp - 0x10]
push eax
call fcn.004c681b
pop ecx
jmp 0x4c7016
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4c70e1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004c6d26
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4c70e1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4c70e1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4c70e1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c706e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004af129
test ebx, ebx
je 0x4c70dc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004af129
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c70e1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c70e1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004ba354
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4c70e3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004698d9
leave
ret
Function at 0x4cac96
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004caaba
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4cae05
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4cae05
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4cadba
jg 0x4cacf2
test eax, eax
je 0x4cadb0
push 1
push 0x1000
call fcn.004ae38f
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cad15
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4cada7
push 0x8000
push ebx
call fcn.00490dae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4cad3e
jg 0x4cad39
cmp ecx, 0x1000
jb 0x4cad3e
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b0420
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cad83
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4cad39
jl 0x4cad6a
test ecx, ecx
jne 0x4cad2b
push dword [ebp - 0xc]
push ebx
call fcn.00490dae
push esi
call fcn.004ae3f2
add esp, 0xc
xor ebx, ebx
jmp 0x4cae13
cmp byte [edi + 0x24], 0
je 0x4cad9a
cmp dword [edi + 0x20], 5
jne 0x4cad9a
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4cada5
mov ebx, dword [edi + 0x18]
jmp 0x4cada7
xor ebx, ebx
push esi
call fcn.004ae3f2
pop ecx
jmp 0x4cae13
test ecx, ecx
jg 0x4cad7c
jl 0x4cadba
test eax, eax
jae 0x4cad7c
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b905d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4cadda
cmp byte [edi + 0x1c], 0
je 0x4cad7c
jmp 0x4cae0b
push ebx
call fcn.004c43e2
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4cad7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4cae13
cmp byte [edi + 0x1c], 0
je 0x4cae10
mov ebx, dword [edi + 0x18]
jmp 0x4cae13
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b905d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d22b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d22dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d22dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401870
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4491dc
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x38]
mov dword [ebp - 4], 0xc
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 0xb
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 0xa
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 9
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 8
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 6
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 5
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 3
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 2
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 8]
mov byte [ebp - 4], 0
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esi + 4]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.qt_mt338_ms10.dll_public:_void___thiscall_QString::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x425640
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x470428]
xor eax, ebp
mov dword [ebp - 0x1c], eax
cmp dword [0x471320], 0
je 0x42568f
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 2
call dword [0x471320]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x425682
mov eax, dword [ebp - 0x18]
jmp 0x4257f7
cmp dword [ebp - 0x18], 0
jge 0x42568f
xor eax, eax
jmp 0x4257f7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 8
test eax, eax
jne 0x4256aa
xor eax, eax
jmp 0x4257f7
push 0x200
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.MSVCR100.dll__getcwd]
add esp, 8
mov edx, dword [ebp + 8]
push edx
call fcn.00425810
add esp, 4
test eax, eax
je 0x4256d9
mov eax, 0xf
jmp 0x4257f7
push 0x800
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4256fa
mov eax, 0x14
jmp 0x4257f7
push 0x44e2c4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42572c
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, 0xf
jmp 0x4257f7
push 0x44e2c8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42576b
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, 0x10
jmp 0x4257f7
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
push 1
push 0x800
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
push 1
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR100.dll_feof]
add esp, 4
test eax, eax
je 0x42576b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00442e52
mov esp, ebp
pop ebp
ret
Function at 0x425d90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x470428]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x471320], 0
je 0x425de6
push 0
mov eax, dword [ebp + 8]
push eax
push 5
call dword [0x471320]
add esp, 0xc
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jle 0x425dd9
mov eax, dword [ebp - 0x20c]
jmp 0x425e57
cmp dword [ebp - 0x20c], 0
jge 0x425de6
xor eax, eax
jmp 0x425e57
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406fc0
add esp, 4
test eax, eax
je 0x425dfd
mov eax, 0x17
jmp 0x425e57
mov edx, dword [ebp + 8]
push edx
call sub.MSVCR100.dll_strlen
add esp, 4
cmp eax, 0x200
jb 0x425e17
mov eax, 5
jmp 0x425e57
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x208]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
lea edx, [ebp - 0x208]
push edx
call fcn.00425bd0
add esp, 4
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCR100.dll__mkdir]
add esp, 4
cmp eax, 0xffffffff
jne 0x425e55
mov eax, 0xd
jmp 0x425e57
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00442e52
mov esp, ebp
pop ebp
ret

Function at 0x425f70
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x470428]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x471320], 0
je 0x425fc9
push 0
mov eax, dword [ebp + 8]
push eax
push 6
call dword [0x471320]
add esp, 0xc
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jle 0x425fb9
mov eax, dword [ebp - 0x40c]
jmp 0x4260bd
cmp dword [ebp - 0x40c], 0
jge 0x425fc9
xor eax, eax
jmp 0x4260bd
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00406fc0
add esp, 4
test eax, eax
je 0x425ff6
push 0x200
lea edx, [ebp - 0x208]
push edx
call fcn.00425e70
add esp, 8
jmp 0x426028
mov eax, dword [ebp + 8]
push eax
call sub.MSVCR100.dll_strlen
add esp, 4
cmp eax, 0x200
jb 0x426015
mov eax, 5
jmp 0x4260bd
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x208]
push edx
call sub.MSVCR100.dll_strcpy
add esp, 8
lea eax, [ebp - 0x208]
push eax
call fcn.00425bd0
add esp, 4
lea ecx, [ebp - 0x208]
push ecx
call fcn.00425af0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x426054
mov eax, dword [ebp - 4]
jmp 0x4260bd
push 0x44e2f4
lea edx, [ebp - 0x208]
push edx
push 0x44e2f8
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
lea ecx, [ebp - 0x408]
push ecx
call fcn.00425940
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x426092
mov eax, dword [ebp - 4]
jmp 0x4260bd
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.MSVCR100.dll__rmdir]
add esp, 4
test eax, eax
je 0x4260ba
call dword [sym.imp.MSVCR100.dll__errno]
mov eax, dword [eax]
push eax
call fcn.004254d0
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00442e52
mov esp, ebp
pop ebp
ret
Function at 0x42a020
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x404
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 0x400
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_recv
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x400], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x400], 0xffffffff
jne 0x42a083
call fcn.0042a230
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x42a077
mov eax, dword [ebp - 4]
imul eax, eax, 0xffffffff
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x400], edx
push 0
mov eax, dword [0x47278c]
push eax
call dword [0x46f444]
add esp, 8
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x400], 0
jg 0x42a0a7
mov eax, 0xfffffe6c
jmp 0x42a0a9
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42a0b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x10
push 0
mov eax, dword [ebp + 0x10]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jmp 0x42a0de
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x42a10c
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
push eax
push str.0123456789.
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x42a10a
mov dword [ebp - 4], 1
jmp 0x42a10c
jmp 0x42a0d5
cmp dword [ebp - 4], 0
je 0x42a14d
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42a12b
mov eax, 0xfffffe0b
jmp 0x42a19c
mov edx, dword [ebp - 0xc]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x42a17e
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll_inet_addr
mov dword [ebp - 0x10], eax
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 4
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [ebp - 0x10], 0xffff
jne 0x42a17e
mov eax, 0xfffffe09
jmp 0x42a19c
mov edx, 2
mov eax, dword [ebp + 0x10]
mov word [eax], dx
movzx ecx, word [ebp + 0xc]
push ecx
call sub.WS2_32.dll_htons
mov edx, dword [ebp + 0x10]
mov word [edx + 2], ax
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42a1c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jge 0x42a1e2
mov eax, 0xfffffe6f
jmp 0x42a202
push 0x10
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_connect
test eax, eax
je 0x42a200
mov eax, 0xfffffe6e
jmp 0x42a202
xor eax, eax
pop ebp
ret
Function at 0x42a250
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
je 0x42a263
mov eax, dword [ebp + 8]
mov dword [eax], 0x473048
cmp dword [0x472788], 0
je 0x42a270
xor eax, eax
jmp 0x42a2cf
push 0x472eb8
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x42a2a6
mov ecx, dword [ebp - 4]
push ecx
push str.WSAStartup_error__d
push 0x473048
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
mov eax, 0xfffffb49
jmp 0x42a2cf
mov dword [0x472788], 1
push 0x472fbd
push 0x472ebc
push str.DLL_s___STATUS_s
push 0x473048
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x42d470
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x42d4c3
mov ecx, dword [ebp + 0x10]
push ecx
push str.PC_user
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov byte [eax - 1], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42d4d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x470428]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
xor eax, eax
je 0x42d50b
push 0x44fe74
lea ecx, [ebp - 0xc]
push ecx
call sub.MSVCR100.dll_strcpy
add esp, 8
jmp 0x42d59b
push 0x44fe78
lea edx, [ebp - 0xc]
push edx
call sub.MSVCR100.dll_strcpy
add esp, 8
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xc], 0x41
jmp 0x42d532
mov al, byte [ebp - 0xc]
add al, 1
mov byte [ebp - 0xc], al
movsx ecx, byte [ebp - 0xc]
cmp ecx, 0x5a
jg 0x42d585
movsx edx, byte [ebp - 0xe]
test edx, edx
jne 0x42d585
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xd4], ecx
cmp dword [ebp - 0xd4], 2
je 0x42d575
cmp dword [ebp - 0xd4], 3
je 0x42d56d
jmp 0x42d583
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0xe], dl
jmp 0x42d583
movsx eax, byte [ebp - 0xd]
test eax, eax
jne 0x42d583
mov cl, byte [ebp - 0xc]
mov byte [ebp - 0xd], cl
jmp 0x42d52a
movsx edx, byte [ebp - 0xe]
test edx, edx
jne 0x42d595
mov al, byte [ebp - 0xd]
mov byte [ebp - 0xc], al
jmp 0x42d59b
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0xc], cl
movsx edx, byte [ebp - 0xc]
test edx, edx
jne 0x42d5b3
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0xfffffc19
jmp 0x42d5f9
push 0x50
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x74]
push eax
push 0x50
lea ecx, [ebp - 0xd0]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x42d5f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
jmp 0x42d5f9
mov eax, dword [ebp - 0x74]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jne 0x42d605
cmp dword [ebp - 4], 0
jl 0x42d611
cmp dword [ebp - 8], 0
je 0x42d619
cmp dword [ebp - 4], 0
jle 0x42d619
mov ecx, dword [ebp - 4]
neg ecx
mov dword [ebp - 4], ecx
cmp dword [0x4744ac], 0
je 0x42d681
cmp dword [0x46f558], 0
jle 0x42d681
cmp dword [0x4744b8], 0
je 0x42d649
mov edx, dword [ebp - 4]
mov dword [0x4744bc], edx
mov dword [0x4744b8], 0
jmp 0x42d65e
mov eax, dword [ebp - 4]
cmp eax, dword [0x4744bc]
je 0x42d65e
mov dword [0x46f558], 0
mov ecx, dword [0x46f558]
sub ecx, 1
mov dword [0x46f558], ecx
jne 0x42d681
lea edx, [ebp - 4]
push edx
push 0x4744b4
call dword [0x4744ac]
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00442e52
mov esp, ebp
pop ebp
ret