joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4069f8
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x406a9e
cmp dword [ebx + 4], 0xffffffff
jne 0x406a9e
lea esi, [ebx + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406a25
sub eax, edx
sar eax, 1
movzx eax, word [ebx + eax*2 + 0x242]
cmp ax, 0x5c
je 0x406a5c
cmp ax, 0x2f
je 0x406a5c
dec esi
dec esi
mov ax, word [esi + 2]
inc esi
inc esi
test ax, ax
jne 0x406a49
mov edi, esi
mov esi, 0x426bd8
movsd dword es:[edi], dword [esi]
push 0x18
call fcn.00411d55
and dword [eax + 0x14], 0
and dword [eax + 7], 0
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
push eax
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0x10], ecx
call fcn.00405f72
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x406aa3
mov eax, 0x1000000
pop edi
pop esi
pop ecx
ret 8

Function at 0x410748
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b094]
jne 0x410752
repz ret
jmp fcn.00413667

Function at 0x41c5ee
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00415a97
and dword [ebp - 4], 0
cmp dword [0x42db20], 0
mov ebx, eax
jne 0x41c69f
push 0x4257a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41c750
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425794
push edi
call esi
test eax, eax
je 0x41c750
push eax
call fcn.00415a25
mov dword [esp], 0x425784
push edi
mov dword [0x42db20], eax
call esi
push eax
call fcn.00415a25
mov dword [esp], 0x425770
push edi
mov dword [0x42db24], eax
call esi
push eax
call fcn.00415a25
mov dword [esp], 0x425754
push edi
mov dword [0x42db28], eax
call esi
push eax
call fcn.00415a25
pop ecx
mov dword [0x42db30], eax
test eax, eax
je 0x41c69f
push 0x42573c
push edi
call esi
push eax
call fcn.00415a25
pop ecx
mov dword [0x42db2c], eax
mov eax, dword [0x42db2c]
cmp eax, ebx
je 0x41c6f7
cmp dword [0x42db30], ebx
je 0x41c6f7
push eax
call fcn.00415aa0
push dword [0x42db30]
mov esi, eax
call fcn.00415aa0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41c6f7
test edi, edi
je 0x41c6f7
call esi
test eax, eax
je 0x41c6ee
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41c6ee
test byte [ebp - 0xc], 1
jne 0x41c6f7
or dword [ebp + 0x10], 0x200000
jmp 0x41c730
mov eax, dword [0x42db24]
cmp eax, ebx
je 0x41c730
push eax
call fcn.00415aa0
pop ecx
test eax, eax
je 0x41c730
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41c730
mov eax, dword [0x42db28]
cmp eax, ebx
je 0x41c730
push eax
call fcn.00415aa0
pop ecx
test eax, eax
je 0x41c730
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42db20]
call fcn.00415aa0
pop ecx
test eax, eax
je 0x41c750
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41c752
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00406c70
call fcn.00406c00
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 0x406a48
jmp 0x406ae6
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x406a47
cmp cl, 0x22
je 0x406aa0
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x406ac0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x406a80
jmp 0x406ac0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x406aa0
cmp cl, 0x22
je 0x406b22
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x406ae0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x406ad0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x406b04
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 fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x406ac0

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

Disassembly:
pushal
nop
mov eax, section..text
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x40ed1679
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..text_1
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x76c977fa
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x9d8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009d81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9d807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d806a
add dl, dl
jne 0x9d8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d80dc
xor eax, eax
add dl, dl
jne 0x9d8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9d817d
add dl, dl
jne 0x9d80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9d80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9d8075
mov eax, 1
add dl, dl
jne 0x9d80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9d80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d80e1
sub eax, ebx
mov ebx, 1
jne 0x9d8128
mov ecx, 1
add dl, dl
jne 0x9d810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9d8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9d813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9d814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9d8136
cmp eax, 0x7d00
jae 0x9d816d
cmp eax, 0x500
jb 0x9d8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d8075
cmp eax, 0x7f
ja 0x9d8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9d8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9d819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9d8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

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

