joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4093e0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.0040ff24
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
lea eax, [edi + 0xc]
mov dword [ebp - 0x34], eax
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
lea eax, [edi + 0x14]
mov dword [ebp - 0x30], eax
mov dword [edi + 0x14], ebx
mov word [edi + 0x18], bx
lea eax, [edi + 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [edi + 0x1c], ebx
mov word [edi + 0x20], bx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x30], bl
lea eax, [edi + 0x24]
mov dword [ebp - 0x28], eax
lea eax, [edi + 0x2c]
mov dword [ebp - 0x24], eax
test esi, esi
mov dword [ebp - 0x20], edi
je 0x4040a3
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.00410207
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.00410471
add esp, 4
nop
push ebp
sub esp, 8
add ebp, 0xc
mov ecx, dword [ebp - 0x24]
call fcn.00404190
mov ecx, dword [ebp - 0x28]
call fcn.00404190
mov ecx, dword [ebp - 0x2c]
call fcn.00404190
mov ecx, dword [ebp - 0x30]
call fcn.00404190
mov ecx, dword [ebp - 0x34]
call fcn.00404190
mov ecx, dword [ebp - 0x38]
call fcn.00404190
mov ecx, dword [ebp - 0x20]
call fcn.0040ff7c
add esp, 8
pop ebp
ret
Function at 0x420eca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bfb8
push 0x43bfb0
push str.FlsAlloc
push 0x1e
call fcn.00420d37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420efe
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f14c]
call esi
jmp 0x420f04
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x420f48
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43bfc8
push 0x43bfc0
push str.FlsGetValue
push 0x20
call fcn.00420d37
mov esi, eax
add esp, 0x10
test esi, esi
je 0x420f7f
push dword [ebp + 8]
mov ecx, esi
call dword [0x42f14c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x42227f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004220f0

Function at 0x422679
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00411b60
mov eax, dword [0x445c48]
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.004206e6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4226bb
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x422817
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042df40
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 + 0x44a330]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00423670
mov ecx, dword [esi*4 + 0x44a330]
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 0x422810
cmp eax, dword [edi + ecx + 0x24]
jne 0x422810
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 0x422810
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423670
add esp, 0x14
test edx, edx
jl 0x422810
jg 0x422786
test eax, eax
jb 0x422810
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x422810
jl 0x4227a0
cmp dword [ebp - 0x1008], eax
ja 0x422810
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4227be
test ebx, ebx
je 0x4227f7
cmp ecx, edi
jae 0x4227f7
mov al, byte [ecx]
cmp al, 0xd
jne 0x4227d8
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4227e4
cmp byte [ecx + 1], 0xa
jne 0x4227e4
inc ecx
jmp 0x4227e4
movzx eax, al
movsx eax, byte [eax + 0x4482f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4227be
cmp edx, ebx
jne 0x4227be
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x422815
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410ba9
leave
ret
Function at 0x422b0e
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 + 0x44a330]
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 0x422b4e
cmp byte [ebx], 0xa
jne 0x422b4e
or byte [eax + edi + 0x28], 4
jmp 0x422b53
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x422c51
mov al, byte [edx]
cmp al, 0x1a
je 0x422c33
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x422b82
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x422ba7
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x422bb1
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 0x422b64
jmp 0x422c51
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 0x422c2e
cmp dword [ebp - 0xc], 0
je 0x422c2e
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x44a330]
test byte [eax + edi + 0x28], 0x48
je 0x422c08
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x422bf3
mov byte [esi], dl
jmp 0x422c04
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x44a330]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x422c51
cmp byte [ebp - 1], 0xa
jne 0x422c17
cmp esi, ebx
jne 0x422c17
mov byte [esi], 0xa
jmp 0x422c50
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042368e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422c51
mov byte [esi], 0xd
jmp 0x422c50
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x44a330]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422c4d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422c51
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x422c5a
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 + 0x44a330]
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 0x422c9d
cmp word [esi], dx
jne 0x422c9d
or byte [edi + eax + 0x28], 4
jmp 0x422ca2
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 0x422df5
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 0x422dd5
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x422ce4
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x422d1a
cmp eax, edx
jae 0x422d26
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 0x422cbc
jmp 0x422df5
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 0x422dd1
cmp dword [ebp - 0x14], 0
je 0x422dd1
mov eax, dword [ebx*4 + 0x44a330]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x422da9
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x422d72
mov word [esi], cx
jmp 0x422da5
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x44a330]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x44a330]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x44a330]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x422df5
pop ebx
cmp word [ebp - 4], bx
jne 0x422dba
cmp esi, dword [ebp + 0xc]
jne 0x422dba
mov word [esi], bx
jmp 0x422df2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042368e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x422df5
push 0xd
jmp 0x422dee
mov ecx, dword [ebx*4 + 0x44a330]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x422dec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x422df5
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 0x425be1
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 0x425c7e
push ebx
push esi
call fcn.00425baa
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.0042495a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x425c2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425c7d
push edi
push eax
call fcn.0041f7f5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425c4b
call fcn.0041f192
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425c7c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042495a
add esp, 0x20
test eax, eax
jne 0x425c6a
push edi
call fcn.0041f192
jmp 0x425c72
push ebx
call fcn.0041f192
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 0x42cc30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42cd3c
test eax, eax
je 0x42cd3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x447ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x42cd23
lea edi, [eax + 4]
jmp 0x42cc87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x42cc9c
mov dword [ebp - 4], 2
jmp 0x42ccbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x42ccb3
mov dword [ebp - 4], 1
jmp 0x42ccbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x42cd33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x42ccf6
mov byte [ecx], 0x3d
jmp 0x42cd02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x42cd0d
mov byte [ecx], 0x3d
jmp 0x42cd13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x42cc84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x4028b1
pop dword [ebp - 0x38]
mov eax, 0x98879acd
sub eax, 0x9847721c
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x864999af
add dword [ebp - 0x48], 0xc808ab9c
mov dword [ebp - 0x44], 0x2ddaf101
add dword [ebp - 0x44], 0x4585b44
mov dword [ebp - 0x40], 0x78770337
add dword [ebp - 0x40], 0xd3d540f7
mov dword [ebp - 0x3c], 0x3c855b77
add dword [ebp - 0x3c], 0xc37aa489
lea eax, [ebp - 0x48]
push eax
mov eax, 0xa2495e4
sub eax, 0x9e425c8
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x7e207450
sub dword [ebp - 0x48], 0x9ae0afa
mov dword [ebp - 0x44], 0xfe4159e8
sub dword [ebp - 0x44], 0xbcd4f873
mov dword [ebp - 0x40], 0x9c2aafdb
add dword [ebp - 0x40], 0xc744bc91
mov dword [ebp - 0x3c], 0x17e77729
add dword [ebp - 0x3c], 0xe81888d7
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x5a1e8257
sub eax, 0x59de1237
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3afc0
push 0
call eax
mov ecx, 0x5513
xor esi, esi
add esi, eax
mov edi, 0x55599179
sub edi, 0x5518c979
add edi, dword [ebp - 0x38]
mov ebx, 0xa6a3843d
sub ebx, 0xac7f46a3
xor dword [ebp - 0x20], 0x33a37154
mov edx, dword [edi]
sub dword [ebp - 0x28], 0x119c8d72
add edx, ebx
add dword [ebp - 0x10], 0xd53b82b6
mov dword [esi], edx
xor dword [ebp - 0x28], eax
add esi, 0xe6ef39df
sub esi, 0xe6ef39db
add edi, 4
loop 0x4029cf
add eax, 0x95c8d8e6
add eax, 0x6a386e39
xor ebx, ebx
add ebx, eax
add eax, 0x16863770
add eax, 0xe979c895
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004028a2
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004028a2
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym.unk_610
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40999c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409970
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040daa0
call fcn.0040cbe0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40c9b8
jmp 0x40ca56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40c9b7
cmp cl, 0x22
je 0x40ca10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ca30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40c9f0
jmp 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ca10
cmp cl, 0x22
je 0x40ca92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ca50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ca40
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ca74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.unk_9
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ca30

