joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405300
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov eax, dword [0x418674]
mov dword [ebp - 0x454], 5
mov dword [esp + 4], str.AppID_
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x468]
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
mov dword [ebp - 0x440], 0x100
mov dword [ebp - 0x458], 0xffff0001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x4054aa
mov esi, 0xffffffff
lea ebx, [ebp - 0x418]
lea edi, [ebp - 0x464]
nop
mov eax, dword [ebp - 0x468]
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x405470
mov eax, dword [ebp - 0x468]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x405370
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x218]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x464]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x460], 0x200
call sym._RegQueryValueW_16
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x40540b
lea edx, [ebp - 0x218]
cmp word [ebp - 0x218], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym._RegCloseKey_4
mov ecx, ebx
mov edx, ebx
mov eax, 2
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], eax
mov eax, dword [0x418030]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x405370
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [0x418674]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x418030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405880
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x46c
mov eax, dword [0x41867c]
mov dword [ebp - 0x454], 5
mov dword [esp + 4], str.Interface_
mov dword [ebp - 0x45c], eax
lea eax, [ebp - 0x468]
mov dword [esp + 8], eax
mov dword [esp], 0x80000000
mov dword [ebp - 0x440], 0x100
mov dword [ebp - 0x458], 0xffff0001
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x405a2a
mov esi, 0xffffffff
lea ebx, [ebp - 0x418]
lea edi, [ebp - 0x464]
nop
mov eax, dword [ebp - 0x468]
add esi, 1
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._RegEnumKeyW_16
sub esp, 0x10
test eax, eax
jne 0x4059f0
mov eax, dword [ebp - 0x468]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._RegOpenKeyW_12
sub esp, 0xc
test eax, eax
jne 0x4058f0
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x218]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x464]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [ebp - 0x460], 0x200
call sym._RegQueryValueW_16
mov ecx, eax
sub esp, 0x10
mov eax, ebx
test ecx, ecx
jne 0x40598b
lea edx, [ebp - 0x218]
cmp word [ebp - 0x218], 0
mov eax, edx
cmove eax, ebx
mov dword [ebp - 0x444], eax
mov eax, dword [ebp - 0x464]
mov dword [esp], eax
call sym._RegCloseKey_4
mov ecx, ebx
mov edx, ebx
mov eax, 0xa
sub esp, 4
mov dword [esp], 0
call sym._CreateITEM_INFO
mov dword [esp + 8], 0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x45c]
mov dword [esp + 0xc], eax
mov eax, dword [0x418030]
mov dword [esp + 4], 0x1132
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
jmp 0x4058f0
mov eax, dword [ebp - 0x468]
mov dword [esp], eax
call sym._RegCloseKey_4
mov eax, dword [0x41867c]
sub esp, 4
mov dword [esp + 0xc], eax
mov eax, dword [0x418030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1113
mov dword [esp], eax
call sym._SendMessageW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406d10
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 + 4]
mov edx, dword [ecx]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
cmp eax, 5
je 0x406d68
cmp eax, 0x4e
je 0x406e50
cmp eax, 1
je 0x406db0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._DefWindowProcW_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, esi
movzx esi, si
mov dword [esp + 0x14], 1
shr eax, 0x10
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
mov eax, dword [0x418030]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._MoveWindow_24
xor eax, eax
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [0x41803c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0x7d1
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x50000007
mov dword [esp + 8], 0
mov dword [esp + 4], str.SysTreeView32
mov dword [esp], 0
call sym._CreateWindowExW_48
sub esp, 0x30
mov dword [0x418030], eax
call dbg.AddBaseEntries
call dbg.AddComponentCategories
call dbg.AddCOMandAll
call dbg.AddApplicationID
call dbg.AddTypeLib
call dbg.AddInterfaces
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
xor eax, eax
cmp ebx, 0x7d1
jne 0x406d58
mov edx, dword [esi + 8]
cmp edx, 0xfffffe3a
je 0x406ee8
cmp edx, 0xfffffe3d
je 0x406ec0
cmp edx, 0xfffffe36
jne 0x406d58
mov eax, dword [esi + 0x34]
test eax, eax
je 0x406d58
mov edx, dword [eax + 0x604]
test edx, edx
jne 0x406f06
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor eax, eax
sub esp, 0xc
jmp 0x406d58
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0x1c], eax
mov dword [esp], edx
call dbg.RefreshMenu
mov edx, dword [esi + 0x3c]
mov dword [esp], edx
call dbg.RefreshDetails
mov eax, dword [ebp - 0x1c]
jmp 0x406d58
mov dword [esp + 4], 0
mov edx, dword [esi + 0x3c]
mov dword [ebp - 0x1c], eax
mov dword [esp], edx
call dbg.CreateInst
mov eax, dword [ebp - 0x1c]
jmp 0x406d58
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [esp], edx
call dbg.ReleaseInst
mov eax, dword [ebp - 0x1c]
jmp 0x406e92