Disassembly:
pushal
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4104e5
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
call fcn.0040f3b0
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [sym.imp.MSVCRT.dll___argc]
cmp dword [eax], 1
jle 0x410591
push 0x40cfa4
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
mov dword [ebp - 0x108], 1
jmp 0x410540
mov eax, dword [ebp - 0x108]
inc eax
mov dword [ebp - 0x108], eax
mov eax, dword [sym.imp.MSVCRT.dll___argc]
mov ecx, dword [ebp - 0x108]
cmp ecx, dword [eax]
jge 0x410582
mov eax, dword [sym.imp.MSVCRT.dll___argv]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x108]
push dword [eax + ecx*4]
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push 0x40ec70
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x410533
push 0xa
lea eax, [ebp - 0x104]
push eax
call dword [0x401530]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
call fcn.0040f83f
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x3e8
idiv ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x40ec74
push 0x7f
push 0
push 4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4105df
xor eax, eax
jmp 0x410624
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x410227
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040fb06
push 1
pop eax
test eax, eax
je 0x410622
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x410611
xor eax, eax
leave
ret 0x10

Function at 0x805f18
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x805f1e
pop ebp
sub ebp, 6
sub ebp, 0x405f18
jmp 0x805f7c
jmp 0x805f85
mov eax, 0x405f18
add eax, ebp
add eax, 0x93
mov ecx, 0x615
mov edx, 0x96d8a8f4
xor byte [eax], dl
inc eax
dec ecx
jne 0x805f9c
jmp 0x805faf
sahf
mov ah, 0x9c
hlt
Function at 0x10002c6c
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp byte [ebp + 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x24], ebx
je 0x10002cb8
mov byte [esp + 0xf], 0
cmp byte [esp + 0xf], 0
je 0x10002d9a
push 0x17ac
push 0x1e0e
push 0x183a
push 0x5ac
push 0x15c9
call dword [sym.imp.GDI32.dll_Rectangle]
jmp 0x10002d9a
mov dword [esp + 0x1c], 0x1add
cmp dword [esp + 0x1c], 0x1e7b
jle 0x10002d5e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
xor esi, esi
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x14], edi
xor ebx, ebx
mov dword [esp + 0x20], esi
mov ecx, edi
mov dword [esp + 0x10], ebx
shl esi, cl
mov edi, ebx
mov ebx, 0x9ab
mov eax, edi
lea ecx, [esp + 0x28]
and eax, esi
cdq
push edx
push eax
call fcn.10001a65
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10002d0f
mov eax, dword [eax]
push eax
call fcn.10049ba3
pop ecx
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.10004a46
dec edi
dec ebx
jne 0x10002cf5
mov ebx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 0x5d60
jl 0x10002cee
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x14], edi
cmp edi, 0x7aa
jl 0x10002ce0
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x3a03
jl 0x10002cda
mov ebx, dword [esp + 0x24]
cmp dword [esp + 0x1c], 0x1abc
jge 0x10002d73
push str.jadikd_gmwzgdr_ougxm_nkx_bjgsnaec_jqhzz_jupwmcndb
call fcn.10049ba3
pop ecx
push 0x1a
pop ecx
cmp dword [ebx], ecx
jge 0x10002d84
mov eax, dword [ebp + 0x18]
movzx edx, word [eax]
add edx, dword [ebx]
jmp 0x10002d91
mov eax, dword [ebx]
cdq
idiv ecx
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add edx, eax
mov ecx, dword [ebp + 0x10]
push edx
call fcn.10004443
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002ded
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
cmp byte [ebp + 0x18], 0
push ebx
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], edi
je 0x10002ecc
mov dword [esp + 0x10], 0x76be
cmp dword [esp + 0x10], 0x7794
push 0
pop esi
jle 0x10002e84
mov ebx, esi
mov edi, esi
mov ecx, esi
mov dword [esp + 0xc], esi
mov eax, edi
sar eax, cl
lea ecx, [esp + 0x18]
xor eax, ebx
cdq
push edx
push eax
call fcn.10001a65
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x10002e44
mov eax, dword [eax]
push eax
call fcn.10049ba3
pop ecx
push esi
push 1
lea ecx, [esp + 0x20]
call fcn.10004a46
mov ecx, dword [esp + 0xc]
inc ecx
mov dword [esp + 0xc], ecx
cmp ecx, 0x8f3
jl 0x10002e28
inc edi
cmp edi, 0xa67
jl 0x10002e22
inc ebx
cmp ebx, 0x5798
jl 0x10002e20
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, dword [esp + 0x14]
cmp byte [ebp + 0x1c], 0
je 0x10002ea8
mov dword [edi], esi
cmp dword [edi], 2
jge 0x10002eb5
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi]
mov eax, dword [edx]
mov dword [eax + ecx*4], 9
inc dword [edi]
cmp dword [edi], 2
jl 0x10002e94
jmp 0x10002eb5
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp dword [esp + 0x10], 0x7531
jge 0x10002f1e
push str.gjfai_mals_sof_xwbxbbdo_mgyp_ulnv_fdqnql_pxtsbb_lppicmmk_epydf_ntkibfini_mrpxvviao
call fcn.10049ba3
pop ecx
jmp 0x10002f1e
cmp byte [ebp + 8], 0
je 0x10002ee3
cmp byte [ecx], 0
je 0x10002f1e
xor esi, esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x10002f1e
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffeb
cmp dword [ecx], 0xfffffff6
jl 0x10002f1e
mov edx, dword [ebp + 0x14]
xor esi, esi
mov dword [esp + 0xc], 0xf6f6d779
mov eax, dword [esp + 0xc]
cmp dword [esp + 0xc], esi
je 0x10002f11
cmp dword [edx], esi
je 0x10002f11
xor eax, eax
inc eax
jmp 0x10002f13
mov eax, esi
mov dword [esp + 0xc], eax
inc dword [ecx]
cmp dword [ecx], 0xfffffff6
jge 0x10002ef6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002f4f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0xc], 0
push esi
mov esi, edx
je 0x10002f70
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x10002f8d
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10002f8d
mov edx, dword [ebp + 8]
mov dword [edx], 0
jmp 0x10002f88
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 0x11ca4b38
inc dword [edx]
cmp dword [edx], 1
jl 0x10002f7b
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100032e8
Capabilities:
Get disk size

