joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5024cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xc]
sub al, 8
jae 0x502655
call fcn.00406bb0
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x260]
cmp eax, 0xea60
jbe 0x502519
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x260], eax
mov eax, dword [ebp - 4]
mov si, 0xfff3
call fcn.00403b30
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x260], eax
mov eax, dword [ebp - 4]
call fcn.00502114
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1a0], 0
je 0x502586
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xf0]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xe8]
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x104]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0xec]
push eax
mov al, byte [ebp + 8]
push eax
mov al, byte [ebp - 0x1d]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1a0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00501f44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00502258
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14c], 0
je 0x502655
mov eax, dword [ebp - 4]
cmp dword [eax + 0x17c], 0
jle 0x502655
xor eax, eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x168]
dec edx
lea ecx, [ebp - 0x44]
mov ah, 0x20
call fcn.00403414
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
cmp eax, 0xff
ja 0x5025e2
bt dword [ebp - 0x44], eax
jae 0x502655
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x17c]
dec eax
xor edx, edx
call fcn.00506fcc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x164]
add dword [ebp - 0x10], eax
cmp dword [ebp - 0x24], 0
je 0x502623
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
call fcn.0048b458
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x502655
mov eax, dword [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add ecx, dword [eax + 0xec]
mov edx, dword [ebp - 0xc]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0xe8]
mov eax, dword [ebp - 8]
call fcn.0050e494
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x503788
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [0x52b860]
cmp eax, dword [edx]
jne 0x5037b8
call fcn.00406bb0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x154]
cmp eax, 0xbb8
seta byte [ebp - 1]
jmp 0x5037d2
call fcn.00406bb0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x154]
cmp eax, 0x7d0
seta byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x5037e6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov dword [eax + 0x16c], edx
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x505abc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [0x52b860]
cmp eax, dword [edx]
jne 0x505aec
call fcn.00406bb0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x154]
cmp eax, 0xbb8
seta byte [ebp - 1]
jmp 0x505b06
call fcn.00406bb0
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
sub eax, dword [edx + 0x154]
cmp eax, 0x7d0
seta byte [ebp - 1]
cmp byte [ebp - 1], 0
je 0x505b1a
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov dword [eax + 0x16c], edx
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x5084cc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov byte [ebp - 5], 1
call fcn.00406bb0
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x98]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x78]
jbe 0x50856d
call fcn.00406bb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x98], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x88]
dec eax
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x84]
jge 0x50856d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x88]
dec eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc8], 0
jle 0x508569
mov eax, dword [ebp - 4]
dec dword [eax + 0xc8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, dword [ebp - 4]
mov dword [edx + 0x84], eax
jmp 0x50856d
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x50bf94
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
mov byte [ebp - 1], al
mov byte [ebp - 2], 0
lea eax, [ebp - 0x102]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00403178
lea eax, [ebp - 0x102]
push eax
call fcn.00407150
test eax, eax
je 0x50bfd9
xor eax, eax
mov al, byte [ebp - 1]
test byte [ebp + eax - 0x102], 0x80
je 0x50bfd9
mov byte [ebp - 2], 1
mov al, byte [ebp - 2]
mov esp, ebp
pop ebp
ret

Function at 0x50c14c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b34
xor eax, eax
push ebp
push 0x50c249
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0xf667
mov eax, dword [ebp - 4]
call fcn.00404944
shr eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
dec eax
test eax, eax
jl 0x50c233
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov edx, 0x50c260
call fcn.0040494c
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add eax, eax
mov edx, dword [ebp - 4]
mov al, byte [edx + eax]
call fcn.0050c0f8
xor ebx, ebx
mov bl, al
shl ebx, 4
mov eax, dword [ebp - 0x10]
add eax, eax
mov edx, dword [ebp - 4]
mov al, byte [edx + eax + 1]
call fcn.0050c0f8
and eax, 0xff
add ebx, eax
mov dword [ebp - 0x18], ebx
mov al, byte [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
and edx, 0xffff
shr edx, 8
and dl, 0xff
xor al, dl
mov byte [ebp - 0x1d], al
mov eax, dword [ebp - 8]
call fcn.00404b9c
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x1d]
mov byte [eax + edx], cl
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x18]
imul eax, eax, 0xce6d
and eax, 0xffff
add eax, 0x58bf
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x10]
dec dword [ebp - 0x24]
jne 0x50c1a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c250
lea eax, [ebp - 4]
call fcn.00404684
ret
Function at 0x50c264
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b34
xor eax, eax
push ebp
push 0x50c3a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404944
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0xf667
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jl 0x50c37f
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
movzx eax, byte [eax + edx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
and eax, 0xffff
shr eax, 8
xor dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xf0
shr eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
and eax, 0xf
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
push dword [eax]
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x50c3bc
call fcn.00409cf4
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
lea edx, [ebp - 0x38]
xor ecx, ecx
mov eax, 0x50c3bc
call fcn.00409cf4
push dword [ebp - 0x3c]
mov eax, dword [ebp - 8]
mov edx, 3
call fcn.00404a04
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
imul eax, eax, 0xce6d
and eax, 0xffff
add eax, 0x58bf
mov dword [ebp - 0x28], eax
inc dword [ebp - 0x14]
dec dword [ebp - 0x2c]
jne 0x50c2d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c3ac
lea eax, [ebp - 0x3c]
call fcn.00404684
lea eax, [ebp - 0x30]
call fcn.00404684
lea eax, [ebp - 4]
call fcn.00404684
ret
Function at 0x406160
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x406181
jl 0x406178
test edi, edi
jne 0x406181
xor eax, eax
xor edx, edx
jmp 0x406242
cmp dword [ebx + 0x38], 0
je 0x406196
push eax
push edi
push dword [ebp + 8]
call fcn.00406248
jmp 0x406242
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4061dd
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4061dd
cmp eax, edi
jb 0x4061b7
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004083c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4061e3
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406237
mov ecx, ebx
call fcn.004059b0
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406222
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fcf0
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406237
jmp 0x4061f5
test edx, edx
je 0x406237
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fcf0
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x407b54
Capabilities:
Parse pe header

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

Function at 0x414b0d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428b4c
push 0x428b44
push str.FlsAlloc
push 0x1e
call fcn.0041493a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414b41
push dword [ebp + 8]
mov ecx, esi
call dword [0x425154]
call esi
jmp 0x414b47
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414b8b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x428b5c
push 0x428b54
push str.FlsGetValue
push 0x20
call fcn.0041493a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414bc2
push dword [ebp + 8]
mov ecx, esi
call dword [0x425154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41862d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041849e

Function at 0x418a27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407ed0
mov eax, dword [0x430040]
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.0041673b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418a69
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x418bc5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004236f0
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 + 0x47d2b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00419a1e
mov ecx, dword [esi*4 + 0x47d2b0]
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 0x418bbe
cmp eax, dword [edi + ecx + 0x24]
jne 0x418bbe
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 0x418bbe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00419a1e
add esp, 0x14
test edx, edx
jl 0x418bbe
jg 0x418b34
test eax, eax
jb 0x418bbe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418bbe
jl 0x418b4e
cmp dword [ebp - 0x1008], eax
ja 0x418bbe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x418b6c
test ebx, ebx
je 0x418ba5
cmp ecx, edi
jae 0x418ba5
mov al, byte [ecx]
cmp al, 0xd
jne 0x418b86
lea eax, [edi - 1]
cmp ecx, eax
jae 0x418b92
cmp byte [ecx + 1], 0xa
jne 0x418b92
inc ecx
jmp 0x418b92
movzx eax, al
movsx eax, byte [eax + 0x430310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x418b6c
cmp edx, ebx
jne 0x418b6c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x418bc3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407363
leave
ret
Function at 0x418ebc
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 + 0x47d2b0]
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 0x418efc
cmp byte [ebx], 0xa
jne 0x418efc
or byte [eax + edi + 0x28], 4
jmp 0x418f01
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418fff
mov al, byte [edx]
cmp al, 0x1a
je 0x418fe1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418f30
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418f55
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418f5f
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 0x418f12
jmp 0x418fff
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 0x418fdc
cmp dword [ebp - 0xc], 0
je 0x418fdc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47d2b0]
test byte [eax + edi + 0x28], 0x48
je 0x418fb6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x418fa1
mov byte [esi], dl
jmp 0x418fb2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d2b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x418fff
cmp byte [ebp - 1], 0xa
jne 0x418fc5
cmp esi, ebx
jne 0x418fc5
mov byte [esi], 0xa
jmp 0x418ffe
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419a3c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418fff
mov byte [esi], 0xd
jmp 0x418ffe
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47d2b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x418ffb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418fff
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419008
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 + 0x47d2b0]
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 0x41904b
cmp word [esi], dx
jne 0x41904b
or byte [edi + eax + 0x28], 4
jmp 0x419050
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 0x4191a3
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 0x419183
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x419092
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4190c8
cmp eax, edx
jae 0x4190d4
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 0x41906a
jmp 0x4191a3
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 0x41917f
cmp dword [ebp - 0x14], 0
je 0x41917f
mov eax, dword [ebx*4 + 0x47d2b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419157
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x419120
mov word [esi], cx
jmp 0x419153
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47d2b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47d2b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47d2b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4191a3
pop ebx
cmp word [ebp - 4], bx
jne 0x419168
cmp esi, dword [ebp + 0xc]
jne 0x419168
mov word [esi], bx
jmp 0x4191a0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419a3c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4191a3
push 0xd
jmp 0x41919c
mov ecx, dword [ebx*4 + 0x47d2b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41919a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4191a3
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 0x41bcef
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 0x41bd8c
push ebx
push esi
call fcn.0041bcb8
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.0041a93d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41bd39
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bd8b
push edi
push eax
call fcn.0041584a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41bd59
call fcn.0041465f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41bd8a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a93d
add esp, 0x20
test eax, eax
jne 0x41bd78
push edi
call fcn.0041465f
jmp 0x41bd80
push ebx
call fcn.0041465f
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 0x4234f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42351d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42351d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x424570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.00407376
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax], 0x424430
push ecx
push 0
push eax
push 0x404dc0
push 0
push 0
call fcn.0040bb7c
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
je 0x424684
cmp dword [esp + 0x10], 0
je 0x424693
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x42469a
push 0
push ecx
push dword [esp + 0x14]
call fcn.00406c33
add esp, 0xc
test eax, eax
jne 0x4246a1
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
xor ecx, ecx
movlpd qword [esp + 0xc], xmm0
mov dword [esp + 0x18], eax
lea edi, [eax + 0x64]
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
mov esi, 2
nop dword [eax]
cmp eax, ecx
je 0x424623
mov dword [eax], 0
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x42463a
lea ecx, [esp + 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.004048f0
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub esi, 1
jne 0x424610
sub edi, 1
jne 0x424607
mov edx, dword [esp + 0x14]
test edx, edx
je 0x424675
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x42466b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4246a8
push ecx
push edx
call fcn.004073a6
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x4246ad
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [esp + 0x14], 0
call fcn.00404faf
push 1
call fcn.00404faf
push 5
call fcn.00404faf
push 2
call fcn.00404faf
call fcn.0040f1cf
call fcn.0040e4fb
int3
Function at 0x433770
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x433799
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4337a8
mov eax, 1
ret 4

Function at 0x433db6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ce40
push 0x433db0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x446748], 0xffffffff
or dword [0x44674c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x444730]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x44472c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x446744], eax
call fcn.004d9000
cmp dword [0x444420], 0
jne 0x433e39
push 0x433ef6
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00433ee4
push 0x444034
push 0x444030
call sub.MSVCRT.dll__initterm
mov eax, dword [0x444728]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x444724]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x44402c
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.004312ef
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret