joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403100
Capabilities:
Create thread

Disassembly:
sub esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00405a28
add esp, 4
test eax, eax
je 0x40311f
mov dword [eax], 0x402ed0
jmp 0x403121
xor eax, eax
lea ecx, [esp + 4]
push ecx
push 0
push eax
push 0x401750
push 0
push 0
call fcn.0040b0d5
add esp, 0x18
mov dword [esp], eax
test eax, eax
je 0x40316c
cmp dword [esp + 4], 0
je 0x40317b
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x403182
push 0
push ecx
push dword [esp + 8]
call fcn.00403295
add esp, 0xc
test eax, eax
jne 0x403189
add esp, 8
ret
push 6
mov dword [esp + 8], 0
call fcn.0040344b
push 1
call fcn.0040344b
push 5
call fcn.0040344b
push 2
call fcn.0040344b
int3

Function at 0x406663
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4066a2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4066a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4066a2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4066a2
cmp dword [ecx + 0x74], 0xe
jbe 0x4066a2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x410f76
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4214ec
push 0x4214e4
push str.FlsAlloc
push 0x1e
call fcn.00410da3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410faa
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e15c]
call esi
jmp 0x410fb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410ff4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4214fc
push 0x4214f4
push str.FlsGetValue
push 0x20
call fcn.00410da3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41102b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41e15c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411e7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411b1e

Function at 0x411e87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411cad
Function at 0x413696
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004067d0
mov eax, dword [0x471900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00411af7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4136d8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x413834
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ce80
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x473418]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00413abc
mov ecx, dword [esi*4 + 0x473418]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41382d
cmp eax, dword [edi + ecx + 0x24]
jne 0x41382d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41382d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00413abc
add esp, 0x14
test edx, edx
jl 0x41382d
jg 0x4137a3
test eax, eax
jb 0x41382d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41382d
jl 0x4137bd
cmp dword [ebp - 0x1008], eax
ja 0x41382d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4137db
test ebx, ebx
je 0x413814
cmp ecx, edi
jae 0x413814
mov al, byte [ecx]
cmp al, 0xd
jne 0x4137f5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x413801
cmp byte [ecx + 1], 0xa
jne 0x413801
inc ecx
jmp 0x413801
movzx eax, al
movsx eax, byte [eax + 0x472280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4137db
cmp edx, ebx
jne 0x4137db
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x413832
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405a66
leave
ret
Function at 0x41689a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x416937
push ebx
push esi
call fcn.00416863
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415467
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4168e4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416936
push edi
push eax
call fcn.00413c5d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416904
call fcn.00410ac8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416935
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415467
add esp, 0x20
test eax, eax
jne 0x416923
push edi
call fcn.00410ac8
jmp 0x41692b
push ebx
call fcn.00410ac8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x419a39
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x473418]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419a79
cmp byte [ebx], 0xa
jne 0x419a79
or byte [eax + edi + 0x28], 4
jmp 0x419a7e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x419b7c
mov al, byte [edx]
cmp al, 0x1a
je 0x419b5e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x419aad
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419ad2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x419adc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x419a8f
jmp 0x419b7c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419b59
cmp dword [ebp - 0xc], 0
je 0x419b59
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x473418]
test byte [eax + edi + 0x28], 0x48
je 0x419b33
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419b1e
mov byte [esi], dl
jmp 0x419b2f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x473418]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419b7c
cmp byte [ebp - 1], 0xa
jne 0x419b42
cmp esi, ebx
jne 0x419b42
mov byte [esi], 0xa
jmp 0x419b7b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413ada
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419b7c
mov byte [esi], 0xd
jmp 0x419b7b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x473418]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419b78
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419b7c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419b85
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x473418]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419bc8
cmp word [esi], dx
jne 0x419bc8
or byte [edi + eax + 0x28], 4
jmp 0x419bcd
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419d20
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419d00
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419c0f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419c45
cmp eax, edx
jae 0x419c51
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419be7
jmp 0x419d20
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x419cfc
cmp dword [ebp - 0x14], 0
je 0x419cfc
mov eax, dword [ebx*4 + 0x473418]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419cd4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419c9d
mov word [esi], cx
jmp 0x419cd0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x473418]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x473418]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x473418]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419d20
pop ebx
cmp word [ebp - 4], bx
jne 0x419ce5
cmp esi, dword [ebp + 0xc]
jne 0x419ce5
mov word [esi], bx
jmp 0x419d1d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00413ada
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419d20
push 0xd
jmp 0x419d19
mov ecx, dword [ebx*4 + 0x473418]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419d17
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419d20
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ce40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41ce6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41ce6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1000b62c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10033659
call fcn.1003081d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.10008905
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x1000b68c
call fcn.10008f1c
mov esi, eax
jmp 0x1000b764
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.kernel32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1000b6aa
call fcn.10008f1c
jmp 0x1000b75b
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x1000b6a0
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp - 0x41c], esi
cmp eax, esi
jae 0x1000b6dd
mov esi, 0x8007000e
jmp 0x1000b75d
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.1001dc40
mov dword [ebp - 4], 1
jmp 0x1000b711
cmp dword [ebp - 0x418], 0
je 0x1000b6d3
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1000b6a0
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.1001dc40
mov esi, eax
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000b77d
lea ecx, [ebp - 0x418]
call fcn.1000b831
lea ecx, [ebp - 0x428]
call fcn.10008e55
mov eax, esi
call fcn.10030888
ret 0x10