Disassembly:
mov eax, 0x10060c56
call fcn.10060598
push ecx
push ecx
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, edx
mov byte [ebp - 0x14], cl
je 0x100033aa
mov dword [ebp + 8], 0x830
cmp dword [ebp + 8], 0xa9d
jle 0x10003342
xor esi, esi
xor edi, edi
mov ecx, edi
mov eax, esi
shl eax, cl
mov ecx, 0x1007c0d8
cdq
push edx
push eax
call fcn.100042cb
inc edi
cmp edi, 0x2ff3
jl 0x1000331d
inc esi
cmp esi, 0x1e1b
jl 0x1000331b
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x634
jge 0x1000335e
mov edx, str.kdw_znct_wspa_bhotdbj
mov ecx, 0x1007c0d8
call fcn.10006d07
mov eax, dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
push 0x1a
pop esi
mov ecx, dword [eax]
cmp ecx, esi
jge 0x10003392
mov eax, dword [ebp + 0x10]
movzx edx, word [eax]
add edx, ecx
jmp 0x1000339f
mov eax, ecx
cdq
idiv esi
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
add edx, eax
mov ecx, dword [ebp + 0x14]
push edx
call fcn.10004443
jmp 0x100033dd
test cl, cl
je 0x100033cd
mov edx, dword [ebp + 0x1c]
mov dword [edx], 0
jmp 0x100033c6
mov ecx, dword [edx]
mov eax, dword [esi]
mov dword [eax + ecx*4], 2
inc dword [edx]
cmp dword [edx], 4
jl 0x100033b9
jmp 0x100033dd
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004d71
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x10004d88
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8

