joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b97e
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x436194]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov eax, dword [0x436800]
mov edi, dword [ebp + 8]
cmp eax, dword [ecx + 4]
jg 0x40bad0
cmp dword [0x4367e0], 0
jne 0x40baa2
lea eax, [ebp - 0x418]
push eax
push 0x20019
push 0
push 0x405e18
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40babf
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0x405da4
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x418]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ba30
mov eax, esi
jmp 0x40babf
xor esi, esi
inc esi
cmp dword [ebp - 0x41c], esi
je 0x40ba8b
cmp dword [ebp - 0x41c], 2
je 0x40ba4b
mov eax, 0x80040153
jmp 0x40babf
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40ba71
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40babf
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
mov ecx, 0x436804
push eax
call fcn.0040bcb0
mov dword [0x4367e0], esi
mov eax, dword [0x436804]
test eax, eax
je 0x40baaf
lock inc dword [eax + 8]
mov ecx, edi
call fcn.0040a461
mov eax, dword [0x436804]
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ce40
leave
ret 4
mov esi, 0x436800
push esi
call fcn.00430ad4
cmp dword [0x436800], 0xffffffff
pop ecx
jne 0x40b9b2
push 0x432f10
call fcn.0041cf31
push esi
call fcn.00430a81
pop ecx
pop ecx
jmp 0x40b9b2
Function at 0x411047
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov ecx, dword [ebp + 8]
push esi
mov esi, 0x4074d0
mov edx, esi
call fcn.00415640
push eax
call fcn.0040e907
pop ecx
mov edx, 0x407394
mov ecx, eax
call fcn.00415640
push eax
call fcn.0040e907
pop ecx
mov edx, esi
mov ecx, eax
call fcn.00415640
push eax
call fcn.0040e907
pop ecx
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [esp + 4]
mov ecx, dword [ebp + 8]
push eax
call fcn.0041253d
push eax
call fcn.0040e907
pop ecx
movzx ecx, word [esp + 0x24]
push ecx
mov ecx, eax
call fcn.0041253d
push eax
call fcn.0040e907
pop ecx
movzx ecx, word [esp + 0x26]
push ecx
mov ecx, eax
call fcn.0041253d
push eax
call fcn.0040e907
pop ecx
mov edx, esi
mov ecx, eax
call fcn.00415640
push eax
call fcn.0040e907
pop ecx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x412140
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x431699
call fcn.00430bca
mov esi, ecx
mov dword [ebp - 0x34], esi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
cmp bx, di
jne 0x412165
xor eax, eax
jmp 0x4122dc
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x412191
mov edx, dword [esi + 0x34]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x412191
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x24]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
jmp 0x4122dc
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4122d9
xor ecx, ecx
cmp dword [esi + 0x3c], ecx
jne 0x4121be
push eax
push edi
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x4122d9
movzx ebx, di
jmp 0x4122d9
push ecx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x2c]
push 8
mov word [ebp - 0x30], di
mov dword [ebp - 0x14], 0xf
call fcn.00414847
and dword [ebp - 4], 0
lea eax, [esi + 0x44]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x4121f6
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [esi + 0x3c]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebp - 0x40]
mov ecx, dword [esi + 0x14]
push eax
lea eax, [ebp - 0x2e]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [0x437364]
mov ecx, edi
call dword [esi + 0x14]
test eax, eax
js 0x4122cd
cmp eax, 1
jg 0x4122a9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x412240
lea edx, [ebp - 0x28]
mov edi, dword [ebp - 0x3c]
sub edi, edx
je 0x41226e
cmp eax, 0x10
jae 0x41224f
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x34]
push dword [esi + 0x4c]
push edi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4122a1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
jmp 0x412271
mov esi, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x40], edx
jne 0x41229b
test edi, edi
jne 0x4121ea
cmp dword [ebp - 0x18], 0x20
jae 0x4122a4
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004132fc
jmp 0x4121e4
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
movzx ebx, bx
jmp 0x4122ca
cmp eax, 3
jne 0x4122cd
mov eax, dword [ebp - 0x34]
push dword [eax + 0x4c]
push dword [ebp - 0x30]
call dword [sym.imp.msvcrt.dll_fputwc]
pop ecx
pop ecx
cmp ax, bx
je 0x4122ca
mov eax, dword [ebp + 8]
movzx ebx, ax
movzx ebx, bx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00416636
mov ax, bx
call fcn.00430b79
ret 4
Function at 0x4133c0
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x431820
call fcn.00430bca
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
je 0x4134cf
cmp byte [ebx + 0x42], 0
je 0x4134cf
mov esi, 0xffff
push esi
call fcn.00412140
movzx eax, ax
cmp si, ax
jne 0x4133fc
xor al, al
jmp 0x4134d1
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00414847
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, ecx
cmp eax, 0x10
jae 0x41342c
lea edx, [ebp - 0x28]
mov ecx, edx
mov edi, dword [ebx + 0x3c]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
add eax, edx
mov esi, dword [edi]
push eax
push ecx
lea eax, [ebx + 0x44]
mov ecx, dword [esi + 0x18]
push eax
call dword [0x437364]
mov ecx, edi
call dword [esi + 0x18]
sub eax, 0
je 0x413462
sub eax, 1
je 0x413466
dec eax
sub eax, 1
je 0x4134bd
xor bl, bl
jmp 0x4134bf
mov byte [ebx + 0x42], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
mov edx, ecx
cmp eax, 0x10
jae 0x413476
lea edx, [ebp - 0x28]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x41349f
cmp eax, 0x10
jae 0x413485
lea ecx, [ebp - 0x28]
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x41345e
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
cmp byte [ebx + 0x42], 0
je 0x4134bd
test esi, esi
jne 0x413420
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004132fc
jmp 0x41341a
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00416636
mov al, bl
jmp 0x4134d1
mov al, 1
call fcn.00430b79
ret
Function at 0x41886f
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x7c
mov eax, 0x431e26
call fcn.00430bca
mov edi, ecx
mov al, byte [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 0x74], al
movzx eax, al
mov dword [ebp - 0x6c], eax
cmp byte [eax + edi + 0x1c], 0
jne 0x418990
xor edx, edx
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x80], edx
lea eax, [ebp - 0x64]
mov dword [ebp - 4], edx
push eax
push 0x20019
push edx
push ecx
push dword [edi + 0x124]
mov dword [ebp - 0x64], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4189a6
mov ebx, dword [ebp - 0x64]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x88], ebx
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x68], 0x50
push eax
push 0
push 0x407c0c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41899f
cmp dword [ebp - 0x70], 1
jne 0x418998
cmp dword [ebp - 0x68], 2
jb 0x418998
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x64]
call fcn.004189d1
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x41895e
mov esi, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp - 0x6c]
mov ecx, dword [esi + 0x24]
push eax
call dword [0x437364]
call dword [esi + 0x24]
test eax, eax
js 0x4189b0
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x74]
lea ecx, [edi + 4]
call fcn.0041bbdc
test eax, eax
js 0x4189b0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 0
test eax, eax
je 0x418976
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x437364]
call esi
mov eax, dword [ebp - 0x6c]
mov byte [eax + edi + 0x1c], 1
mov dword [ebp - 4], 2
test ebx, ebx
je 0x418990
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00430b79
ret 8
mov ecx, 0x8007000d
jmp 0x4189b2
cmp eax, 2
je 0x418976
test eax, eax
jle 0x4189b0
movzx eax, ax
or eax, 0x80070000
mov ecx, eax
call fcn.0041b8a1
int3
Function at 0x419e54
Capabilities:
Create directory
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x436194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0x4080d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x419f17
lea edi, [ebx + ebx]
xor esi, esi
test edi, edi
je 0x419ec3
cmp edi, dword [0x436828]
ja 0x419ec3
mov ecx, dword [0x436830]
lea eax, [edi + 8]
add ecx, eax
cmp ecx, edi
jb 0x419ec3
call fcn.0040aa83
test eax, eax
je 0x419ec3
lea eax, [edi + 8]
call fcn.00430d20
mov esi, esp
test esi, esi
je 0x419ec3
mov dword [esi], 0x6b637453
add esi, 8
jne 0x419eee
lea eax, [edi + 8]
cmp eax, edi
jb 0x419eea
mov esi, dword [0x43682c]
mov ecx, esi
push eax
call dword [0x437364]
call esi
mov esi, eax
test esi, esi
je 0x419f17
mov dword [esi], 0x70616548
add esi, 8
test esi, esi
je 0x419f17
push ebx
push esi
push 0x4080d4
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x419f0f
cmp eax, ebx
jae 0x419f0f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 8]
call fcn.00419cbf
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ce40
leave
ret
Function at 0x41cfe4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x4349f8
call fcn.0041d298
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41d044
cmp eax, 0xffffffff
je 0x41d044
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41d03d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41d03d
cmp edx, 0x10000000
jae 0x41d03d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41d03a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d0a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41d0de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41d0d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41d0e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41d0c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41d1b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41d1e1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d1e1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41d1e1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x6881351a
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x65133ca7
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x818058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8181a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81806a
add dl, dl
jne 0x818089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8180dc
xor eax, eax
add dl, dl
jne 0x818096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81817d
add dl, dl
jne 0x8180a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8180d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x818075
mov eax, 1
add dl, dl
jne 0x8180ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8180f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8180e1
sub eax, ebx
mov ebx, 1
jne 0x818128
mov ecx, 1
add dl, dl
jne 0x81810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x818119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x818136
cmp eax, 0x7d00
jae 0x81816d
cmp eax, 0x500
jb 0x818168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
cmp eax, 0x7f
ja 0x818170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x818075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81819e
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 0x818075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x38fd33a0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x20bd1739
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x402450
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x402475
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, 0x4030a8
sub ecx, 0x4030a4
sar ecx, 2
push ecx
push 0x4030a4
call fcn.00402560
add esp, 8
mov edx, 0x4030a0
sub edx, 0x40309c
sar edx, 2
push edx
push 0x40309c
call fcn.00402560
add esp, 8
mov eax, dword [ebp - 0x1c]
and eax, 1
je 0x4024cf
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x54], ecx
jmp 0x4024d6
mov dword [ebp - 0x54], 0xa
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x50]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x4c], eax
mov ecx, dword [0x40368c]
push ecx
mov edx, dword [0x403688]
push edx
call fcn.004025a0
add esp, 8
mov eax, dword [0x403688]
push eax
call fcn.00402420
add esp, 4
mov ecx, 0x4030b0
sub ecx, 0x4030ac
sar ecx, 2
push ecx
push 0x4030ac
call fcn.00402560
add esp, 8
mov edx, 0x4030b8
sub edx, 0x4030b4
sar edx, 2
push edx
push 0x4030b4
call fcn.00402560
add esp, 8
call fcn.004025d0
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
mov ecx, 0x25f612c2
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x239740cf
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402e35
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x401420
call fcn.00403038
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402e72
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402e72
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402e8a
cmp eax, 0x20b
je 0x402e77
mov dword [ebp - 0x1c], ebx
jmp 0x402e9e
cmp dword [ecx + 0x84], 0xe
jbe 0x402e72
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x402e98
cmp dword [ecx + 0x74], 0xe
jbe 0x402e72
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x404204], 0xffffffff
or dword [0x404208], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x404154]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x404150]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40420c], eax
call fcn.0040302e
cmp dword [0x4040b0], ebx
jne 0x402ef9
push fcn.0040302e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00403017
push 0x404010
push 0x40400c
call sub.msvcrt.dll__initterm
mov eax, dword [0x40414c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x404148]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x404008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x402f8f
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x402f63
cmp al, 0x22
jne 0x402f55
cmp byte [esi], 0x22
jne 0x402f6c
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x402f76
cmp al, 0x20
jbe 0x402f68
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x402f9a
movzx eax, word [ebp - 0x50]
jmp 0x402f9d
cmp byte [esi], 0x20
jbe 0x402f6c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402f8f
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x402fba
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x402fef
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00403073
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219