Function at 0x10019cb3
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
test ecx, ecx
je 0x10019cbf
lea esi, [ecx - 8]
jmp 0x10019cc1
xor esi, esi
lea eax, [esi + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp dword [esi + 0x64], 0
je 0x10019cdb
push 0
push dword [esi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
ret 8

Function at 0x1001dc40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1001dc4f
pop dword [ebp - 0xc]
mov eax, 0x1001dc4f
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3b6e0
push 0
mov eax, 0x28a57ab7
sub eax, 0x18a56a07
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x37c0
mov edx, eax
mov esi, 0x1011f200
add esi, dword [ebp - 0xc]
mov ebx, 0xba3e7ae7
add ebx, 0x8976ad65
xor dword [ebp - 4], edi
mov edi, dword [esi]
mov dword [ebp - 4], 0x68fd37bc
sub edi, ebx
xor dword [ebp - 8], ecx
mov dword [edx], edi
sub dword [ebp - 4], edx
add edx, 4
add esi, 0x8fe4a69b
add esi, 0x701b5969
loop 0x1001dc9d
add eax, 0x18f6fdfb
add eax, 0xe709d3d8
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xa0a199c9
sub ecx, 0x90a199c9
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x1002bffe
Capabilities:
Create thread

Disassembly:
mov edi, edi
push esi
xor eax, eax
push eax
push eax
mov esi, ecx
push esi
push 0x1002bfb1
push eax
push eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x30], eax
pop esi
test eax, eax
jne 0x1002c055
mov eax, dword [0x1003b034]
cmp eax, 0x1003b034
je 0x1002c052
test byte [eax + 0xdc], 1
je 0x1002c052
push 0x10005024
push 0x10006b38
push 0x14
push dword [eax + 0xd4]
push dword [eax + 0xd0]
call fcn.1001dc40
add esp, 0x14
xor eax, eax
ret
xor eax, eax
inc eax
ret

Function at 0x1002c455
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push edi
mov edi, ecx
mov eax, dword [0x1003b034]
cmp eax, 0x1003b034
je 0x1002c48f
test byte [eax + 0xdc], 4
je 0x1002c48f
push 0x10005024
push 0x10006b38
push 0x1b
push dword [eax + 0xd4]
push dword [eax + 0xd0]
call fcn.1001dc40
add esp, 0x14
mov ecx, edi
call fcn.1002c4fb
cmp dword [edi + 0x28], 0
je 0x1002c4b8
cmp dword [edi + 0x2c], 0
je 0x1002c4b8
push 0
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x24]
push 0
call fcn.1001dc40
xor eax, eax
pop edi
ret 0x10

Function at 0x1003074f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003b498]
jne 0x10030759
repz ret
jmp fcn.1003062d

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

