joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401640
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x27c
cmp word [edx], 0
mov dword [ebp - 0x270], eax
je 0x401811
mov eax, edx
add eax, 2
cmp word [eax], 0
jne 0x401660
sub eax, ebx
sar eax, 1
lea edx, [eax + eax + 0x20c]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov dword [ebp - 0x26c], eax
je 0x401807
lea esi, [esi]
lea edi, [edi]
add ebx, 2
movzx edx, word [ebx - 2]
add eax, 2
test dx, dx
mov word [eax - 2], dx
jne 0x4016b0
mov eax, dword [ebp - 0x26c]
cmp word [eax], 0
jne 0x4016d6
jmp 0x40181b
mov eax, edx
cmp word [eax + 2], 0
lea edx, [eax + 2]
jne 0x4016d4
cmp dword [ebp - 0x26c], edx
mov edi, edx
jae 0x4016fc
cmp word [edx - 2], 0x5c
je 0x4016fc
lea edi, [eax + 4]
mov eax, 0x5c
mov word [edx], ax
mov edx, edi
mov eax, 0x406004
add eax, 2
movzx ecx, word [eax - 2]
add edx, 2
test cx, cx
mov word [edx - 2], cx
jne 0x401703
mov eax, dword [ebp - 0x26c]
lea esi, [ebp - 0x268]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
cmp eax, 0xffffffff
mov ebx, eax
je 0x4017b1
lea esi, [esi]
mov eax, dword [ebp - 0x23c]
cmp eax, 0x2e
je 0x401791
cmp eax, 0x2e002e
je 0x4017f0
mov ecx, dword [ebp - 0x268]
test ch, 4
jne 0x401791
xor eax, eax
movzx edx, word [ebp + eax - 0x23c]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x401763
and ecx, 0x10
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x270]
je 0x401800
call dbg.add_directory
test eax, eax
je 0x4017a5
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x401740
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
mov esi, dword [ebp - 0x26c]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [ebp - 0x238], 0
je 0x401791
jmp 0x401756
call dbg.add_file
jmp 0x40178d
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, 0x20c
jmp 0x401674
mov edi, dword [ebp - 0x26c]
jmp 0x4016fc
Function at 0x401960
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
jne 0x4019c0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret

Function at 0x401ac0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x4c
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
test eax, eax
je 0x401c17
cmp eax, 2
jne 0x401c24
movzx eax, word [ebx + 0x1c]
mov edx, dword [ebx + 4]
shl eax, 0x18
sar eax, 0x1f
and eax, 0xfde9
call dbg.strdupAtoW
mov esi, eax
call dbg.match_files
test eax, eax
je 0x401bf3
mov eax, dword [0x40700c]
test eax, eax
je 0x401be3
mov eax, dword [str.rxash]
mov dword [ebp - 0x24], eax
mov eax, dword [0x40608a]
mov dword [ebp - 0x20], eax
mov eax, dword [0x40608e]
mov dword [ebp - 0x1c], eax
movzx eax, word [ebx + 0x1c]
test al, 1
jne 0x401b45
mov ecx, 0x2d
mov word [ebp - 0x24], cx
test al, 0x40
jne 0x401b52
mov edx, 0x2d
mov word [ebp - 0x22], dx
test al, 0x20
jne 0x401b5f
mov ecx, 0x2d
mov word [ebp - 0x20], cx
test al, 4
jne 0x401b6c
mov edx, 0x2d
mov word [ebp - 0x1e], dx
test al, 2
jne 0x401b79
mov eax, 0x2d
mov word [ebp - 0x1c], ax
movzx edx, word [ebx + 0x1a]
movzx eax, word [ebx + 0x18]
mov ecx, edx
and ecx, 0x1f
add ecx, ecx
mov dword [esp + 0x20], ecx
mov ecx, edx
shr dx, 0xb
movzx edx, dx
shr cx, 5
mov dword [esp + 0x18], edx
mov edx, eax
and ecx, 0x3f
and edx, 0x1f
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov edx, eax
shr ax, 9
shr dx, 5
movzx eax, ax
add eax, 0x7bc
and edx, 0xf
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], 0x406008
mov dword [esp + 8], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
call dbg.wprintf
mov dword [esp + 4], esi
mov dword [esp], 0x40605a
call dbg.wprintf
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
test byte [0x405008], 1
je 0x401c17
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unexpected_notification_type__d._n
mov dword [esp + 8], str.list_notify
mov dword [esp + 4], 0x405008
mov dword [esp], 0
call sym._wine_dbg_log.constprop.11
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x402220
Capabilities:
Read file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
test eax, eax
jne 0x402280
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [ebx], eax
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x403970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x4039cb
cmp byte [ebx + esi - 1], 0xa
je 0x40399f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x404040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x404210
mov eax, dword fs:[0x18]
mov edi, dword [0x4070a4]
cmp dword [eax + 0x24], edi
je 0x404202
test byte [0x405020], 8
jne 0x4041b0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x405030], 8
jne 0x404170
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x404103
cmp esi, 3
ja 0x404103
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x4066ec]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x404114
mov esi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
shr esi, 0x10
test edx, 0x8080
mov dword [esp], ebx
cmove edx, esi
lea esi, [ecx + 2]
mov eax, edx
cmove ecx, esi
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x405030
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40409e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x40409e
mov dword [esp], 0x405020
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x40408b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov ecx, eax
lea ebx, [esp + 0x28]
mul edx
mov dword [esp + 4], str._3u._03u:
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x404091
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x404161

