joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.0040cac0
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.0040cac0
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.0040cac0
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.0040cac0
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.0040cac0
mov dword [0x41203c], eax
call fcn.0040cac0
test eax, eax
jge 0x402550
push 8
call fcn.0040cac0
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.0040cac0
pop ecx
push 1
call fcn.0040cac0
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.0040cac0
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.0040cac0
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.0040cac0
jmp 0x402495

Function at 0x40cac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40cacf
pop dword [ebp - 8]
mov eax, 0x65b3c4eb
sub eax, 0x6572fa1c
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3ac52
push 0
mov eax, 0xbae507c2
sub eax, 0xbaa426ea
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x4e25
xor edx, edx
add edx, eax
mov edi, 0xfd28bb35
sub edi, 0xfce77f71
add edi, dword [ebp - 8]
mov esi, 0x92839
sub esi, 0xd5f74adf
mov ebx, dword [edi]
sub dword [ebp - 4], esi
sub ebx, esi
sub dword [ebp - 4], 0xdfe42bee
mov dword [edx], ebx
xor dword [ebp - 4], edx
add edx, 0x50bb029
add edx, 0xfaf44fdb
add edi, 0x81d7fee8
sub edi, 0x81d7fee4
loop 0x40cb2a
add eax, 0x12b67
mov ebx, eax
add eax, 0x154b2f08
sub eax, 0x154b2f03
mov ecx, 0xb55370aa
add ecx, 0x4aec8f56
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10007c2e
pop dword [ebp - 8]
mov eax, 0xe52ccd55
add eax, 0x2ad3aed9
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x6e1e02df
sub dword [ebp - 0x18], 0x1fcbbd94
mov dword [ebp - 0x14], 0xbc5d1d4d
add dword [ebp - 0x14], 0x75d62ef8
mov dword [ebp - 0x10], 0x7fbe3fd8
add dword [ebp - 0x10], 0xcc8e0456
mov dword [ebp - 0xc], 0x96d0eafe
add dword [ebp - 0xc], 0x692f1502
lea eax, [ebp - 0x18]
push eax
mov eax, 0x9d36685c
sub eax, 0x8d35e808
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0xee203480
add dword [ebp - 0x18], 0x865234d6
mov dword [ebp - 0x14], 0x4466c4d6
sub dword [ebp - 0x14], 0x2fa6361
mov dword [ebp - 0x10], 0xb4f725c3
sub dword [ebp - 0x10], 0x5187b957
mov dword [ebp - 0xc], 0x6c287ab0
add dword [ebp - 0xc], 0x93d78550
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x5d9fb306
sub eax, 0x4d9f32b6
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x37c82
push 0
call eax
mov ecx, 0x28eba215
sub ecx, 0x28eb55a0
mov edi, eax
mov edx, 0x1000fa00
add edx, dword [ebp - 8]
mov esi, 0xea88d60f
add esi, 0xf5ca8a1c
add dword [ebp - 4], esi
mov ebx, dword [edx]
xor dword [ebp - 4], 0x71bbc636
sub ebx, esi
add dword [ebp - 4], 0xe22c66b4
mov dword [edi], ebx
xor dword [ebp - 4], esi
add edi, 0x51b43632
add edi, 0xae4bc9d2
add edx, 4
loop 0x10007d4a
add eax, 0x661483a9
sub eax, 0x66135f02
xor ebx, ebx
add ebx, eax
add eax, 0x470b5d44
sub eax, 0x470b5d3f
mov ecx, 0x3e0ccb61
sub ecx, 0x2e0ccb61
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd64
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cd95
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd7d
add dl, dl
jne 0x41cda0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cdf1
xor eax, eax
add dl, dl
jne 0x41cdad
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce8e
add dl, dl
jne 0x41cdbc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdc7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdd2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cddd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cde7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd8c
mov eax, 1
add dl, dl
jne 0x41cdff
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ce0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdf6
sub eax, ebx
mov ebx, 1
jne 0x41ce3d
mov ecx, 1
add dl, dl
jne 0x41ce23
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce2e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce1a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce54
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce5f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ce4b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd8c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ceaf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cd8c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e5a4
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x523a63
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e655
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e63e
test esi, esi
jbe 0x41e655
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e630
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e655
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e60d
jmp 0x41e655
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e655
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x523a6a
ret
Function at 0x401626
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
mov word [eax], 0x5a4d
cmp word [eax], cx
je 0x401643
xor eax, eax
jmp 0x401758
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x401658
xor eax, eax
jmp 0x401757
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [ebx + 0x50]
push dword [ebx + 0x34]
call edi
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jne 0x401692
push 4
push 0x2000
push dword [ebx + 0x50]
push eax
call edi
mov esi, eax
mov dword [ebp - 4], eax
test esi, esi
je 0x401753
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
xor eax, eax
push 4
push 0x1000
mov dword [edi + 4], esi
mov dword [edi + 0xc], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
push dword [ebx + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x1000
push dword [ebx + 0x54]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebx + 0x54]
push ecx
mov ecx, dword [0x5cd734]
push eax
push esi
call fcn.00401a5a
mov edx, dword [ebp + 8]
push edi
push ebx
push edx
mov eax, dword [edx + 0x3c]
add eax, esi
mov esi, dword [ebp - 4]
mov dword [edi], eax
mov dword [eax + 0x34], esi
call fcn.00401324
mov eax, esi
add esp, 0xc
sub eax, dword [ebx + 0x34]
je 0x401719
push eax
push edi
call fcn.0040148d
pop ecx
pop ecx
push edi
call fcn.00401210
pop ecx
test eax, eax
je 0x40174c
push edi
call fcn.004013d0
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x401748
add eax, esi
je 0x40174c
push 0
xor ebx, ebx
inc ebx
push ebx
push esi
call eax
test eax, eax
je 0x40174c
mov dword [edi + 0x10], ebx
mov eax, edi
jmp 0x401755
push edi
call fcn.00401520
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40191e
Capabilities:
Create thread
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, ecx
call fcn.0040e218
push dword [edi + 0xa8]
mov ebx, 0x80
push 1
push ebx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [edi + 0xa8]
push 0
push ebx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x43f020
mov ecx, 0x18d00
movups xmm0, xmmword [eax]
psubb xmm0, xmmword [0x4308b0]
pxor xmm0, xmmword [str.NNNNNNNNNNNNNNNN]
movups xmmword [eax], xmm0
lea eax, [eax + 0x10]
sub ecx, 1
jne 0x40195a
xor eax, eax
push eax
push eax
push edi
push 0x401a4e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
inc eax
pop ebx
ret
Function at 0x4051cb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x42eb69
call fcn.004185a6
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x405275
push dword [ebp + 8]
mov ecx, eax
call fcn.00405500
mov esi, eax
test esi, esi
je 0x405308
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x40525e
push edx
call fcn.00402426
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40525e
xor edi, edi
inc edi
jmp 0x405268
push dword [ebx]
call fcn.0040242f
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.004050ee
jmp 0x405306
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.00418b1f
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4052fe
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.00402426
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x4052f8
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.004050cb
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.004050cb
add al, bl
mov edx, edi
test edx, edx
jns 0x4052e9
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x4052c0
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00401e7c
mov eax, edi
call fcn.0041856f
ret 0x10