Disassembly:
jmp 0x100311da
mov eax, dword [0x1003ba60]
push esi
push edi
test eax, eax
jne 0x100311f3
call fcn.10031167
test eax, eax
je 0x10031233
mov eax, dword [0x1003ba60]
cmp eax, 1
jne 0x1003120f
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x10031233
jmp 0x10031275
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10031275
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10031237
xor eax, eax
jmp 0x10031275
mov eax, dword [esi]
push dword [0x1003ba60]
call edi
mov edi, eax
test edi, edi
je 0x10031259
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x10031275
lea edi, [esi + 0xff0]
push esi
push dword [0x1003ba60]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1003125f
mov eax, esi
pop edi
pop esi
ret
Function at 0x401090
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
push ebx
push ebp
mov ebp, dword [edi + 4]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0xc], 0
cmp dx, word [eax + 6]
jae 0x40114c
add esi, 0xc
mov eax, dword [esi + 4]
test eax, eax
jne 0x4010f9
mov eax, dword [esp + 0x18]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x401132
mov ecx, dword [edi + 0x34]
mov edx, dword [esi]
mov eax, dword [edi + 0x1c]
push ecx
push 4
push 0x1000
add edx, ebp
push ebx
push edx
call eax
add esp, 0x14
test eax, eax
je 0x401156
mov eax, dword [esi]
push ebx
add eax, ebp
push 0
push eax
mov dword [esi - 4], eax
call fcn.00401e70
jmp 0x40112f
mov ecx, dword [edi + 0x34]
mov edx, dword [esi]
push ecx
push 4
push 0x1000
push eax
mov eax, dword [edi + 0x1c]
add edx, ebp
push edx
call eax
add esp, 0x14
test eax, eax
je 0x401156
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
add edx, dword [esp + 0x14]
mov ebx, dword [esi]
push ecx
add ebx, ebp
push edx
push ebx
call fcn.00401b00
mov dword [esi - 4], ebx
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [esp + 0xc]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x4010b8
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x401230
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x20]
push ebx
mov ebx, dword [edx + 0x3c]
push ebp
push esi
mov esi, dword [edx]
movzx eax, word [esi + 0x14]
push edi
lea edi, [eax + esi + 0x18]
mov eax, dword [edi + 8]
dec ebx
not ebx
and ebx, eax
mov ecx, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
call fcn.00401160
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x20], eax
mov eax, 1
add edi, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], 1
cmp ax, word [esi + 6]
jae 0x40133b
lea esp, [esp]
mov esi, dword [edx + 0x3c]
mov eax, dword [edi + 8]
dec esi
not esi
mov ecx, edi
mov dword [esp + 0x10], eax
and esi, eax
call fcn.00401160
mov ebp, eax
cmp ebx, esi
je 0x4012e6
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
add ecx, edx
cmp ecx, esi
ja 0x4012e6
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x18]
call fcn.00401180
test eax, eax
je 0x40135c
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x24]
mov ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
jmp 0x401315
mov eax, dword [edi + 0x24]
test eax, 0x2000000
je 0x401300
test dword [esp + 0x24], 0x2000000
je 0x401300
or dword [esp + 0x24], eax
jmp 0x40130d
or eax, dword [esp + 0x24]
and eax, 0xfdffffff
mov dword [esp + 0x24], eax
sub ebp, dword [esp + 0x18]
add ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov ecx, dword [edx]
mov eax, dword [esp + 0x14]
movzx edx, word [ecx + 6]
inc eax
add edi, 0x28
cmp eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], eax
jl 0x401290
lea ecx, [esp + 0x18]
mov eax, edx
mov dword [esp + 0x28], 1
call fcn.00401180
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x401ae9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427640]
jne 0x401af3
repz ret
jmp fcn.00402b4c

Function at 0x406b16
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404f6f
and dword [ebp - 4], 0
cmp dword [0x428c14], 0
mov ebx, eax
jne 0x406bc7
push 0x4098ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406c78
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4098e0
push edi
call esi
test eax, eax
je 0x406c78
push eax
call fcn.00404efd
mov dword [esp], 0x4098d0
push edi
mov dword [0x428c14], eax
call esi
push eax
call fcn.00404efd
mov dword [esp], 0x4098bc
push edi
mov dword [0x428c18], eax
call esi
push eax
call fcn.00404efd
mov dword [esp], 0x4098a0
push edi
mov dword [0x428c1c], eax
call esi
push eax
call fcn.00404efd
pop ecx
mov dword [0x428c24], eax
test eax, eax
je 0x406bc7
push 0x409888
push edi
call esi
push eax
call fcn.00404efd
pop ecx
mov dword [0x428c20], eax
mov eax, dword [0x428c20]
cmp eax, ebx
je 0x406c1f
cmp dword [0x428c24], ebx
je 0x406c1f
push eax
call fcn.00404f78
push dword [0x428c24]
mov esi, eax
call fcn.00404f78
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c1f
test edi, edi
je 0x406c1f
call esi
test eax, eax
je 0x406c16
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c16
test byte [ebp - 0xc], 1
jne 0x406c1f
or dword [ebp + 0x10], 0x200000
jmp 0x406c58
mov eax, dword [0x428c18]
cmp eax, ebx
je 0x406c58
push eax
call fcn.00404f78
pop ecx
test eax, eax
je 0x406c58
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406c58
mov eax, dword [0x428c1c]
cmp eax, ebx
je 0x406c58
push eax
call fcn.00404f78
pop ecx
test eax, eax
je 0x406c58
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428c14]
call fcn.00404f78
pop ecx
test eax, eax
je 0x406c78
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406c7a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

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 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 0x401290
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
and esp, 0xfffffff0
mov eax, 0
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401710
call sym.___main
mov dword [esp], str.cd_c:_MFT_test
call sub.msvcrt.dll_system
mov eax, 0
leave
ret

Function at 0x4018b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init