joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020d87
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100b2c08]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10020dcd
cmp word [ebx], dx
jne 0x10020dcd
or byte [eax + edi + 0x28], 4
jmp 0x10020dd2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10020f35
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10020f15
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10020e13
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10020e49
cmp eax, edx
jae 0x10020e57
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10020dee
jmp 0x10020f35
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10020f10
cmp dword [ebp - 0x18], 0
je 0x10020f10
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100b2c08]
test byte [eax + edi + 0x28], 0x48
je 0x10020ee6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10020eaa
mov word [esi], cx
jmp 0x10020ee1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100b2c08]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100b2c08]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100b2c08]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10020f35
pop eax
cmp word [ebp - 4], ax
jne 0x10020ef6
cmp esi, ebx
jne 0x10020ef6
mov word [esi], ax
jmp 0x10020f32
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100217c0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10020f35
push 0xd
pop eax
jmp 0x10020ef1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100b2c08]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10020f2f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10020f35
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10022a84
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10022b21
push ebx
push esi
call fcn.10022a4d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100229e1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10022ace
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022b20
push edi
push eax
call fcn.1001e798
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10022aee
call fcn.1001d143
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10022b1f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100229e1
add esp, 0x20
test eax, eax
jne 0x10022b0d
push edi
call fcn.1001d143
jmp 0x10022b15
push ebx
call fcn.1001d143
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10026329
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1001b544
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10026398
cmp esi, dword [ebp - 4]
je 0x10026393
cmp dword [ebp + 0xc], 0
je 0x10026393
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10026370
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10025e7b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002639a
xor eax, eax
inc eax
jmp 0x1002639a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100263ff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100b1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1001b544
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1001b544
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x10026476
cmp word [ecx], dx
je 0x10026476
mov eax, dword [0x100318fc]
push edi
dec eax
push eax
push 0x100317e8
call fcn.1002639e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100264e9
cmp word [eax], dx
je 0x100264e9
mov eax, dword [edi]
test eax, eax
je 0x1002649a
cmp word [eax], dx
je 0x1002649a
lea eax, [ebp - 0x10]
push eax
call fcn.10025d81
jmp 0x100264a3
lea eax, [ebp - 0x10]
push eax
call fcn.10025e1c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10026513
mov eax, dword [0x100317e4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100314d8
call fcn.1002639e
add esp, 0xc
test al, al
je 0x10026513
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100264de
cmp word [eax], di
je 0x100264de
lea eax, [ebp - 0x10]
push eax
call fcn.10025d81
pop ecx
jmp 0x10026515
lea eax, [ebp - 0x10]
push eax
call fcn.10025e1c
jmp 0x100264db
mov eax, dword [edi]
test eax, eax
je 0x10026500
cmp word [eax], dx
je 0x10026500
lea eax, [ebp - 0x10]
push eax
call fcn.10025d36
pop ecx
jmp 0x10026513
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100265de
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10026223
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100265de
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100265de
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100265de
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002656b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001d757
test ebx, ebx
je 0x100265d9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001d757
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100265de
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100265de
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002922d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100265e0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a5f0
leave
ret
Function at 0x1002b080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002b0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002b0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x417e24
Capabilities:
Query or enumerate registry value

Disassembly:
cwde
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x417e34
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
shl ecx, 4
and edx, ecx
xor ecx, ecx
mov cl, byte [0x4c3045]
mov dword [0x4c3038], edx
mov edx, dword [0x4c3034]
dec esp
add byte [ebx], dh
test byte [ebx - 0x50f0f71e], 0xd1
scasd eax, dword es:[edi]
invalid

Function at 0x417e5c
Capabilities:
Query or enumerate registry value

Disassembly:
push edx
push 0x20019
push esi
push str.CLSIDDB8A80A6_D8FF_11CF_9377_0AA0003B7A11InprocServer32
push SysReAllocStringLen
and byte [ebx + 0x4c303c], 0xff
adc eax, sym.imp.ADVAPI32.dll_RegOpenKeyExA
add al, 0
dec esp
invalid
test eax, eax
je 0x417e85
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 4]
mov dword [0x4c6abc], eax
lea eax, [esp + 8]
push eax
push ecx
push 0
push 0
push 0

Function at 0x43ba24
Capabilities:
Encode data using xor

Disassembly:
rcr dword [eax + ebp - 0x50], 1
loope 0x43ba47
sbb eax, 0x59370d3
div dword [eax]
insd dword es:[edi], dx
xchg edi, eax
sal dword [eax - 0x6d], cl
add eax, 0x976d30f7
dec eax
xor al, 0xc4
adc edx, dword [esi - 0xab77c4d]
and byte es:[esi], ah
fsubr qword [ebx - 0x4b9e95df]
jno 0x43ba29
les eax, [ecx + 0x66]
fild qword [ebp - 0xc]
inc ecx
fild qword [ebp - 0xc]
retf 0x6197

Function at 0x4696c4
Capabilities:
Encode data using xor

