joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007baf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10007bbe
pop dword [ebp - 0x1c]
mov eax, 0x57e45ed8
sub eax, 0x47e3e31a
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xc7e62978
sub dword [ebp - 0x2c], 0x7993e42d
mov dword [ebp - 0x28], 0x7a01a331
sub dword [ebp - 0x28], 0x47ce56ec
mov dword [ebp - 0x24], 0x6c63ce03
sub dword [ebp - 0x24], 0x201789d5
mov dword [ebp - 0x20], 0xd7577fbe
add dword [ebp - 0x20], 0x28a88042
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x2161afec
sub dword [ebp - 0x2c], 0xacef4696
mov dword [ebp - 0x28], 0xfe086b7c
sub dword [ebp - 0x28], 0xbc9c0a07
mov dword [ebp - 0x24], 0x3959a9e
add dword [ebp - 0x24], 0x5fd9d1ce
mov dword [ebp - 0x20], 0x4b7c8a01
sub dword [ebp - 0x20], 0x4b7c8a01
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xc08ed4b3
add eax, 0x4f71ab95
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x349f6
push 0
call eax
mov ecx, 0x42c22035
sub ecx, 0x42c1e063
xor esi, esi
add esi, eax
mov edi, 0xfe9667de
sub edi, 0xee956dde
add edi, dword [ebp - 0x1c]
mov edx, 0xb47303fd
add dword [ebp - 8], 0x49166872
mov ebx, dword [edi]
xor dword [ebp - 0x10], 0x1a125014
xor ebx, edx
sub dword [ebp - 0x18], 0xf69f56e3
mov dword [esi], ebx
mov dword [ebp - 0x14], 0x13db3dd5
add esi, 0x1cb99622
sub esi, 0x1cb9961e
add edi, 0xb363cf5b
add edi, 0x4c9c30a9
loop 0x10007cd7
add eax, 0x1aece17d
sub eax, 0x1aebef62
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4071f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40720a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407211
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407200
mov eax, 1
add ebx, ebx
jne 0x407223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407218
jne 0x407234
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407218
xor ecx, ecx
sub eax, 3
jb 0x407248
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4072ba
mov ebp, eax
add ebx, ebx
jne 0x407253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407260
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407284
inc ecx
add ebx, ebx
jne 0x407270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407265
jne 0x407281
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407265
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4072a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x407295
jmp 0x407206
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4072a4
add edi, ecx
jmp 0x407206
pop esi
mov edi, esi
mov ecx, 7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4072c2
cmp byte [edi], 0
jne 0x4072c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4072c7
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x407336
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x72e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7324]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4072f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x732c]
or eax, eax
je 0x407330
mov dword [ebx], eax
add ebx, 4
jmp 0x407311
call dword [esi + 0x7328]
mov ebp, dword [esi + 0x7330]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40736a
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x407ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x407df4
movzx ecx, word [edx + 0x26]
jmp 0x407e05
xor edi, edi
nop
jmp 0x407e14
mov esi, dword [edx + 0x28]
nop
xor eax, eax
nop
lodsb al, byte [esi]
nop
jmp 0x407e2c
cmp al, 0x61
nop
jl 0x407e5d
nop
jmp 0x407e3e
nop
jmp 0x407e4f
sub al, 0x20
jmp 0x407e5d
nop
jmp 0x407e6b
ror edi, 0xd
jmp 0x407e7c
add edi, eax
dec ecx
nop
jmp 0x407e91
jne 0x407e17
nop
push edx
nop
jmp 0x407ea7
mov edx, dword [edx + 0x10]
nop
mov eax, dword [edx + 0x3c]
jmp 0x407ebf
push edi
add eax, edx
nop
jmp 0x407ed2
mov eax, dword [eax + 0x78]
nop
jmp 0x407ee3
test eax, eax
nop
jmp 0x407ef7
je 0x40807e
nop
add eax, edx
nop
jmp 0x407f0f
push eax
mov ecx, dword [eax + 0x18]
jmp 0x407f1e
mov ebx, dword [eax + 0x20]
jmp 0x407f2e
add ebx, edx
jmp 0x407f3b
nop
test ecx, ecx
nop
je 0x40807c
nop
dec ecx
xor edi, edi
mov esi, dword [ebx + ecx*4]
nop
jmp 0x407f5c
add esi, edx
nop
jmp 0x407f6f
xor eax, eax
nop
ror edi, 0xd
lodsb al, byte [esi]
nop
jmp 0x407f86
add edi, eax
nop
cmp al, ah
jmp 0x407f9b
jne 0x407f5e
nop
jmp 0x407fac
nop
jmp 0x407fbe
add edi, dword [ebp - 8]
nop
cmp edi, dword [ebp + 0x24]
jmp 0x407fd4
jne 0x407f3b
jmp 0x407fed
nop
pop eax
mov ebx, dword [eax + 0x24]
add ebx, edx
nop
jmp 0x408005
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
add ebx, edx
jmp 0x408023
mov eax, dword [ebx + ecx*4]
jmp 0x408039
add eax, edx
nop
jmp 0x40804a
mov dword [esp + 0x24], eax
nop
pop ebx
jmp 0x408064
pop ebx
nop
popal
pop ecx
jmp 0x408077
pop edx
push ecx
jmp eax
pop eax
nop
jmp 0x40808d
pop edi
nop
jmp 0x4080a2
pop edx
nop
mov edx, dword [edx]
jmp 0x407de5
Function at 0x668c2740
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 0x668c279b
cmp byte [esi + ebx - 1], 0xa
je 0x668c276f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x668c8084], 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 0x668c2cf0
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 [0x668c8094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x668c2eb0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x668c8094]
movzx eax, al
bt eax, esi
jae 0x668c2f10
mov ecx, dword [0x668c8084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x668c2db6
test byte [0x668c4030], 8
jne 0x668c2e50
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x668c4040], 8
jne 0x668c2e00
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 0x668c2d85
cmp esi, 3
jbe 0x668c2dc0
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 + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x668c7160]
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 0x668c2d85
mov ecx, dword [0x668c8094]
test ecx, ecx
je 0x668c2ef0
mov dword [esp], 0x668c4040
call dword [0x668c8094]
test al, 8
je 0x668c2d5c
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 0x668c2d5c
mov ebx, dword [0x668c8094]
test ebx, ebx
je 0x668c2ed0
mov dword [esp], 0x668c4030
call dword [0x668c8094]
test al, 8
je 0x668c2d49
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
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 0x668c2d4f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x668c8094
call sym._load_func.part.0
jmp 0x668c2d10
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x668c8094
call sym._load_func.part.0
jmp 0x668c2e5a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x668c8094
call sym._load_func.part.0
jmp 0x668c2e0e
mov eax, 0xffffffff
jmp 0x668c2db6
Function at 0x401000
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
mov eax, dword [eax + 0x40]
mov dword [esp], eax
call sym._I_RpcFree_4
mov eax, dword [ebx + 0x44]
sub esp, 4
mov dword [esp], eax
call sym._I_RpcFree_4
mov eax, dword [ebx + 0x48]
sub esp, 4
mov dword [esp], eax
call sym._I_RpcFree_4
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [esp + 8], ebx
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]
mov ebx, dword [ebp - 4]
sub esp, 0xc
leave
ret
Function at 0x4024b0
Capabilities:
Get process heap flags

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, 0x38
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
test byte [global___dbch.0], 8
jne 0x402600
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [0x4090b8]
sub esp, 4
cmp ebx, 0x4090b8
je 0x4025d8
mov edi, dword [esi]
add esi, 4
jmp 0x402526
mov ebx, dword [ebx]
cmp ebx, 0x4090b8
je 0x4025d8
mov eax, dword [ebx + 0x10]
cmp dword [eax], edi
jne 0x402518
add eax, 4
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._memcmp
test eax, eax
jne 0x402518
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 8]
mov ecx, dword fs:[0x18]
mov eax, dword [eax]
mov dword [esp + 4], 0
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, dword [ebp - 0x20]
mov edx, 0x8007000e
sub esp, 0xc
mov dword [esi], eax
test eax, eax
je 0x4025b1
mov ecx, dword [ebx + 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [esi]
mov eax, dword [ebx + 8]
lea esi, [ecx + 4]
mov ecx, dword [ecx]
add eax, 4
mov dword [esp], esi
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sym._memcpy
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov dword [ecx], eax
mov dword [ebp - 0x1c], edx
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x1c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, 0x800401e3
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x40a27f
mov dword [esp + 8], global___FUNCTION__.1
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x4024e0
Function at 0x402810
Capabilities:
Get process heap flags

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, 0x28
mov edi, dword [ecx + 4]
test byte [global___dbch.0], 8
jne 0x4029f0
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x4090b8]
sub esp, 4
cmp eax, 0x4090b8
je 0x402a20
xor ebx, ebx
lea esi, [esi]
lea esi, [esi]
mov eax, dword [eax]
mov edx, ebx
add ebx, 1
cmp eax, 0x4090b8
jne 0x402860
lea eax, [edx*4 + 8]
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x20], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x24], eax
call eax
mov dword [edi], eax
sub esp, 0xc
test eax, eax
je 0x4029bb
mov dword [eax], ebx
mov ebx, dword [0x4090b8]
xor esi, esi
cmp ebx, 0x4090b8
jne 0x402901
jmp 0x4029c8
mov edx, dword [ebx + 0xc]
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [edi]
mov edx, dword [ebx + 0xc]
mov eax, dword [eax + esi*4 + 4]
add esi, 1
lea ecx, [edx + 4]
mov edx, dword [edx]
add eax, 4
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
mov ebx, dword [ebx]
cmp ebx, 0x4090b8
je 0x4029c8
mov eax, dword [ebx + 0xc]
mov edx, dword [edi]
mov eax, dword [eax]
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], 0
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x24]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
mov dword [edx + esi*4 + 4], eax
mov edx, dword [edi]
mov eax, dword [edx + esi*4 + 4]
test eax, eax
jne 0x4028c8
sub esi, 1
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x1c], esi
je 0x40299a
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 0x20], edi
xor ebx, ebx
mov esi, dword fs:[0x18]
mov edi, esi
mov esi, eax
mov eax, edx
jmp 0x40296d
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov eax, dword [eax + ebx*4 + 4]
mov dword [esp + 4], 0
add ebx, 1
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
cmp dword [ebp - 0x1c], ebx
jne 0x402968
mov edi, dword [ebp - 0x20]
mov eax, esi
mov edx, dword [edi]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov edx, dword [ecx + 0x30]
mov edx, dword [edx + 0x18]
mov dword [esp], edx
call eax
sub esp, 0xc
mov ebx, 0x8007000e
jmp 0x4029ca
xor ebx, ebx
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x40a27d
mov dword [esp + 8], global___FUNCTION__.5
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x402834
mov eax, 4
xor ebx, ebx
jmp 0x402875
Function at 0x402a30
Capabilities:
Access peb ldr_data
Get process heap flags

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, 0x18
mov ebx, dword [ecx]
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
sub esp, 4
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov dword [esp], 0x4090a0
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lock sub dword [ebx + 0x20], 1
je 0x402a90
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, dword [ebx + 8]
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
mov eax, dword [ebx + 0x10]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4

