joyce8/EMBER2024-capa huggingface dataset:
Function at 0x578b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594690
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x61b660]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x60], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0x64
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x60]
add eax, 0x84
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x14], 0x10
jb 0x578bb2
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0x64], eax
jmp 0x578bb8
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x64], ecx
push 0x5a72a0
mov edx, dword [ebp - 0x64]
push edx
call fcn.0052a3b8
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x578be3
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x1c]
sub eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x578bef
cmp dword [ebp - 0x14], 0
je 0x578b94
cmp dword [ebp - 0x14], 0
jne 0x578c7d
xor ecx, ecx
je 0x578c08
push 0x63a8c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
je 0x578c16
mov dword [0x63a8d8], 0x1d5
xor eax, eax
je 0x578c3d
push str.SocketDownLoad.cpp
call fcn.005291f0
add esp, 4
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
push str.SocketDownLoad.cpp
mov ecx, 0x63a8dc
call fcn.004064c0
xor edx, edx
je 0x578c76
mov eax, dword [ebp - 0x60]
add eax, 0x84
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + 0x14], 0x10
jb 0x578c5f
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0x68], eax
jmp 0x578c65
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
push edx
push 0x5ecd7c
call fcn.00575290
add esp, 8
xor al, al
jmp 0x578d35
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.0052a280
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0052a526
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00529f1b
add esp, 4
mov al, 1
jmp 0x578d35
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x448570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x448570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x401250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b54d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x64]
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jl 0x401353
mov edx, dword [ebp - 0x64]
push edx
lea ecx, [ebp - 0x28]
call fcn.00407ba0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x5d]
call fcn.00406ed0
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040ee50
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x74], eax
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040e300
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x58]
call fcn.004038b0
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov eax, dword [ebp - 0x5c]
or eax, 1
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004094d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004094f0
mov eax, dword [ebp + 8]
jmp 0x40138e
push 0x42d29c
lea ecx, [ebp - 0x40]
call fcn.00407770
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov edx, dword [ebp - 0x5c]
or edx, 1
mov dword [ebp - 0x5c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004094d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412a42
mov esp, ebp
pop ebp
ret 8
Function at 0x401cf0
Capabilities:
Change the wallpaper

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b715
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x29]
call fcn.00406ed0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040ee00
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040e2b0
mov ecx, dword [eax]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.00403780
mov dword [ebp - 4], 0
push 3
lea ecx, [ebp - 0x28]
call fcn.0040e3c0
push eax
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, dword [ebp + 8]
call fcn.00406ed0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004094f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412a42
mov esp, ebp
pop ebp
ret 8
Function at 0x401dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b759
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x43c064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x42d794
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jl 0x401ec4
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00407ba0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea ecx, [ebp - 0x5d]
call fcn.00406ed0
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ee50
mov ecx, dword [eax]
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x74], edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e300
mov ecx, dword [eax]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
mov edx, dword [ebp - 0x78]
push edx
lea ecx, [ebp - 0x58]
call fcn.004038b0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov edx, dword [ebp - 0x5c]
or edx, 1
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.004094d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004094f0
mov eax, dword [ebp + 8]
jmp 0x401eff
push 0x42d29c
lea ecx, [ebp - 0x40]
call fcn.00407770
mov dword [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406e70
mov ecx, dword [ebp - 0x5c]
or ecx, 1
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004094d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412a42
mov esp, ebp
pop ebp
ret 4

Function at 0x413106
Capabilities:
Parse pe header

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

Function at 0x41da16
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430778
push 0x430770
push str.FlsAlloc
push 0x1e
call fcn.0041d883
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41da4a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d174]
call esi
jmp 0x41da50
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41da94
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x430788
push 0x430780
push str.FlsGetValue
push 0x20
call fcn.0041d883
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41dacb
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41f175
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041efe6