Disassembly:
push esp
invalid
sal dword [ebx], 1
cmp bl, 0xd2
lodsb al, byte [esi]
jne 0x469697
inc esi
int1
enter 0xffffffffffff869e, 0xffffffffffffffc7
bound esi, qword [edx + ebx*8]
mov ebx, 0xe89dbeda
enter 0xffffffffffffa9d3, 0xffffffffffffff92
xchg edx, eax
xor ecx, dword [ecx + ecx*2 + 0x5c]
add al, 0x3e
push esi
inc edx
mov bh, 0xab
rcr byte [edx - 0x79695496], cl
int3

Function at 0x48061c
Capabilities:
Encode data using xor

Disassembly:
dec edx
mov edx, 0xa9baa010
mov byte [eax], 0x7b
sub byte [ebp - 0x373bd3fa], cl
push ebp
pushal
dec edi
mov esi, 0x7a9a84da
dec ebx
adc dword [ebx + ecx*4], 0x30db0123
cli
xchg ebx, eax
mov al, byte [ebx - 0x477bb089]
inc ebp
clc
xchg ecx, eax
mov ebx, 0xde077f3b
and ebp, dword [edi + esi - 0x1a]
inc esi
mov byte [esi + ebp*4 - 0x7d], cl
invalid
Function at 0x4bb581
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3378
cmp edx, dword [eax]
je 0x4bb5a3
add eax, 8
inc ecx
cmp eax, 0x4c3408
jl 0x4bb594
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3378]
jne 0x4bb6d1
mov eax, dword [0x4c7cfc]
cmp eax, 1
je 0x4bb6ab
test eax, eax
jne 0x4bb5d4
cmp dword [0x4c32a0], 1
je 0x4bb6ab
cmp edx, 0xfc
je 0x4bb6d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb60b
lea eax, [ebp - 0x1a4]
push 0x4c09b8
push eax
call fcn.004bbf60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc3f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb64e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc3f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09b4
push edi
call fcn.004be2c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0998
push eax
call fcn.004bbf60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbf70
lea eax, [ebp - 0xa0]
push 0x4c0994
push eax
call fcn.004bbf70
push dword [esi + 0x4c337c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbf70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c096c
push eax
call fcn.004be234
add esp, 0x2c
pop edi
jmp 0x4bb6d1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c337c]
push 0
push eax
push dword [esi]
call fcn.004bc3f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x405432
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c440]
jne 0x40543c
repz ret
jmp fcn.00408edf

Function at 0x407d9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040482a
and dword [ebp - 4], 0
cmp dword [0x41d740], 0
mov ebx, eax
jne 0x407e4e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407eff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407eff
push eax
call fcn.004047b8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41d740], eax
call esi
push eax
call fcn.004047b8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41d744], eax
call esi
push eax
call fcn.004047b8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41d748], eax
call esi
push eax
call fcn.004047b8
pop ecx
mov dword [0x41d750], eax
test eax, eax
je 0x407e4e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004047b8
pop ecx
mov dword [0x41d74c], eax
mov eax, dword [0x41d74c]
cmp eax, ebx
je 0x407ea6
cmp dword [0x41d750], ebx
je 0x407ea6
push eax
call fcn.00404833
push dword [0x41d750]
mov esi, eax
call fcn.00404833
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407ea6
test edi, edi
je 0x407ea6
call esi
test eax, eax
je 0x407e9d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407e9d
test byte [ebp - 0xc], 1
jne 0x407ea6
or dword [ebp + 0x10], 0x200000
jmp 0x407edf
mov eax, dword [0x41d744]
cmp eax, ebx
je 0x407edf
push eax
call fcn.00404833
pop ecx
test eax, eax
je 0x407edf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407edf
mov eax, dword [0x41d748]
cmp eax, ebx
je 0x407edf
push eax
call fcn.00404833
pop ecx
test eax, eax
je 0x407edf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41d740]
call fcn.00404833
pop ecx
test eax, eax
je 0x407eff
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407f01
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418000
Capabilities:
Create pipe
Get thread local storage value
Read file on windows