Function at 0x404280
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___wargv
mov esi, dword [eax]
call sym.__get_initial_wide_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.wmain
mov dword [esp], eax
call sym._exit
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49c008], 0x8088405
inc edx
mov dword [ebx + 0x49c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d1c0
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d1f1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d1d9
add dl, dl
jne 0x41d1fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d24d
xor eax, eax
add dl, dl
jne 0x41d209
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d2ea
add dl, dl
jne 0x41d218
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d223
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d22e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d239
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d243
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d1e8
mov eax, 1
add dl, dl
jne 0x41d25b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d266
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d252
sub eax, ebx
mov ebx, 1
jne 0x41d299
mov ecx, 1
add dl, dl
jne 0x41d27f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d28a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d276
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d2b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d2bb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d2a7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d1e8
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d30b
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 0x41d1e8
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f31c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x47f80a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f36b
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
jmp 0x41f38a
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f38a
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f3fc
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f3e5
test esi, esi
jbe 0x41f3fc
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f3d7
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f3fc
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f3b4
jmp 0x41f3fc
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f3fc
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f811
ret
Function at 0x420568
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x480b83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4205a3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4205bc
lea eax, [ebp - 0x10]
mov edx, dword [0x49e5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4205cf
lea eax, [ebp - 0x10]
mov edx, dword [0x49e5f0]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4205db
adc edx, 0
mov edx, dword [edx*4 + 0x49d3fc]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420755
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420748
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420748
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4206e6
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4206e6
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4206e6
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4206e6
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420748
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420748
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420748
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420748
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x42076d
inc ebx
cmp ebx, 0x19
jne 0x420595
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480b8a
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x1000d3b0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x1000d474
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x1002d34c], eax
call fcn.1000e580
test eax, eax
jne 0x1000d3d4
ret 0xc
mov ecx, dword [0x1002d34c]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x1002d358], edx
mov dword [0x1002d354], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x1002d350], eax
mov dword [0x1002d34c], ecx
call fcn.1000d720
test eax, eax
jne 0x1000d416
call fcn.1000e5c0
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100471d0], eax
call fcn.1000e420
mov ecx, dword [0x100471d0]
mov dword [0x1002d338], eax
test ecx, ecx
je 0x1000d465
test eax, eax
je 0x1000d465
call fcn.1004fdaa
call fcn.1000e410
call fcn.1004fdaa
call fcn.1000db70
call fcn.1000d5c0
mov eax, dword [0x1002d334]
inc eax
mov dword [0x1002d334], eax
mov eax, 1
ret 0xc
call fcn.1000d780
call fcn.1000e5c0
xor eax, eax
ret 0xc
test eax, eax
jne 0x1000d4b4
mov eax, dword [0x1002d334]
test eax, eax
jle 0x1000d4af
mov ecx, eax
mov eax, dword [0x1002d384]
dec ecx
test eax, eax
mov dword [0x1002d334], ecx
jne 0x1000d498
call fcn.1000d610
call fcn.1000db10
call fcn.1000d780
call fcn.1000e5c0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x1000d4c3
push 0
call fcn.1000d850
add esp, 4
mov eax, 1
ret 0xc

Function at 0x1000d620
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.1000d6e0
mov eax, dword [0x1002d388]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x1000d644
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1002d384], 1
mov byte [0x1002d380], bl
jne 0x1000d69e
mov ecx, dword [0x100471c8]
test ecx, ecx
je 0x1000d68c
mov esi, dword [0x100471c4]
sub esi, 4
cmp esi, ecx
jb 0x1000d68c
mov eax, dword [esi]
test eax, eax
je 0x1000d685
call eax
mov ecx, dword [0x100471c8]
sub esi, 4
cmp esi, ecx
jae 0x1000d677
push 0x1001501c
push 0x10015014
call fcn.1000d700
add esp, 8
push 0x10015024
push 0x10015020
call fcn.1000d700
add esp, 8
test ebx, ebx
je 0x1000d6bd
call fcn.1000d6f0
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x1002d388], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x1000d720
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.1000e820
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1001695c], eax
je 0x1000d778
push 0x74
push 1
call fcn.1000ea50
mov esi, eax
add esp, 8
test esi, esi
je 0x1000d778
mov eax, dword [0x1001695c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1000d778
push esi
call fcn.1000d7b0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1004a2e4
Capabilities:
Encode data using xor

Disassembly:
call 0x1004a25d
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x1004a28d
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1004a2a9
xor edx, 0
jmp 0x1004a2b4
xor edx, edx
jmp 0x1004a2cb
jmp 0x1004a2d7
xor eax, eax
push 0x8427d7c0
call 0x1004a2e4
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x1004a320
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x1004a2f9
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x1004a337
add eax, 0
jno 0x1004a33c
add esi, 0
ret 0x10

Function at 0x1004b0a5
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x1004b0c7
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1004b269
cmp edi, dword [ebp + 0x10]
jb 0x1004b269
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.1004ab91
inc edi
jmp 0x1004b150
jmp 0x1004b15d
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004ab91
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.1004ab91
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x1004b1b1
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x1004b195
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.1004b1df
add dword [eax], 0x39
jle 0x1004b1bb
sub al, 0xf5
mov ch, al
call fcn.1004b1f4
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10