Function at 0x405310
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x405363
push esi
push dword [ebp + 8]
call fcn.00405500
mov edi, eax
test edi, edi
jne 0x405333
mov eax, dword [ebp + 0x10]
jmp 0x405375
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40532e
mov eax, dword [ebp - 8]
jmp 0x405375
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409093
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4090d8
call fcn.00406719
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4090d8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4090f4
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00401b2b
mov ebx, eax
test edi, edi
je 0x4090f2
test esi, esi
je 0x4090f2
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40973d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4097fb
cmp dword [esi + 0x20], 0
je 0x4097fb
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4097fb
cmp dword [ebp + 8], 0
je 0x4097fb
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00406719
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4097cc
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4097fb
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00414cf5
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4097ec
test edi, edi
je 0x4097ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4097f7
mov ecx, esi
call fcn.0040951c
mov eax, ebx
jmp 0x4097fd
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40da57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x40da82
cmp dword [ebx + 0x80], 0
jne 0x40da82
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.00406719
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.0040dcb8
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x427c18
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004278d8
Function at 0x40b622
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x424], 0x400
mov al, byte [0x52dcd4]
mov byte [ebp - 0x418], al
xor ecx, ecx
mov dword [ebp - 0x417], ecx
mov dword [ebp - 0x413], ecx
mov byte [ebp - 0x40f], cl
mov dword [ebp - 0x42c], 1
mov dword [ebp - 0x420], 0
push 4
push 0
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x424]
push eax
push 0
lea ecx, [ebp - 0x404]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 4
jl 0x40b82c
mov ecx, dword [ebp - 0x408]
sub ecx, 4
mov dword [ebp - 0x408], ecx
mov edx, dword [ebp - 0x408]
lea eax, [ebp + edx - 0x404]
push eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp - 0x42c]
mov byte [ebp + eax - 0x419], 0
movsx ecx, byte [ebp - 0x418]
cmp ecx, 0x61
je 0x40b738
movsx edx, byte [ebp - 0x418]
cmp edx, 0x41
je 0x40b738
movsx eax, byte [ebp - 0x418]
cmp eax, 0x62
je 0x40b738
movsx ecx, byte [ebp - 0x418]
cmp ecx, 0x42
jne 0x40b73d
jmp 0x40b6b0
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
je 0x40b772
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x40b772
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
jne 0x40b777
jmp 0x40b6b0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x428], eax
lea edx, [ebp - 0x41c]
push edx
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp dword [ebp - 0x41c], 0x158
jne 0x40b7cd
cmp dword [ebp - 0x430], 1
je 0x40b7d2
jmp 0x40b6b0
lea edx, [ebp - 0x418]
push edx
mov ecx, dword [ebp - 0x434]
call fcn.0040b4c7
test eax, eax
jne 0x40b827
movsx eax, word [ebp + 8]
cmp eax, dword [ebp - 0x420]
jne 0x40b818
push 0x4564fc
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x418]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
xor eax, eax
jmp 0x40b831
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
jmp 0x40b6b0
mov eax, 0xffffffa4
mov esp, ebp
pop ebp
ret 8
Function at 0x40e573
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
push edi
mov dword [ebp - 0x1a8], ecx
mov al, byte [0x52dcfc]
mov byte [ebp - 0x1a4], al
mov ecx, 0x18
xor eax, eax
lea edi, [ebp - 0x1a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x52dd00]
mov byte [ebp - 0x14], cl
xor edx, edx
mov dword [ebp - 0x13], edx
mov dword [ebp - 0xf], edx
mov dword [ebp - 0xb], edx
mov dword [ebp - 7], edx
mov word [ebp - 3], dx
mov byte [ebp - 1], dl
mov al, byte [0x52dd04]
mov byte [ebp - 0x140], al
mov ecx, 0x4a
xor eax, eax
lea edi, [ebp - 0x13f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
push ecx
push 0x104
lea edx, [ebp - 0x1a4]
push edx
push str.127.0.0.1
push str.ServerName
push 0x456600
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp + 8]
push eax
push 0x14
lea ecx, [ebp - 0x14]
push ecx
push 0x456610
push str.PORT
push 0x456620
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 8]
push edx
push 0x12c
lea eax, [ebp - 0x140]
push eax
push str.3001
push str.mMsg
push 0x456640
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCRT.dll_atol
add esp, 4
push eax
lea edx, [ebp - 0x140]
push edx
lea eax, [ebp - 0x1a4]
push eax
call dword [0x52dcbc]
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x410600
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4108c5
Capabilities:
Contain obfuscated stackstrings
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov byte [ebp - 0x224], 0x12
mov byte [ebp - 0x223], 0x34
mov byte [ebp - 0x222], 0x56
mov byte [ebp - 0x221], 0x78
mov byte [ebp - 0x220], 0x87
mov byte [ebp - 0x21f], 0x65
mov byte [ebp - 0x21e], 0x34
mov byte [ebp - 0x21d], 0x21
mov byte [ebp - 0x234], 0x12
mov byte [ebp - 0x233], 0x34
mov byte [ebp - 0x232], 0x56
mov byte [ebp - 0x231], 0x79
mov byte [ebp - 0x230], 0x97
mov byte [ebp - 0x22f], 0x65
mov byte [ebp - 0x22e], 0x34
mov byte [ebp - 0x22d], 0x21
mov dword [0x52b0e8], 1
push 0x208
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x410af3
push 0
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x22c], eax
push 2
push 0
push 0xfffffffffffffff8
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x218]
push ecx
push 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x4109f2
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410af5
push 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x410a12
xor eax, eax
jmp 0x410af5
push 2
push 0
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x218]
push edx
push 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x410a64
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410af5
push 4
push 0x1000
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x52da64], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x22c]
sub eax, dword [edx]
sub eax, 0xc
mov dword [ebp - 0x21c], eax
push 0
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [0x52da64]
push eax
mov ecx, dword [ebp - 0x228]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
jne 0x410aec
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410af5
mov eax, 1
jmp 0x410af5
xor eax, eax
mov esp, ebp
pop ebp
ret