Function at 0x402b20
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push ecx
sub esp, 0x14
mov edx, dword [ecx]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
sub esp, 0xc
leave
lea esp, [ecx - 4]
ret 4

Function at 0x402b70
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push ecx
sub esp, 0x14
mov edx, dword [ecx]
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 4]
sub esp, 0xc
leave
lea esp, [ecx - 4]
ret 4
Function at 0x4030f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov edi, dword [eax + 8]
mov ecx, dword [ecx + 4]
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov edx, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov edi, dword fs:[0x18]
mov dword [esp + 8], 0x24
mov dword [esp + 4], 8
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov dword [ebp - 0x20], edx
call edx
sub esp, 0xc
test eax, eax
je 0x403240
mov ecx, dword [ebp - 0x24]
mov ebx, eax
test byte [ebp - 0x1c], 3
mov eax, dword [ecx]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 0xc], eax
mov eax, dword [ecx + 8]
mov dword [ebx + 0x10], eax
mov eax, dword [ecx + 0xc]
sete cl
mov dword [ebx + 0x14], eax
movzx eax, byte [ebx + 0x20]
and eax, 0xfffffffe
or eax, ecx
mov byte [ebx + 0x20], al
mov eax, dword [esi]
mov dword [esp + 4], 0
add eax, 4
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov edx, dword [ebp - 0x20]
call edx
mov dword [ebx + 0x1c], eax
sub esp, 0xc
test eax, eax
je 0x403222
mov edx, dword [esi]
add esi, 4
mov dword [eax], edx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 8], edx
add eax, 4
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov eax, 1
lock xadd dword [0x40b004], eax
mov edi, dword [ebp - 0x28]
add eax, 1
mov dword [ebx + 0x18], eax
mov dword [edi], eax
mov dword [esp], 0x40917c
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov dword [ebx], 0x409174
mov eax, dword [0x409178]
sub esp, 4
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [0x409178], ebx
mov dword [esp], 0x40917c
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov eax, 0x8007000e
jmp 0x403216
Function at 0x403250
Capabilities:
Get process heap flags

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, 0x18
mov esi, dword [ecx + 4]
mov dword [esp], 0x40917c
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [0x409174]
sub esp, 4
jmp 0x40328b
mov edx, dword [eax + 0x18]
mov ebx, eax
mov eax, dword [eax]
cmp edx, esi
je 0x4032b0
cmp eax, 0x409174
jne 0x403280
mov dword [esp], 0x40917c
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
xor eax, eax
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edx, dword [ebx + 4]
mov esi, dword [sym.imp.kernel32.dll_HeapFree]
mov edi, dword fs:[0x18]
mov dword [eax + 4], edx
mov eax, dword [ebx]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call esi
sub esp, 0xc
jmp 0x403292

