joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1f3c3da2
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4cdc651d
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x46d970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
or ebp, 0xffffffff
jmp 0x46d992
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x46d999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d988
mov eax, 1
add ebx, ebx
jne 0x46d9ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x46d9bc
jne 0x46d9db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d9db
dec eax
add ebx, ebx
jne 0x46d9c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x46d9a0
add ebx, ebx
jne 0x46d9d7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x46da2d
xor ecx, ecx
sub eax, 3
jb 0x46d9f3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46da62
sar eax, 1
mov ebp, eax
jmp 0x46d9fe
add ebx, ebx
jne 0x46d9fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d9cc
inc ecx
add ebx, ebx
jne 0x46da0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x46d9cc
add ebx, ebx
jne 0x46da19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x46da0e
jne 0x46da2a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x46da0e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x46da4c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x46da3e
jmp 0x46d98e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x46da4c
add edi, ecx
jmp 0x46d98e
pop esi
mov edi, esi
mov ecx, 0x1120
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x46da6a
cmp byte [edi], 7
jne 0x46da6a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46da6f
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x46dade
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7a2a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7a350]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46da9c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7a358]
or eax, eax
je 0x46dad8
mov dword [ebx], eax
add ebx, 4
jmp 0x46dab9
call dword [esi + 0x7a354]
mov ebp, dword [esi + 0x7a35c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x46db12
sub esp, 0xffffff80
jmp 0x430410
Function at 0x401541
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea eax, [ebp - 0x22c]
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.00408a2a
sub esp, 0x10
test eax, eax
jne 0x4016a1
test byte [ebp + 0x10], 2
mov eax, dword [ebp - 0x22c]
je 0x4015d7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x228], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x228]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x401642
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015ff
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401541
sub esp, 0xc
test eax, eax
jne 0x401659
mov dword [esp + 0xc], 0x105
lea edx, [ebp - 0x222]
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401659
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015e5
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4016a1
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], 3
call fcn.004092c7
push edx
test eax, eax
jne 0x40168b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ecx
push ecx
jmp 0x4016a1
mov dword [esp + 8], edi
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x404671
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test eax, eax
js 0x4046b1
add eax, dword [0x418178]
xor edx, edx
mov dword [0x7aaa74], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub esp, 0x10
mov dword [esp], 4
call fcn.0040449b
push edi
test eax, eax
mov edi, eax
js 0x4047c5
mov dword [esp + 8], 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00408859
sub esp, 0xc
test eax, eax
jne 0x4046f5
mov edi, 0xfffffffd
jmp 0x4047c5
mov eax, dword [ebp - 0x1c]
add dword [0x7aaa74], 4
mov dword [esp], eax
call fcn.0040449b
test eax, eax
mov edi, eax
push ecx
js 0x4047c5
test ebx, ebx
mov eax, dword [ebp - 0x1c]
jne 0x404782
mov eax, dword [ebp - 0x1c]
test eax, eax
jle 0x4047c5
mov edx, 0x4000
cmp eax, edx
cmovg eax, edx
mov dword [ebp - 0x20], eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4281a0
mov eax, dword [0x40b010]
mov dword [esp], eax
call fcn.00408859
sub esp, 0xc
test eax, eax
je 0x4046eb
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x4281a0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0040889d
sub esp, 0xc
test eax, eax
je 0x4047c0
mov eax, dword [ebp - 0x20]
sub dword [ebp - 0x1c], eax
add dword [0x7aaa74], eax
add edi, eax
jmp 0x404719
mov dword [esp + 4], ebx
xor edx, edx
cmp eax, esi
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x20]
cmovg eax, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [0x40b010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x4046eb
mov edi, dword [ebp - 0x20]
add dword [0x7aaa74], edi
jmp 0x4047c5
mov edi, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x408420
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
xor ecx, ecx
lea eax, [ebp - 0x18]
sub esp, 0x48
mov dword [0x7c9a20], 0x44
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x7c9a20
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x40848c
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x408490
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], edx
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x408702
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
mov ebx, eax
inc eax
je 0x408730
mov dword [esp], esi
mov eax, ebx
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x40873b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.00408702
push ecx
cmp eax, 0xffffffff
je 0x408790
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x408788
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
push edx
jne 0x408781
test byte [ebp + 0xc], 4
jne 0x408790
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x408790
mov eax, 1
jmp 0x408792
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408765
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40879b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x4087b6
xor eax, eax
mov dword [esp + 0x14], eax
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc
Function at 0x4087ef
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, 0x64
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], 0x73006e
mov dword [ebp - 0xc], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
div ecx
xor eax, eax
add word [ebp - 0xc], dx
mov dword [esp + 8], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
sub esp, 0x10
test eax, eax
jne 0x40884e
dec esi
jne 0x4087ff
mov word [ebx], 0
xor ebx, ebx
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8

Function at 0x408859
Capabilities:
Read file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x408896
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x40889d
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x4088da
xor eax, eax
cmp dword [ebp - 0xc], ebx
sete al
mov ebx, dword [ebp - 4]
leave
ret 0xc

Function at 0x408ade
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea eax, [ebp - 0x14]
sub esp, 0x30
mov dword [ebp - 0x10], 0x2000
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
xor eax, eax
cmp dword [ebp + 0x18], 0
setne al
shl eax, 8
or eax, 0x20019
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408a2a
sub esp, 0x10
test eax, eax
je 0x408b2c
mov word [ebx], 0
jmp 0x408b7f
mov dword [esp + 0x10], ebx
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x14]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
push edx
mov word [ebx + 0x1ffe], 0
jne 0x408b25
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
ja 0x408b25
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0x14
Function at 0x409187
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov eax, dword [ebp + 8]
mov dword [esp], 0x7c5a20
mov dword [esp + 4], eax
call fcn.00408c58
push ebx
push ebx
mov dword [esp], 0x7c5a20
call fcn.004085e8
push edx
test eax, eax
jne 0x4091b8
xor eax, eax
jmp 0x409232
mov dword [esp], eax
mov ebx, eax
call fcn.00408d14
push ecx
test byte [0x41812c], 0x80
je 0x4091d8
movzx eax, word [ebx]
test eax, eax
je 0x4091b4
cmp eax, 0x5c
je 0x4091b4
sub ebx, 0x7c5a20
sar ebx, 1
mov dword [esp], 0x7c5a20
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
cmp ebx, eax
mov dword [esp], 0x7c5a20
jge 0x409217
call fcn.0040914f
push edx
test eax, eax
je 0x409208
test byte [eax], 0x10
je 0x4091b4
mov dword [esp], 0x7c5a20
call fcn.00408577
push eax
jmp 0x4091e0
call fcn.00408c8c
push eax
mov dword [esp], 0x7c5a20
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
inc eax
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x409239
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea ebx, [ebp - 0x244]
sub esp, 0x254
mov dword [esp + 4], 0x104
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edx
push edx
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x409277
xor edx, edx
cmp word [ebp + eax*2 - 0x246], 0x5c
sete dl
jmp 0x40927e
xor eax, eax
mov edx, 1
mov ecx, dword [ebp + 8]
add edx, edx
add eax, eax
mov dword [esp + 4], str._s_S.dll
add edx, 0x40d460
add eax, ebx
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call dword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
mov dword [esp], ebx
mov dword [esp + 8], 8
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret 4
Function at 0x409c88
Capabilities:
Hash data with crc32

Disassembly:
push ebp
cmp dword [0x7c9a84], 0
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
jne 0x409cc5
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
shr esi, 1
and eax, 1
je 0x409cb0
mov eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x409ca2
mov dword [ecx*4 + 0x7c9a80], eax
inc ecx
cmp ecx, 0x100
jne 0x409c9b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
cmp edx, ebx
je 0x409ce7
mov cl, byte [edx]
inc edx
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7c9a80]
jmp 0x409ccf
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x401080
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x4032d0
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401190
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push 0x4da78
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4011ad
pop esi
pop ebx
pop ecx
ret
push edi
mov ecx, 0x1369e
add esi, 0x4da90
mov edi, ebx
push str.VirtualProtect
push str.KERNEL32.dll
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x4da78
push ebx
call eax
push 0
push 0
push ebx
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x401220
Capabilities:
Create tcp socket
Create thread
Resolve dns

Disassembly:
sub esp, 0x10
push edi
push 6
push 1
mov edi, ecx
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x401243
xor eax, eax
pop edi
add esp, 0x10
ret 8
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x20]
push esi
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
push ebx
mov esi, eax
mov word [esp + 0x14], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0xc]
push str.connect
mov ecx, dword [eax]
mov eax, dword [0x405428]
push eax
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [edi + 8]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
call eax
cmp eax, 0xffffffff
jne 0x4012b3
mov eax, dword [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [edi + 0xc]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40124e
push 0
push 0
push edi
push 0x4012e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
add esp, 0x10
ret 8
Function at 0x401790
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x4026db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
push 0x40532c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0
push 0x405318
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ax, word [0x405314]
mov cl, byte [0x405316]
push 0x9b508
mov word [esp + 0xc], ax
mov byte [esp + 0xe], cl
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
mov dword [esp + 0x18], 0
je 0x401803
mov ecx, eax
call fcn.00401080
mov esi, eax
jmp 0x401805
xor esi, esi
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00401200
test eax, eax
je 0x401826
lea edx, [esp + 8]
push 3
push edx
mov ecx, esi
call fcn.00401130
mov eax, dword [esi + 0x4da8c]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
jne 0x401844
push 0x64
call edi
mov eax, dword [esi + 0x4da8c]
test eax, eax
je 0x401836
push 0xffffffffffffffff
call edi
mov ecx, dword [esp + 0x10]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x402a09
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4029f3
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
je 0x4029f3
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x4029d3
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x402a07
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402a1f
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
cmp eax, 0x20
jle 0x402a1f
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
jmp 0x402a09
mov edx, dword [ebp - 0x4c]
movsx eax, byte [edx]
test eax, eax
je 0x402a3f
mov ecx, dword [ebp - 0x4c]
movsx edx, byte [ecx]
cmp edx, 0x20
jg 0x402a3f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
jmp 0x402a1f
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402ae0
push 0x404004
push section..data
call fcn.00402ab0
add esp, 8
mov edx, dword [ebp - 0x1c]
and edx, 1
je 0x402a78
movzx eax, word [ebp - 0x18]
mov dword [ebp - 0x54], eax
jmp 0x402a7f
mov dword [ebp - 0x54], 0xa
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x50], eax
call fcn.00402b50
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]