Function at 0x10004daa
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov edx, 0x1007d274
push edi
mov esi, edx
mov edi, 0x7fffffff
mov ecx, dword [esi + 0x9c4]
xor ecx, dword [esi + 0x9c0]
and ecx, edi
xor ecx, dword [esi + 0x9c0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0xff4]
xor eax, ecx
mov dword [esi], eax
add esi, 4
cmp esi, 0x1007d600
jl 0x10004db8
mov esi, 0x9908b0df
mov ecx, dword [edx + 0xd50]
xor ecx, dword [edx + 0xd4c]
and ecx, edi
xor ecx, dword [edx + 0xd4c]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, esi
xor eax, ecx
xor eax, dword [edx]
mov dword [edx + 0x38c], eax
add edx, 4
cmp edx, 0x1007d8a4
jl 0x10004df8
mov ecx, dword [0x1007e5f0]
xor ecx, dword [0x1007d274]
and ecx, edi
xor ecx, dword [0x1007e5f0]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [0x1007d270], 0
and eax, esi
shr ecx, 1
xor eax, ecx
xor eax, dword [0x1007d8a4]
mov dword [0x1007dc30], eax
pop esi
ret
Function at 0x1000e7c1
Capabilities:
Accept command line arguments
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061094
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0x77c4
mov dword [ebp - 0x48], str.bqz_kkexxdya_xjng
cmp dword [ebp - 0x34], 0x7b37
jle 0x1000e8a7
and dword [ebp - 0x18], 0
jmp 0x1000e80b
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x61de
jge 0x1000e8a7
and dword [ebp - 0x1c], 0
jmp 0x1000e825
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4aba
jge 0x1000e8a2
and dword [ebp - 0x20], 0
jmp 0x1000e83b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x61b2
jge 0x1000e89d
and dword [ebp - 0x24], 0
jmp 0x1000e851
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x1c15
jge 0x1000e89b
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
shl eax, cl
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea ecx, [ebp - 0x68]
call fcn.10001a65
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.100042ab
push eax
call fcn.10049ba3
pop ecx
lea ecx, [ebp - 0x68]
call fcn.100042a1
jmp 0x1000e84a
jmp 0x1000e834
jmp 0x1000e81e
jmp 0x1000e804
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000e8b9
push 1
call fcn.1000e975
pop ecx
jmp 0x1000e928
lea eax, [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax]
test eax, eax
je 0x1000e8d3
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x1000e928
mov dword [ebp - 0x2c], 0x51ad386c
mov dword [ebp - 0x28], 0xf5cd53bc
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x28], eax
je 0x1000e906
mov dword [ebp - 0x30], 1
jmp 0x1000e90a
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x1000e928
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x767e
jge 0x1000e93e
push dword [ebp - 0x48]
call fcn.10049ba3
pop ecx
jmp 0x1000e95a
or dword [ebp - 4], 0xffffffff
jmp 0x1000e964
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10010a93
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x10010b90
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x10010b86
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10010b17
mov eax, dword [ebp - 4]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0xfffffffe
je 0x10010b84
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 8], 0xffffffff
push 0x6412
push 0x687d
push 0xf05
push 0xa77
push 0x1258
push 0x3081
push 1
push dword [ebp - 0x30]
push dword [ebp - 4]
push 0
push dword [ebp - 0x34]
push 0x6ae8
lea eax, [ebp - 0x38]
push eax
push 0xf73
push dword [ebp - 0x3c]
lea eax, [ebp - 8]
push eax
push 0x75a8
call fcn.1000e14b
add esp, 0x44
cmp dword [ebp - 8], 0
je 0x10010b82
jmp 0x10010b0c
jmp 0x10010b0c
jmp 0x10010b8e
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10010bf7
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
push 0x6470
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push 0x3894
push dword [ebp - 0x50]
push 0x10d0
push dword [ebp - 0x54]
push 1
push 0x3169
push 0x165f
push 0x3554
push dword [ebp - 0x58]
call fcn.1000e108
add esp, 0x38
mov esp, ebp
pop ebp
ret
Function at 0x10010fc4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10011045
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1001103b
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001101c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10011039
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.1000461c
mov dword [eax], 0xfffffffc
jmp 0x10011011
jmp 0x10011043
push 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x10011059
push 1
push 0x223c
push 0x19ce
call fcn.1000cc90
add esp, 0xc
mov esp, ebp
pop ebp
ret