Function at 0x403300
Capabilities:
Get process heap flags

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, 0x28
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 4]
mov dword [esi], 0
mov dword [esp], 0x40917c
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [0x409174]
sub esp, 4
cmp ebx, 0x409174
je 0x403414
mov edx, dword [edi]
jmp 0x40335e
mov ebx, dword [ebx]
cmp ebx, 0x409174
je 0x403414
cmp edx, dword [ebx + 8]
jne 0x403350
mov ecx, dword [ebx + 0xc]
cmp dword [edi + 4], ecx
jne 0x403350
mov ecx, dword [ebx + 0x10]
cmp dword [edi + 8], ecx
jne 0x403350
mov eax, dword [ebx + 0x14]
cmp dword [edi + 0xc], eax
jne 0x403350
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
add eax, 4
mov dword [esp], eax
call dbg.MIDL_user_allocate@4
mov dword [esi], eax
sub esp, 4
test eax, eax
je 0x4033b8
mov edx, dword [ebx + 0x1c]
mov edx, dword [edx]
mov dword [eax], edx
mov edx, dword [ebx + 0x1c]
mov eax, dword [esi]
lea ecx, [edx + 4]
mov edx, dword [edx]
add eax, 4
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memcpy
test byte [ebx + 0x20], 1
je 0x403414
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx + 0x1c]
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x1c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call edi
sub esp, 0xc
mov dword [esp], 0x40917c
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
cmp dword [esi], 1
sbb eax, eax
lea esp, [ebp - 0x10]
pop ecx
and eax, 0x80004002
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x407700
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 0x40775b
cmp byte [esi + ebx - 1], 0xa
je 0x40772f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x40b0a4], 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