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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x658cf8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x58f88d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x58f8d7
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x58f8dd
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x58f93b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x58f900
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x58f967
mov eax, dword [esi + 4]
push 1
push str.6digit
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x61a2c7
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x58f940
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5a16a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
je 0x5a16d8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5a16d8
cmp dword [esi], 0
jne 0x5a1719
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x5a16df
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [esi], eax
test eax, eax
jne 0x5a16e2
mov dword [esi + 0x24], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 0x28], eax
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
jmp 0x5a16c0
cmp dword [esi + 0x18], 0
lea edi, [esi + 4]
mov eax, 2
mov word [edi], ax
je 0x5a16f9
movzx eax, word [esi + 0x22]
jmp 0x5a16fd
movzx eax, word [esi + 0x20]
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
mov word [esi + 6], ax
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 8], eax
jmp 0x5a171c
lea edi, [esi + 4]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x1c], eax
test eax, eax
jns 0x5a1747
mov dword [esi + 0x24], 1
call fcn.005a7164
pop edi
mov eax, dword [eax]
mov dword [esi + 0x28], eax
or eax, 0xffffffff
pop esi
pop ebp
ret
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x5a172f
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5a17b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x5a17cb
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], 0
mov edx, dword [esi + 0x38]
push edi
mov edi, dword [esi + 0x34]
mov eax, edi
sub eax, edx
cmp eax, ecx
jge 0x5a17f5
lea eax, [edi + ecx]
push eax
push dword [esi + 0x30]
call fcn.005b21bd
mov ecx, dword [esi + 0x40]
add esp, 8
add dword [esi + 0x34], ecx
mov edx, dword [esi + 0x38]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x44]
cmp ecx, eax
push 0
cmovle eax, ecx
push eax
mov eax, dword [esi + 0x30]
add eax, edx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov dword [esi + 0x48], eax
pop edi
test eax, eax
jns 0x5a182b
call fcn.005a7164
cmp dword [eax], 4
jne 0x5a1825
xor eax, eax
jmp 0x5a182d
or eax, 0xffffffff
pop esi
pop ebp
ret
je 0x5a1841
sub dword [esi + 0x40], eax
add dword [esi + 0x3c], eax
add dword [esi + 0x38], eax
mov eax, 1
cmp dword [esi + 0x40], 0
jne 0x5a1846
mov eax, 2
pop esi
pop ebp
ret
Function at 0x5a1850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x5a186f
mov eax, dword [esi + 0x38]
xor ecx, ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], 0
jmp 0x5a1872
mov ecx, dword [esi + 0x3c]
push 0
push eax
mov eax, dword [esi + 0x30]
add eax, ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov dword [esi + 0x48], eax
test eax, eax
jg 0x5a189b
call fcn.005a7164
cmp dword [eax], 4
je 0x5a18a7
or eax, 0xffffffff
pop esi
pop ebp
ret
sub dword [esi + 0x40], eax
add dword [esi + 0x3c], eax
cmp dword [esi + 0x40], 0
jne 0x5a18af
mov eax, 2
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret

Function at 0x5be797
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005be60d

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x638c295a
Capabilities:
Access peb ldr_data
Get process heap flags
Terminate process

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 + 4]
test byte [0x638c8018], 8
mov esi, dword [ecx]
mov dword [ebp - 0x1c], eax
jne 0x638c2a80
mov eax, dword [0x638d5020]
test eax, eax
je 0x638c2ac6
mov dword [esp], eax
mov edx, 0x65
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
sub esp, 8
test eax, eax
je 0x638c2ae0
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0xc], eax
xor edi, edi
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x28], ecx
call ecx
mov edi, dword fs:[0x18]
sub esp, 0x18
mov edx, eax
mov dword [ebp - 0x24], edx
lea eax, [eax + eax]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
mov ebx, eax
je 0x638c2ae0
mov dword [esp + 0x10], eax
mov edx, dword [ebp - 0x24]
mov eax, 0xffffffff
mov dword [esp + 8], esi
mov ecx, dword [ebp - 0x28]
mov dword [esp + 0xc], eax
mov dword [esp], 0
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 4], edx
call ecx
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], ebx
call eax
xor ecx, ecx
sub esp, 8
mov esi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, esi
mov ebx, 0x638ca3f8
call sym._wine_dbgstr_an.constprop.0
mov edi, dword [ebp - 0x1c]
mov ecx, str._s__d_n
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ebx
mov dword [esp], 3
mov dword [esp + 0x14], edi
mov edi, 0x638c8018
mov dword [esp + 4], edi
mov dword [esp + 0x10], eax
call sym._wine_dbg_log.constprop.0
mov eax, dword [0x638d5020]
test eax, eax
jne 0x638c2986
mov dword [esp], str.ieframe.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov dword [0x638d5020], eax
sub esp, 4
jmp 0x638c2986
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x638c46ba
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
sub esp, 0x48
mov dword [ebp - 0xc], ebx
mov eax, dword [ecx]
test byte [0x638c8018], 8
mov dword [ebp - 4], edi
mov ebx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov edi, dword [ecx + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], eax
jne 0x638c47c8
test ebx, ebx
je 0x638c477b
xor ecx, ecx
mov eax, 0xffffffff
mov dword [esp + 0x14], ecx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
xor esi, esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x24], ecx
call ecx
mov edx, eax
sub esp, 0x18
mov dword [ebp - 0x20], edx
lea esi, [edx + edx]
xor edx, edx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
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]
mov edx, dword [ebp - 0x20]
mov ecx, 0xffffffff
sub esp, 0xc
mov esi, eax
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esp + 4], ebx
mov ebx, esi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp], 0
call ecx
sub esp, 0x18
test byte [0x638c8018], 1
jne 0x638c4810
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
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 ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0xc
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov eax, ebx
mov esi, str.__ld___s___ld__n
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], esi
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x10], eax
mov eax, str.SHRestricted2A
mov dword [esp + 8], eax
mov eax, 0x638c8018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x638c46e4
mov dword [esp + 8], edi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._SHRestricted2W_12.part.0
sub esp, 0xc
jmp 0x638c4788
Function at 0x638c4a80
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
sub esp, 0x48
test byte [0x638c8018], 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ecx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ecx]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
jne 0x638c4b90
test ebx, ebx
je 0x638c4b45
xor ecx, ecx
mov eax, 0xffffffff
mov dword [esp + 0x14], ecx
mov ecx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
xor edi, edi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [ebp - 0x20], ecx
call ecx
mov edx, eax
sub esp, 0x18
mov dword [ebp - 0x1c], edx
lea edi, [edx + edx]
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 4], edx
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]
mov edx, dword [ebp - 0x1c]
mov ecx, 0xffffffff
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp], 0
call ecx
sub esp, 0x18
test byte [0x638c8018], 1
jne 0x638c4bd0
mov dword [esp + 8], ebx
xor edx, edx
mov dword [esp + 4], edx
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 ecx, dword [ebp - 0x10]
xor eax, eax
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0xc
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, ebx
mov edi, str.__p__s__n
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp], 3
mov dword [esp + 0x14], eax
mov eax, str.DoOrganizeFavDlg
mov dword [esp + 8], eax
mov eax, 0x638c8018
mov dword [esp + 4], eax
call sym._wine_dbg_log.constprop.0
jmp 0x638c4aae
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym._DoOrganizeFavDlgW_8.part.0
sub esp, 8
jmp 0x638c4b52
Function at 0x638c5120
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
test byte [0x638c8028], 8
mov dword [ebp - 8], ebx
mov ebx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
jne 0x638c51b0
mov esi, 0xffffffff
lock xadd dword [ebx + 4], esi
dec esi
jne 0x638c5192
mov eax, dword [ebx]
xor edx, edx
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [eax + 0x10]
mov eax, dword [ebx + 0x18]
mov edx, dword [eax]
sub esp, 8
mov dword [esp], eax
call dword [edx + 8]
xor ecx, ecx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov eax, str.InstanceObjectFactory_IClassFactory_Release
mov esi, str._iface_p__n
mov dword [esp + 8], eax
mov eax, 0x638c8028
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x638c5144