Function at 0x40cf40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4466c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40cf80
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x41a141
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x41a150
pop dword [ebp - 0x50]
mov eax, 0x522a0e5b
sub eax, 0x51e86d0b
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3ea0c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x4b65
xor esi, esi
add esi, eax
mov edi, 0x60188a84
add edi, 0xa02ac97c
add edi, dword [ebp - 0x50]
mov ebx, 0xb69bbde9
sub ebx, 0xb5be3c24
xor dword [ebp - 0x40], 0xdd60c099
mov edx, dword [edi]
add edx, ebx
add dword [ebp - 0x34], 0xc5bf18f8
mov dword [esi], edx
xor dword [ebp - 0x48], ecx
add esi, 0x3aa50db7
add esi, 0xc55af24d
add edi, 0x2e9cd13f
sub edi, 0x2e9cd13b
loop 0x41a1a6
add eax, 0xc5a40012
add eax, 0x3a5d2055
mov ebx, eax
add eax, 0xbacbe05f
add eax, 0x45341fa6
mov ecx, 0x7b7558ae
sub ecx, 0x7b3558ae
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x403508
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x403517
pop dword [ebp - 0x34]
mov eax, 0xebc63488
add eax, 0x147a008f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x32ff460f
sub dword [ebp - 0x44], 0xe4ad00c4
mov dword [ebp - 0x40], 0x7ff3922b
sub dword [ebp - 0x40], 0x4dc045e6
mov dword [ebp - 0x3c], 0x75cc6d9
sub dword [ebp - 0x3c], 0xbb1082ab
mov dword [ebp - 0x38], 0xc5a0932b
add dword [ebp - 0x38], 0x3a5f6cd5
lea eax, [ebp - 0x44]
push eax
mov eax, 0xa085833a
sub eax, 0xa044b2ee
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xfd3949d5
sub dword [ebp - 0x44], 0x88c6e07f
mov dword [ebp - 0x40], 0x65c71e98
add dword [ebp - 0x40], 0xdba542dd
mov dword [ebp - 0x3c], 0x14d308a3
add dword [ebp - 0x3c], 0x4e9c63c9
mov dword [ebp - 0x38], 0xf79a7224
sub dword [ebp - 0x38], 0xf79a7224
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xc97a6b44
add eax, 0x36c66504
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3b320
push 0
call eax
mov ecx, 0xf986df22
add ecx, 0x6796f8a
mov edx, eax
mov ebx, 0x4f1a2ab0
sub ebx, 0x4ed87ab0
add ebx, dword [ebp - 0x34]
mov esi, 0x49f9a020
mov dword [ebp - 0x1c], 0x512d6a6d
mov edi, dword [ebx]
mov dword [ebp - 4], 0x4448822c
add edi, esi
add dword [ebp - 0x24], 0xb0daa196
mov dword [edx], edi
xor dword [ebp - 0x1c], 0xb7e21d91
add edx, 0x84482e6b
sub edx, 0x84482e67
add ebx, 4
loop 0x403633
add eax, 0x3ab444de
sub eax, 0x3ab3175b
xor ebx, ebx
add ebx, eax
add eax, 0xf741f21e
add eax, 0x8be0de7
mov ecx, 0x41f2310d
add ecx, 0xbe4dcef3
add ecx, dword [ebp - 0x34]
call ebx
leave
ret