joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026f4
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1002c28
call fcn.010028d4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x1004390
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10024ab
cmp eax, esi
jne 0x100249e
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10024ae
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002485
xor esi, esi
inc esi
mov eax, dword [0x100438c]
cmp eax, esi
jne 0x10024c1
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10024f0
mov eax, dword [0x100438c]
test eax, eax
jne 0x10024ea
mov dword [0x100438c], esi
push 0x1001194
push 0x1001188
call fcn.010023ea
pop ecx
pop ecx
test eax, eax
je 0x10024f0
jmp 0x1002618
mov dword [0x1004048], esi
mov eax, dword [0x100438c]
cmp eax, esi
jne 0x1002514
push 0x1001184
push 0x100117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100438c], 2
test ebx, ebx
jne 0x1002520
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004394], 0
je 0x1002544
push 0x1004394
call fcn.01002849
pop ecx
test eax, eax
je 0x1002544
push 0
push 2
push 0
call dword [0x1004394]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10025a0
test al, al
je 0x100255e
cmp dword [ebp - 0x1c], 0
jne 0x10025a0
mov al, byte [esi]
test al, al
je 0x100256e
cmp al, 0x20
ja 0x100256e
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100255e
test byte [ebp - 0x3c], 1
je 0x100257a
movzx eax, word [ebp - 0x38]
jmp 0x100257d
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1004044], eax
cmp dword [0x1004038], 0
jne 0x10025f4
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10025af
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10025c2
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x100254b
cmp dword [0x1004048], 0
jne 0x1002603
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004044]
jmp 0x1002624
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002919
ret
call fcn.01002a21
jmp 0x100244b
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x1001ebd
Capabilities:
Accept command line arguments

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov dword [0x10068e4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
mov ax, word [esi]
cmp ax, 0x22
push 2
pop ecx
jne 0x1001ef5
add esi, ecx
mov ax, word [esi]
test ax, ax
je 0x1001eed
cmp ax, 0x22
jne 0x1001edd
cmp word [esi], 0x22
jne 0x1001f0d
jmp 0x1001f0b
cmp ax, 0x20
jbe 0x1001f0d
add esi, ecx
cmp word [esi], 0x20
ja 0x1001efb
jmp 0x1001f0d
cmp ax, 0x20
ja 0x1001f15
add esi, ecx
mov ax, word [esi]
test ax, ax
jne 0x1001f05
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.01001d80
test eax, eax
je 0x1001f60
push dword [esp + 0x10]
call fcn.01001e2e
test eax, eax
je 0x1001f48
push dword [esp + 0x18]
push esi
push ebx
push dword [0x10068e8]
call dword [0x10068f0]
push dword [0x10068e8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [0x10068ec]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop ebx
ret 0x10
Function at 0x1001fb0
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x1001190
call fcn.01002e58
mov edi, 0x94
mov eax, edi
call fcn.01002eb0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1006904], ecx
mov eax, dword [esi + 4]
mov dword [0x1006910], eax
mov edx, dword [esi + 8]
mov dword [0x1006914], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1006908], esi
cmp ecx, 2
je 0x1002010
or esi, 0x8000
mov dword [0x1006908], esi
shl eax, 8
add eax, edx
mov dword [0x100690c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100204b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100204b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002063
cmp eax, 0x20b
je 0x1002050
mov dword [ebp - 0x1c], esi
jmp 0x1002077
cmp dword [ecx + 0x84], 0xe
jbe 0x100204b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x1002071
cmp dword [ecx + 0x74], 0xe
jbe 0x100204b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.01002e05
pop ecx
test eax, eax
jne 0x100208b
push 0x1c
call fcn.01001f8c
pop ecx
call fcn.01002d7c
test eax, eax
jne 0x100209c
push 0x10
call fcn.01001f8c
pop ecx
mov dword [ebp - 4], esi
call fcn.01002aef
test eax, eax
jge 0x10020b0
push 0x1b
call fcn.01001f67
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10070b4], eax
call fcn.010029c9
mov dword [0x10068f4], eax
call fcn.01002927
test eax, eax
jge 0x10020d6
push 8
call fcn.01001f67
pop ecx
call fcn.010026db
test eax, eax
jge 0x10020e7
push 9
call fcn.01001f67
pop ecx
call fcn.010021ad
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x10020fa
push eax
call fcn.01001f67
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.01002672
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x100211b
movzx eax, word [ebp - 0x34]
jmp 0x100211e
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.01001ebd
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x100213c
push edi
call fcn.010022cc
call fcn.010022ee
jmp 0x100216e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.01002e91
ret
Function at 0x100230c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
xor eax, eax
cmp edx, dword [eax*8 + 0x1006028]
je 0x100232c
inc eax
cmp eax, 0x12
jb 0x100231d
shl eax, 3
cmp edx, dword [eax + 0x1006028]
mov dword [ebp + 8], eax
jne 0x10024ca
mov ecx, dword [0x10068fc]
cmp ecx, 1
je 0x100249f
test ecx, ecx
jne 0x100235e
cmp dword [0x1006020], 1
je 0x100249f
cmp edx, 0xfc
je 0x10024ca
and byte [ebp - 8], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002399
push 5
pop ecx
mov esi, 0x1001504
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10c]
lea ebx, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023a8
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10023e0
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023c0
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001500
push ebx
call fcn.01003140
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023e5
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x100602c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10023fc
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01002eb0
mov edx, esp
push 6
pop ecx
mov esi, 0x10014e4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002428
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002434
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100244d
mov eax, dword [ebp + 8]
mov esi, 0x10014e0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x100602c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002468
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002474
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10014b8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01003046
add esp, 0xc
jmp 0x10024ca
mov ecx, dword [eax + 0x100602c]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10024aa
push 0
lea edx, [ebp - 4]
push edx
sub eax, esi
push eax
push ecx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003046
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1006bb0], ebx
push esi
push edi
jne 0x10030c6
push 0x1001580
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1003101
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001574
push edi
call esi
test eax, eax
mov dword [0x1006bb0], eax
je 0x1003101
push 0x1001564
push edi
call esi
push 0x1001550
push edi
mov dword [0x1006bb4], eax
call esi
cmp dword [0x1006904], 2
mov dword [0x1006bb8], eax
jne 0x10030c6
push 0x1001534
push edi
call esi
test eax, eax
mov dword [0x1006bc0], eax
je 0x10030c6
push 0x100151c
push edi
call esi
mov dword [0x1006bbc], eax
mov eax, dword [0x1006bbc]
test eax, eax
je 0x100310b
call eax
test eax, eax
je 0x10030f2
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1006bc0]
test eax, eax
je 0x10030f2
test byte [ebp - 8], 1
jne 0x100310b
cmp dword [0x1006910], 4
jb 0x1003105
or byte [ebp + 0x12], 0x20
jmp 0x100312a
xor eax, eax
jmp 0x100313a
or byte [ebp + 0x12], 4
jmp 0x100312a
mov eax, dword [0x1006bb4]
test eax, eax
je 0x100312a
call eax
mov ebx, eax
test ebx, ebx
je 0x100312a
mov eax, dword [0x1006bb8]
test eax, eax
je 0x100312a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1006bb0]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005424
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002eb0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10054b9
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1006904]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10054b9
cmp eax, 1
je 0x10054d1
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10054b9
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100548e
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10054b5
xor eax, eax
inc eax
jmp 0x10054ed
cmp esi, ebx
jae 0x10054bd
xor eax, eax
jmp 0x10054ed
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1006904]
jmp 0x10054d3
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f35
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486d50]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f99
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00402630
lea ecx, [esp + 0x14]
call fcn.00401d65
cmp eax, 0x8aafdc01
je 0x401fb1
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef5
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f68
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069ff
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403895
push eax
call fcn.00403863
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef5
jmp 0x401f9b
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
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.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
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 + 0x486948]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x486948]
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 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
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 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069ff
leave
ret
Function at 0x41eada
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 + 0x486948]
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 0x41eb1a
cmp byte [ebx], 0xa
jne 0x41eb1a
or byte [eax + edi + 0x28], 4
jmp 0x41eb1f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41ec1d
mov al, byte [edx]
cmp al, 0x1a
je 0x41ebff
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41eb4e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41eb73
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41eb7d
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 0x41eb30
jmp 0x41ec1d
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 0x41ebfa
cmp dword [ebp - 0xc], 0
je 0x41ebfa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x486948]
test byte [eax + edi + 0x28], 0x48
je 0x41ebd4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ebbf
mov byte [esi], dl
jmp 0x41ebd0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x486948]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41ec1d
cmp byte [ebp - 1], 0xa
jne 0x41ebe3
cmp esi, ebx
jne 0x41ebe3
mov byte [esi], 0xa
jmp 0x41ec1c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41ec1d
mov byte [esi], 0xd
jmp 0x41ec1c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x486948]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ec19
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ec1d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41ec26
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 + 0x486948]
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 0x41ec69
cmp word [esi], dx
jne 0x41ec69
or byte [edi + eax + 0x28], 4
jmp 0x41ec6e
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 0x41edc1
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 0x41eda1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41ecb0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ece6
cmp eax, edx
jae 0x41ecf2
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 0x41ec88
jmp 0x41edc1
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 0x41ed9d
cmp dword [ebp - 0x14], 0
je 0x41ed9d
mov eax, dword [ebx*4 + 0x486948]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ed75
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41ed3e
mov word [esi], cx
jmp 0x41ed71
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x486948]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x486948]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x486948]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41edc1
pop ebx
cmp word [ebp - 4], bx
jne 0x41ed86
cmp esi, dword [ebp + 0xc]
jne 0x41ed86
mov word [esi], bx
jmp 0x41edbe
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041878e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41edc1
push 0xd
jmp 0x41edba
mov ecx, dword [ebx*4 + 0x486948]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41edb8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41edc1
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 0x403448
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ba00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034e0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4034c0
xor eax, eax
push ebp
push 0x4034b9
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 0x4034fc
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 0x4034c0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ba00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ba00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bd04c], 0
je 0x404229
cmp word [0x4bd220], 0xd7b2
jne 0x4041f1
cmp dword [0x4bd228], 0
jbe 0x4041f1
mov eax, 0x4bd21c
call dword [0x4bd238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ba054
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 0x404250
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ba01c], 0
jne 0x404245
push 0
push 0x4ba074
push 0x4ba054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40439c
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.0040277c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4bd04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404364
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc