joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ff55
Capabilities:
Obtain transmitpackets callback function via wsaioctl
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x1016068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ecx, 0x101684c
call fcn.0100fcf7
xor eax, eax
inc eax
xor ebx, ebx
mov dword [0x1016838], eax
cmp dword [0x101680c], ebx
je 0x10100d9
push esi
push edi
mov edi, eax
lea eax, [ebp - 0x30]
push eax
push 0x20019
push ebx
push 0x1002380
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, 0xc8000006
test eax, eax
jne 0x100fff0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x1002354
push dword [ebp - 0x30]
mov dword [ebp - 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100ffe3
cmp dword [ebp - 0x38], 4
jne 0x100ffe3
cmp dword [ebp - 0x28], ebx
setne al
mov edi, eax
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x1010021
push ebx
push ebx
lea eax, [ebp - 0x2c]
push eax
push 4
push 0x1016834
push 0x10
push 0x10160fc
push esi
push dword [ebp + 8]
call dword [0x101680c]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x1010027
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebp - 0x28], eax
jmp 0x1010027
mov dword [0x1016834], ebx
push ebx
mov eax, 0xcbac
mov word [ebp - 0x20], ax
push ebx
mov edi, 0x11cf
mov eax, edi
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0x101682c
push 0x10
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x24], 0xb5367df1
mov byte [ebp - 0x1c], 0x95
mov byte [ebp - 0x1b], 0xca
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], 0x80
mov byte [ebp - 0x18], 0x5f
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0xa1
mov byte [ebp - 0x15], 0x92
call dword [0x101680c]
push ebx
mov dword [ebp - 0x28], eax
push ebx
mov eax, 0xcbac
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0x1016830
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x14], 0xb5367df2
mov word [ebp - 0xe], di
mov byte [ebp - 0xc], 0x95
mov byte [ebp - 0xb], 0xca
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], 0x80
mov byte [ebp - 8], 0x5f
mov byte [ebp - 7], 0x48
mov byte [ebp - 6], 0xa1
mov byte [ebp - 5], 0x92
call dword [0x101680c]
pop edi
mov dword [0x10166e8], ebx
pop esi
mov ecx, 0x101684c
call fcn.0100fd4f
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.010082cb
leave
ret 4
Function at 0x10103bf
Capabilities:
Set socket configuration

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1016068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
movzx edx, word [eax]
push esi
push 2
pop esi
cmp si, dx
jne 0x10103fb
mov eax, dword [eax + 4]
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 9
push 0
push dword [ecx + 0xc]
call dword [sym.imp.WSOCK32.dll_setsockopt]
jmp 0x1010422
push 0x17
pop esi
cmp si, dx
jne 0x1010441
push edi
lea esi, [eax + 8]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
push 0x10
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 9
movsd dword es:[edi], dword [esi]
push 0x29
push dword [ecx + 0xc]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.WSOCK32.dll_setsockopt]
pop edi
cmp eax, 0xffffffff
jne 0x101043d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
test eax, eax
jle 0x1010446
and eax, 0xffff
or eax, 0x80070000
jmp 0x1010446
xor eax, eax
jmp 0x1010446
mov eax, 0x80004001
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.010082cb
leave
ret 4
Function at 0x101182c
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3b0
mov eax, dword [0x1016068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x148
lea ecx, [ebp - 0x294]
push ecx
push dword [ebp + 0x1c]
push eax
call fcn.01011583
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x3a8], eax
jl 0x1011906
push 0xffffffffffffffff
lea eax, [ebp - 0x394]
push edi
lea ecx, [ebp - 0x3a4]
mov dword [ebp - 0x3a4], esi
mov dword [ebp - 0x398], eax
mov dword [ebp - 0x39c], 0x80
mov dword [ebp - 0x3a0], esi
call fcn.010033f0
push 0x20
lea ecx, [ebp - 0x3a4]
call fcn.0100aa8f
movzx eax, word [ebp + 0x10]
push 0xa
push eax
lea ecx, [ebp - 0x3a4]
call fcn.010030ef
push 0x20
lea ecx, [ebp - 0x3a4]
call fcn.0100aa8f
mov eax, 0x10024e8
cmp dword [ebp + 0x14], esi
jne 0x10118dd
mov eax, 0x10024e0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x3a4]
call fcn.010033f0
cmp dword [ebp - 0x3a4], esi
jge 0x1011917
mov esi, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x3a4]
call fcn.01002970
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010082cb
leave
ret 0x18
lea eax, [ebp - 0x3b0]
push eax
lea eax, [ebp - 0x3ac]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push ebx
push 0x80000001
mov dword [ebp - 0x3ac], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x1011954
jle 0x1011950
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x10118f9
lea eax, [ebp - 0x294]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x101195d
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x294]
push eax
push 1
push esi
lea ecx, [ebp - 0x3a4]
call fcn.0100338b
push eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, esi
je 0x10119a8
jle 0x10119a2
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x3a8], eax
push dword [ebp - 0x3ac]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x3a8]
jmp 0x10118f9
Function at 0x10119c4
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x1016068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x104]
push 0xffffffffffffffff
xor esi, esi
mov dword [ebp - 0x108], ecx
push eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x10c], 0x80
mov dword [ebp - 0x110], esi
call fcn.010033f0
push 0x20
lea ecx, [ebp - 0x114]
call fcn.0100aa8f
movzx eax, word [ebp + 0x10]
push 0xa
push eax
lea ecx, [ebp - 0x114]
call fcn.010030ef
push 0x20
lea ecx, [ebp - 0x114]
call fcn.0100aa8f
mov eax, 0x10024e8
cmp dword [ebp + 0x14], esi
jne 0x1011a4e
mov eax, 0x10024e0
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x114]
call fcn.010033f0
cmp dword [ebp - 0x114], esi
jge 0x1011a87
mov esi, dword [ebp - 0x114]
lea ecx, [ebp - 0x114]
call fcn.01002970
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010082cb
leave
ret 0x10
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push edi
push 0x80000001
mov dword [ebp - 0x118], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
je 0x1011ac4
jle 0x1011ac0
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x1011a6a
lea ecx, [ebp - 0x114]
call fcn.0100338b
push eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x1011aee
jle 0x1011aec
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1011a6a
Function at 0x1012c3d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push 0xa
lea ecx, [esi + 0x24]
call fcn.01012a74
test eax, eax
jge 0x1012c5b
mov eax, 0x8007000e
jmp 0x1012cbc
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x1c], eax
cmp eax, edi
jne 0x1012c85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x1012cbb
and eax, 0xffff
or eax, 0x80070000
jmp 0x1012cbb
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x1012c25
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x18], eax
cmp eax, edi
je 0x1012cb2
push 0xffffffffffffffff
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esi + 0x20], edi
jne 0x1012cb9
mov eax, 0x8007000e
jmp 0x1012cbb
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1012cc4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x80
xor edi, edi
lea ebx, [esi + 4]
push edi
push ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
add esp, 0xc
mov dword [esi], 1
push 0x154
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1012d28
mov ecx, eax
call fcn.010128dc
jmp 0x1012d2a
xor eax, eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
test eax, eax
je 0x1012d66
mov ecx, eax
call fcn.01012c3d
test eax, eax
jl 0x1012d49
add dword [ebp - 4], 4
inc edi
cmp edi, dword [esi]
jl 0x1012d0b
jmp 0x1012d66
lea edi, [esi + edi*4 + 4]
mov ecx, dword [edi]
push 0
call fcn.01012a8f
push dword [edi]
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [edi], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x406140
Capabilities:
Access peb ldr_data
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414bad
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x38
call fcn.00406980
mov edx, eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [edx + 8], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x10], ecx
mov eax, dword [eax]
mov dword [edx + 0x18], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edx + 0x28], eax
mov eax, dword [ebp + 8]
mov dword [edx + 0x30], eax
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push edx
push 0x406660
push 0
push 0
call fcn.0040ad9c
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x406203
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406775
mov esp, ebp
pop ebp
ret 0x1c
push 6
mov dword [edi], 0
call fcn.00407941
int3