Disassembly:
sub esp, 0x528
cmp dword [0x5fb9628], 0xa76
jne 0x4180bf
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
xor eax, eax
push eax
lea ecx, [esp + 4]
push ecx
push eax
lea edx, [esp + 0x134]
push edx
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_ReadFileEx]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
call dword [sym.imp.KERNEL32.dll_SetFileApisToANSI]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov eax, dword [0x5fb962c]
mov edx, dword [0x5d549e0]
mov cl, byte [eax + esi + 0xa2401]
mov byte [edx + esi], cl
add esp, 0x528
ret
Function at 0x4180e0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
sub esp, 0x428
cmp dword [0x5fb9628], 0x13f7
mov eax, dword [esp + 0x42c]
mov ecx, dword [0x41d000]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push ebp
mov ebp, 0xc6ef3720
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x14], ecx
jne 0x418121
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
cmp dword [0x5fb9628], 0x786
mov edx, dword [0x41d004]
mov eax, dword [0x41d008]
mov ecx, dword [0x41d00c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jne 0x418164
push 0
lea edx, [esp + 0x14]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push esi
push edi
mov dword [esp + 0x18], 0x20
jmp 0x418174
mov ebp, dword [esp + 0x14]
mov edi, ebx
shl edi, 4
cmp dword [0x5fb9628], 0x36f
jne 0x41819d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [esp + 0x24]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x20]
add edi, ecx
lea edx, [ebx + ebp]
xor edi, edx
cmp dword [0x5fb9628], 0x3f5
mov dword [0x5d549e4], 0xe9ea0636
jne 0x4181dc
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor esi, edi
sub dword [esp + 0x10], esi
cmp dword [0x5fb9628], 0x839
jne 0x418216
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x38]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapeParameters]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapeParameters]
push 0
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointA]
mov edi, dword [esp + 0x10]
shl edi, 4
cmp dword [0x5fb9628], 0x78c
jne 0x41823f
push 0
lea eax, [esp + 0x34]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
mov edx, dword [esp + 0x10]
add edi, dword [esp + 0x1c]
add ebp, edx
cmp dword [0x5fb9628], 0x196
jne 0x41825d
push 0
call dword [sym.imp.KERNEL32.dll_RequestWakeupLatency]
mov esi, dword [esp + 0x10]
shr esi, 5
add esi, dword [esp + 0x28]
cmp dword [0x5fb9628], 0xec6
mov dword [0x5d549e8], 0xcbd61084
mov dword [0x5d549ec], 0xffffffff
jne 0x41829a
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFlags]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
add dword [esp + 0x14], 0x61c88647
xor esi, ebp
xor esi, edi
sub ebx, esi
sub dword [esp + 0x18], 1
jne 0x418170
cmp dword [0x5fb9628], 0x8d4
pop edi
pop esi
jne 0x4182e4
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFix]
mov eax, dword [esp + 0x434]
mov ecx, dword [esp + 8]
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], ecx
pop ebx
add esp, 0x428
ret 4
mov eax, dword [esp + 0x434]
mov edx, dword [esp + 8]
pop ebp
mov dword [eax], ebx
mov dword [eax + 4], edx
pop ebx
add esp, 0x428
ret 4
Function at 0x10016f5
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10011b0
call fcn.010018ac
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001730
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001730
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001748
cmp eax, 0x20b
je 0x1001735
mov dword [ebp - 0x1c], edi
jmp 0x100175c
cmp dword [ecx + 0x84], 0xe
jbe 0x1001730
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001756
cmp dword [ecx + 0x74], 0xe
jbe 0x1001730
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002030], 0xffffffff
or dword [0x1002034], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100202c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1002038], eax
call fcn.010018a2
cmp dword [0x100201c], edi
jne 0x10017b7
push fcn.010018a2
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100188b
push 0x1002010
push 0x100200c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002020]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1002008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010014d6
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x100182e
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001863
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010018e7
ret
Function at 0x10003b50
Capabilities:
Get number of processors

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, 0x34
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
test byte [0x1000d02c], 8
jne 0x10003cf8
mov edx, dword [ebx]
lea eax, [edx - 0x64]
and eax, 0xffffffdf
je 0x10003be0
mov ebx, 0x80070057
test byte [0x1000d02c], 4
jne 0x10003ba8
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unknown_structure_version__size__i__n
mov dword [esp + 8], str.AtlModuleInit
mov dword [esp + 4], 0x1000d02c
mov dword [esp], 2
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [ebp - 0x1c], edx
call sym._memset
movd xmm2, esi
movd xmm1, edi
mov edx, dword [ebp - 0x1c]
movd xmm0, edi
punpckldq xmm1, xmm2
mov edi, dword [sym.imp.kernel32.dll_InitializeCriticalSection]
punpckldq xmm0, xmm0
mov dword [ebx], edx
punpcklqdq xmm0, xmm1
movups xmmword [ebx + 4], xmm0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call edi
lea eax, [ebx + 0x34]
sub esp, 4
mov dword [esp], eax
call edi
lea eax, [ebx + 0x4c]
sub esp, 4
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x10]
sub esp, 4
cmp edx, 0x64
je 0x10003ce0
test eax, eax
je 0x10003ce0
mov eax, dword [eax]
test eax, eax
je 0x10003ce0
mov edi, 0x24
xor edx, edx
jmp 0x10003c96
test eax, eax
je 0x10003c86
mov dword [ebp - 0x1c], edx
mov dword [esp], 1
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 4
mov eax, dword [ebx + 0x10]
add edx, 1
mov eax, dword [eax + edi]
add edi, 0x24
test eax, eax
je 0x10003ce0
mov eax, dword [esi + edi - 4]
test byte [0x1000d02c], 8
je 0x10003c70
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Initializing_object__i__p_n
mov dword [esp + 8], str.AtlModuleInit
mov dword [esp + 4], 0x1000d02c
mov dword [esp], 3
mov dword [ebp - 0x1c], edx
call sym._wine_dbg_log.constprop.0_1
mov eax, dword [esi + edi - 4]
mov edx, dword [ebp - 0x1c]
jmp 0x10003c70
lea esp, [ebp - 0x10]
xor ebx, ebx
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0x1000f54a
mov dword [esp + 8], str.AtlModuleInit
mov dword [esp + 4], 0x1000d02c
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10003b79