Function at 0x4070e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dbg.AddBaseEntries
call dbg.AddComponentCategories
call dbg.AddCOMandAll
call dbg.AddApplicationID
call dbg.AddTypeLib
leave
jmp dbg.AddInterfaces
Function at 0x407110
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
xor edx, edx
xor eax, eax
mov ebp, esp
sub esp, 8
mov dword [eax + 0x418660], edx
add eax, 4
cmp eax, 0x20
jb 0x40711a
call dbg.AddComponentCategories
leave
jmp dbg.AddCOMandAll

Function at 0x4072b0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edi, dword fs:[0x18]
sub esp, 0x1c
mov esi, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 8], 0x210
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
xor edx, edx
mov dword [ebx], eax
sub esp, 0xc
mov word [eax], dx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407320
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
sub esp, 0x2c
movzx edx, word [edx]
test dx, dx
je 0x407536
mov esi, eax
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407340
mov ecx, eax
sub ecx, edi
mov ebx, ecx
sar ebx, 1
cmp edi, eax
je 0x407536
mov eax, edi
xor ecx, ecx
lea esi, [esi]
cmp dx, 0xa
sete dl
add eax, 2
movzx edx, dl
add ecx, edx
movzx edx, word [eax]
test dx, dx
jne 0x407360
add ebx, dword [esi + 0x204]
cmp word [eax - 2], 0xa
mov edx, dword [esi]
je 0x4074f8
add ecx, 1
mov dword [esp + 8], edx
lea ebx, [ebx + ecx*4 + 1]
mov dword [esp + 4], 0
add ebx, ebx
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0xc], ebx
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_HeapReAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
sub esp, 0x10
mov edx, edi
mov ebx, ecx
lea esi, [esi]
nop
movzx eax, word [edi]
cmp ax, 0xa
je 0x4073f0
test ax, ax
je 0x4073f0
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0xa
jne 0x4073d9
lea esi, [esi]
nop
sub ebx, 1
test ax, ax
jne 0x4074b0
cmp word [edx], 0
mov eax, edx
je 0x407550
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407410
sub eax, edx
mov dword [ebp - 0x1c], eax
sar eax, 1
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2], 0x20
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2 + 2], 0x20
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2 + 4], 0x20
mov eax, dword [esi]
mov ecx, dword [esi + 0x204]
mov word [eax + ecx*2 + 6], 0x20
mov ecx, dword [esi + 0x204]
mov eax, dword [esi]
mov dword [esp + 4], edx
lea eax, [eax + ecx*2 + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._memcpy
mov edx, dword [esi]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add eax, dword [esi + 0x204]
mov dword [esi + 0x204], eax
mov word [edx + eax*2], cx
test ebx, ebx
je 0x407536
mov edx, edi
jmp 0x4073d0
xor eax, eax
mov word [edi], ax
cmp word [edx], 0
je 0x407540
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4074c8
sub eax, edx
lea ecx, [eax + 2]
sar eax, 1
add eax, 5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov eax, 0xa
add edi, 2
mov word [edi - 2], ax
jmp 0x407426
lea ebx, [ebx + ecx*4 + 1]
mov dword [esp + 8], edx
add ebx, ebx
mov dword [esp + 4], 0
mov dword [esp + 0xc], ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0x1c]
mov dword [esi], eax
sub esp, 0x10
test ecx, ecx
jne 0x4073c3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x20], 5
mov dword [ebp - 0x1c], 2
jmp 0x4074e1
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x1c], 0
jmp 0x407426
Function at 0x407640
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x2c
cmp word [edx], 0
je 0x4076d0
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x407658
sub eax, edi
mov ebx, eax
add eax, 2
mov dword [ebp - 0x1c], eax
sar ebx, 1
mov ecx, dword [esi + 0x204]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
add ecx, ebx
lea ecx, [ecx + ecx + 2]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi]
mov dword [esp + 8], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [esi + 0x204]
mov edx, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esi], eax
lea eax, [eax + ecx*2]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
add dword [esi + 0x204], ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], 2
xor ebx, ebx
jmp 0x40766d
Function at 0x407c20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
xor edi, edi
push esi
mov esi, eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x22a]
mov eax, ebx
sub esp, 0x23c
mov word [ebp - 0x21a], cx
mov dword [ebp - 0x22a], 0x790074
mov dword [ebp - 0x226], 0x650070
mov dword [ebp - 0x222], 0x650064
mov dword [ebp - 0x21e], 0x200066
mov dword [ebp - 0x238], 0x750070
mov dword [ebp - 0x234], 0x6c0062
mov dword [ebp - 0x230], 0x630069
mov word [ebp - 0x22c], di
call dbg.AddToTLDataStrW
mov eax, dword [0x4158ec]
cmp dword [esi], eax
je 0x407d48
mov edx, 0x40f440
mov eax, ebx
lea edi, [ebp - 0x218]
call dbg.AddToTLDataStrW
mov edx, str.uuid
mov eax, ebx
call dbg.AddToTLDataStrW
mov edx, 0x40f444
mov eax, ebx
call dbg.AddToTLDataStrW
mov dword [esp + 8], 0x100
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._StringFromGUID2_12
sub esp, 0xc
cmp word [ebp - 0x218], 0
je 0x407db0
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x407cf8
sub eax, edi
sar eax, 1
sub eax, 1
xor edx, edx
mov word [ebp + eax*2 - 0x218], dx
lea edx, [ebp - 0x216]
mov eax, ebx
call dbg.AddToTLDataStrW
mov edx, 0x40f448
mov eax, ebx
call dbg.AddToTLDataStrW
cmp dword [esi + 0x28], 6
je 0x407d90
mov edx, 0x40f452
mov eax, ebx
call dbg.AddToTLDataStrW
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4158f0]
cmp dword [esi + 4], eax
jne 0x407ca2
mov eax, dword [0x4158f4]
cmp dword [esi + 8], eax
jne 0x407ca2
mov eax, dword [0x4158f8]
cmp dword [esi + 0xc], eax
jne 0x407ca2
cmp dword [esi + 0x28], 6
jne 0x407d3d
mov edx, 0x40f440
mov eax, ebx
call dbg.AddToTLDataStrW
jmp 0x407d9c
mov edx, 0x40f44c
mov eax, ebx
call dbg.AddToTLDataStrW
lea edx, [ebp - 0x238]
mov eax, ebx
call dbg.AddToTLDataStrW
jmp 0x407d31
mov eax, 0xffffffff
jmp 0x407d08
Function at 0x40ce50
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_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sym._exit