Function at 0x638c51e0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x38
test byte [0x638c8028], 8
mov dword [ebp - 8], ebx
mov ebx, dword [ecx]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
jne 0x638c5270
mov esi, 0xffffffff
lock xadd dword [ebx + 4], esi
dec esi
jne 0x638c5256
test byte [0x638c8028], 8
jne 0x638c52a0
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lock dec dword [section..bss]
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov eax, str._iface_p__n
mov dword [esp + 0xc], eax
mov eax, str.RegistryPropertyBag_IPropertyBag_Release
mov dword [esp + 8], eax
mov eax, 0x638c8028
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x638c5204
mov dword [esp + 0x10], ebx
mov eax, str.RegistryPropertyBag_IPropertyBag_Release
mov ecx, str.Destroying_This_p__n
mov dword [esp + 8], eax
mov eax, 0x638c8028
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x638c521e
Function at 0x638c6470
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]
test eax, eax
je 0x638c64e0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x638c64d8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x638d50c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x638c649d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x638c6bb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x638c6d88
mov edx, dword [0x638d50c4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x638c6d78
test byte [0x638c8088], 8
jne 0x638c6d20
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x638c8098], 8
jne 0x638c6ce0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x638c6c3b
cmp dword [ebp + 8], 3
jbe 0x638c6ca0
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x638c6c4a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x638d1380]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x638c6c3b
mov dword [esp], 0x638c8098
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x638c6c10
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x638c6c10
mov dword [esp], 0x638c8088
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x638c6bfd
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x638c6c03
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x638c6c98
Function at 0x638c6e60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x22c
mov dword [esp + 0x224], esi
mov esi, eax
mov eax, dword [0x638d50e0]
mov dword [esp + 0x220], ebx
mov ebx, edx
mov dword [esp + 0x228], edi
test eax, eax
je 0x638c6f38
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x638c6ec0
mov eax, dword [ebx]
mov ebx, dword [esp + 0x220]
mov esi, dword [esp + 0x224]
mov edi, dword [esp + 0x228]
add esp, 0x22c
ret
mov dword [esp], esi
lea edi, [esp + 0x18]
mov eax, 0x104
mov dword [esp + 4], edi
mov esi, 0x104
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
mov ecx, str.MODULE
mov edx, dword [eax]
sub esp, 0xc
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
mov edx, dword [eax]
sub esp, 0xc
mov dword [esp + 8], edi
mov edi, str.SystemRoot
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x638c6e9b
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x638c6f6e
mov dword [esp], eax
mov edx, 0x638d1390
mov dword [esp + 4], edx
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x638d50e0], eax
sub esp, 8
test eax, eax
jne 0x638c6e8c
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x638c6e9d
Function at 0x638c6f80
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force 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 edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
mov dword [ebp - 0x1c], eax
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x638c7110
mov ecx, dword [esi]
test ecx, ecx
je 0x638c70f8
xor eax, eax
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
xor edi, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], edi
mov dword [esp + 8], ebx
mov dword [esp], 0xfde9
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [ebp - 0x28], edx
call edx
xor edx, edx
lea ecx, [eax + 1]
sub esp, 0x18
mov dword [esp + 4], edx
lea eax, [ecx + ecx]
mov dword [ebp - 0x20], eax
mov edi, eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov dword [ebp - 0x24], ecx
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 - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x638c7120
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [esi + 4]
mov word [edi + eax - 2], 0
mov eax, dword [esi]
sub esp, 0x18
test ebx, ebx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x638c70e8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
xor edx, edx
mov dword [esp + 4], edx
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 eax, dword [esi + 8]
not eax
shr eax, 0x1f
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x638c70ac
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x638c6ff0
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x638c7112