Function at 0x40c018
Capabilities:
Parse pe header

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

Function at 0x40d8d1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418280
push 0x418278
push str.FlsAlloc
push 0x1f
call fcn.0040d76f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d905
push dword [ebp + 8]
mov ecx, esi
call dword [0x4151a4]
call esi
jmp 0x40d90b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d94f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418290
push 0x418288
push str.FlsGetValue
push 0x21
call fcn.0040d76f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d986
push dword [ebp + 8]
mov ecx, esi
call dword [0x4151a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d98e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x418298
push 0x418290
push str.FlsSetValue
push 0x22
call fcn.0040d76f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d9c8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4151a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e0a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40e0f0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040e240
test al, al
jne 0x40e0ea
sub edx, 2
cmp edx, edi
jne 0x40e0d0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40e112
lea eax, [edi + 2]
cmp edx, eax
je 0x40e112
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040dff1
add esp, 0x10
jmp 0x40e20c
push esi
lea ecx, [ebp - 0x255]
call fcn.0040e240
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e155
push dword [ebp - 0x25c]
jmp 0x40e102
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40e192
cmp word [ebp - 0x226], 0
je 0x40e1b3
cmp word [ebp - 0x226], ax
jne 0x40e192
cmp word [ebp - 0x224], 0
je 0x40e1b3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040dff1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40e1ff
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40e16c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40e1e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40e20c
push 0x40de21
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00410a70
add esp, 0x10
jmp 0x40e1dc
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406775
leave
ret

Function at 0x40ed48
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40ed59
pop esi
ret
push ebx
push edi
push esi
call fcn.0040ed11
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040dcfa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40ed81
push ebx
push esi
push edi
call fcn.00408ab0
add esp, 0xc
push 0
call fcn.0040d61c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40f151
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040ed96
Function at 0x4010a0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
test byte [section..data], 8
jne 0x401178
lea ebp, [esp + 0x3c]
lea edi, [esp + 0x38]
mov dword [esp + 4], esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp], ebx
call sym._RegQueryValueExW_24
xor edx, edx
sub esp, 0x18
test eax, eax
jne 0x401169
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
add eax, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x24], eax
call sym._RegQueryValueExW_24
sub esp, 0x18
test eax, eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
jne 0x4011a8
mov eax, dword [esp + 0x2c]
xor ecx, ecx
xor ebx, ebx
and eax, 0xfffffffe
mov word [edx + eax - 2], cx
mov word [edx + eax - 4], bx
add esp, 0x4c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], section..rdata
mov dword [esp + 8], global___FUNCTION__.0
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4010b8
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
xor edx, edx
sub esp, 0xc
jmp 0x401169
Function at 0x4021e0
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 esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_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.wmain
mov dword [esp], eax
call sym._exit

Function at 0x4022e0
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 0x40233b
cmp byte [esi + ebx - 1], 0xa
je 0x40230f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x406084], 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 0x402860
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 [0x406094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402a20
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x406094]
movzx eax, al
bt eax, esi
jae 0x402a80
mov ecx, dword [0x406084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402926
test byte [0x403018], 8
jne 0x4029c0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x402970
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 0x4028f5
cmp esi, 3
jbe 0x402930
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 + 0x4044e0]
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 0x4028f5
mov ecx, dword [0x406094]
test ecx, ecx
je 0x402a60
mov dword [esp], 0x403028
call dword [0x406094]
test al, 8
je 0x4028cc
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 0x4028cc
mov ebx, dword [0x406094]
test ebx, ebx
je 0x402a40
mov dword [esp], 0x403018
call dword [0x406094]
test al, 8
je 0x4028b9
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
shr edx, 6
imul ebx, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, ebx
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4028bf
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x402880
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x4029ca
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x406094
call sym._load_func.part.0
jmp 0x40297e
mov eax, 0xffffffff
jmp 0x402926
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x7ba82cb7
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x70e92226
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219