Function at 0x40cf60
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x418934]
mov esi, dword [ebp + 8]
test edi, edi
je 0x40d690
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x418934]
movzx eax, al
bt eax, esi
jae 0x40d6f0
mov ecx, dword [0x418924]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x40d596
test byte [0x40e2e8], 8
jne 0x40d630
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x40e2f8], 8
jne 0x40d5e0
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 0x40d565
cmp esi, 3
jbe 0x40d5a0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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 + 0x41599c]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x40d565
mov ecx, dword [0x418934]
test ecx, ecx
je 0x40d6d0
mov dword [esp], 0x40e2f8
call dword [0x418934]
test al, 8
je 0x40d53c
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 0x40d53c
mov ebx, dword [0x418934]
test ebx, ebx
je 0x40d6b0
mov dword [esp], 0x40e2e8
call dword [0x418934]
test al, 8
je 0x40d529
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
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 0x40d52f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x418934
call sym._load_func.part.0
jmp 0x40d4f0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x418934
call sym._load_func.part.0
jmp 0x40d63a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x418934
call sym._load_func.part.0
jmp 0x40d5ee
mov eax, 0xffffffff
jmp 0x40d596
Function at 0x40d840
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40d8cf
cmp al, 9
je 0x40d8c0
cmp al, 0x20
je 0x40d8c0
mov dword [ebp - 0x6c], 0
xor esi, esi
lea esi, [esi]
cmp al, 0x5c
je 0x40d928
cmp al, 0x22
je 0x40d938
mov dword [ebp - 0x6c], 0
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x40d8cf
cmp al, 9
sete dl
cmp al, 0x20
sete cl
or dl, cl
je 0x40d880
test esi, 1
jne 0x40d880
lea esi, [esi]
nop
movzx eax, byte [ebx + 1]
add ebx, 1
cmp al, 9
je 0x40d8c0
cmp al, 0x20
je 0x40d8c0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x40d8ea
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40d897
and dword [ebp - 0x6c], 1
jne 0x40d890
xor esi, 1
jmp 0x40d897
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
xor eax, eax
lea edx, [ecx - 1]
test edx, edx
jl 0x1000101e
mov ecx, dword [esp + 4]
push esi
inc edx
mov esi, dword [ecx]
add ecx, 4
xor eax, esi
dec edx
jne 0x10001013
pop esi
ret

Function at 0x10001080
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push ebx
xor bl, bl
xor ecx, ecx
lea edx, [eax - 1]
test edx, edx
jl 0x1000109e
push esi
mov esi, dword [esp + 0xc]
xor bl, byte [ecx + esi]
inc ecx
cmp ecx, edx
jle 0x10001095
pop esi
cdq
mov ecx, 0xff
idiv ecx
mov eax, edx
xor eax, ebx
pop ebx
ret

Function at 0x10001170
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x10005018
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000118e
pop edi
pop esi
ret
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push esi
mov edi, eax
call ebx
mov ecx, dword [esp + 0x30]
push esi
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x2c
cmp eax, edi
pop ebx
je 0x100011c8
pop edi
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x100011e0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0x10005018
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x100011fe
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, dword [esp + 0x24]
push 0
push 0
push esi
mov dword [edi], eax
call ebx
mov ecx, dword [edi]
inc ecx
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [edi]
push esi
mov ebx, eax
push edx
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [edi]
add esp, 0x30
cmp eax, ecx
pop edi
je 0x10001247
pop esi
xor eax, eax
pop ebx
ret
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x10001260
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x10005018
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000127e
xor al, al
pop esi
ret
mov ecx, dword [esp + 0xc]
push 0
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
je 0x100012a1
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop esi
ret
mov edx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push esi
push edi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, edi
pop edi
push esi
je 0x100012cb
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor al, al
pop esi
ret
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov al, 1
pop esi
ret