Function at 0x41f56f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00412a70
mov eax, dword [0x43c064]
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.0041e049
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41f5b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41f70d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042b220
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 + 0x43ead0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042054c
mov ecx, dword [esi*4 + 0x43ead0]
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 0x41f706
cmp eax, dword [edi + ecx + 0x24]
jne 0x41f706
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 0x41f706
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042054c
add esp, 0x14
test edx, edx
jl 0x41f706
jg 0x41f67c
test eax, eax
jb 0x41f706
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41f706
jl 0x41f696
cmp dword [ebp - 0x1008], eax
ja 0x41f706
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41f6b4
test ebx, ebx
je 0x41f6ed
cmp ecx, edi
jae 0x41f6ed
mov al, byte [ecx]
cmp al, 0xd
jne 0x41f6ce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41f6da
cmp byte [ecx + 1], 0xa
jne 0x41f6da
inc ecx
jmp 0x41f6da
movzx eax, al
movsx eax, byte [eax + 0x43c2e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41f6b4
cmp edx, ebx
jne 0x41f6b4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41f70b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412a42
leave
ret
Function at 0x41fa04
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 + 0x43ead0]
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 0x41fa44
cmp byte [ebx], 0xa
jne 0x41fa44
or byte [eax + edi + 0x28], 4
jmp 0x41fa49
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41fb47
mov al, byte [edx]
cmp al, 0x1a
je 0x41fb29
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41fa78
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41fa9d
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41faa7
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 0x41fa5a
jmp 0x41fb47
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 0x41fb24
cmp dword [ebp - 0xc], 0
je 0x41fb24
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x43ead0]
test byte [eax + edi + 0x28], 0x48
je 0x41fafe
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41fae9
mov byte [esi], dl
jmp 0x41fafa
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x43ead0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41fb47
cmp byte [ebp - 1], 0xa
jne 0x41fb0d
cmp esi, ebx
jne 0x41fb0d
mov byte [esi], 0xa
jmp 0x41fb46
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042056a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41fb47
mov byte [esi], 0xd
jmp 0x41fb46
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x43ead0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fb43
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fb47
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41fb50
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 + 0x43ead0]
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 0x41fb93
cmp word [esi], dx
jne 0x41fb93
or byte [edi + eax + 0x28], 4
jmp 0x41fb98
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 0x41fcd1
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 0x41fcb1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41fbda
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fc10
cmp eax, edx
jae 0x41fc1c
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 0x41fbb2
jmp 0x41fcd1
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 0x41fcad
cmp dword [ebp - 0x14], 0
je 0x41fcad
mov eax, dword [ebx*4 + 0x43ead0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41fc85
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x41fccb
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x43ead0]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x43ead0]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x43ead0]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x41fcce
pop ebx
cmp word [ebp - 4], bx
jne 0x41fc96
cmp esi, dword [ebp + 0xc]
jne 0x41fc96
mov word [esi], bx
jmp 0x41fcce
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0042056a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41fcd1
push 0xd
jmp 0x41fcca
mov ecx, dword [ebx*4 + 0x43ead0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41fcc8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41fcd1
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 0x424f98
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 0x425035
push ebx
push esi
call fcn.00424f61
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.00423d11
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x424fe2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425034
push edi
push eax
call fcn.00420749
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x425002
call fcn.0041d54b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x425033
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00423d11
add esp, 0x20
test eax, eax
jne 0x425021
push edi
call fcn.0041d54b
jmp 0x425029
push ebx
call fcn.0041d54b
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 0x42a645
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a5c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42a7bd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42a7bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42a76c
jg 0x42a69e
test eax, eax
je 0x42a762
push 1
push 0x1000
call fcn.0041d585
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42a6c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42a759
push 0x8000
push ebx
call fcn.0041af13
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42a6f0
jg 0x42a6eb
cmp ecx, 0x1000
jb 0x42a6f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ede6
add esp, 0x10
cmp eax, 0xffffffff
je 0x42a735
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42a6eb
jl 0x42a71c
test ecx, ecx
jne 0x42a6dd
push dword [ebp - 0xc]
push ebx
call fcn.0041af13
push esi
call fcn.0041d54b
add esp, 0xc
xor edi, edi
jmp 0x42a7ce
cmp byte [edi + 0x24], 0
je 0x42a74c
cmp dword [edi + 0x20], 5
jne 0x42a74c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42a757
mov edi, dword [edi + 0x18]
jmp 0x42a759
xor edi, edi
push esi
call fcn.0041d54b
pop ecx
jmp 0x42a7ce
test ecx, ecx
jg 0x42a72e
jl 0x42a76c
test eax, eax
jae 0x42a72e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042056a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42a78f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a72e
jmp 0x42a7c6
push ebx
call fcn.00425a07
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a72e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42a7ce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a7cb
mov edi, dword [edi + 0x18]
jmp 0x42a7ce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042056a
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b20d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b20d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402a14
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040416c
test esi, esi
jne 0x402a4a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040425c
jmp 0x402a68
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402928
mov edi, eax
test esi, esi
je 0x402a68
cmp dword [ebx], 0
je 0x402a68
dec esi
jmp 0x402a51
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403288
xor eax, eax
push ebp
push 0x403281
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403288
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f6c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d048], 0
je 0x403fcd
cmp word [0x47d21c], 0xd7b2
jne 0x403f95
cmp dword [0x47d224], 0
jbe 0x403f95
mov eax, 0x47d218
call dword [0x47d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403ff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47b030], 0
jne 0x403fe9
push 0
push 0x47b06c
push 0x47b074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026ec
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47d049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4040e8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc