joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10051dc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [esi + 0xc34]
push edi
mov dword [ebp - 0x18], eax
cmp esi, eax
ja 0x10051e4e
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
nop
cmp esi, 0x31de
ja 0x10051e8d
je 0x10051e63
cmp esi, 0x2948
ja 0x10051e3c
je 0x10051e1c
cmp esi, 0x1d7d
je 0x10051f5d
cmp esi, 0x2901
jne 0x10051f47
mov dword [ebp - 8], 0
jmp 0x10051f47
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [edi]
push ecx
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10051f47
mov eax, esi
sub eax, 0x298f
je 0x10051e58
sub eax, 0x47
jne 0x10051f47
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
mov dword [ebp + 0x10], edx
jmp 0x10051f47
push 0
push 0x1d91
lea eax, [ebp + 0x10]
push eax
push edi
mov dword [ebp + 0x10], 1
call fcn.10059630
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add esp, 0x10
mov dword [edi], edx
mov dword [ebp + 0x10], edi
jmp 0x10051f47
cmp esi, 0x5d52
ja 0x10051f21
je 0x10051ef4
cmp esi, 0x3225
je 0x10051e4e
cmp esi, 0x5d0b
jne 0x10051f47
dec ecx
dec esi
sbb dh, al
add dword [ebx], esi
fstp xword [ecx]
sbb eax, 0x1007c420
jle 0x10051eed
mov ecx, dword [edi]
mov edx, dword [0x1007c418]
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
cmp eax, ecx
jb 0x10051ee4
je 0x10051eed
mov esi, ecx
sub eax, ecx
shr esi, 4
cmp eax, esi
ja 0x10051ee4
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10051eed
inc ebx
cmp ebx, dword [0x1007c420]
jl 0x10051ec6
mov esi, 0x5d0b
jmp 0x10051f47
cmp ebx, dword [0x1007c420]
jl 0x10051e4e
mov ecx, dword [edi]
push 0x3814
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 0xc], ecx
call fcn.10011070
add esp, 0x10
mov dword [ebp - 0x10], eax
jmp 0x10051f47
cmp esi, 0x5d99
jne 0x10051f47
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi]
push 0
push 0
push edx
lea eax, [ebp - 0x14]
push eax
push 0x12a6
mov dword [ebp - 0x14], ecx
call fcn.10051830
add esp, 0x14
add esi, 0x47
cmp esi, dword [ebp - 0x18]
jbe 0x10051de0
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
int 0x39
out 0xe1, eax
or dword [ebx + 0x5e5f0447], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10069d20
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0x4e0]
mov dword [ebp + 8], eax
push edi
mov edi, dword [ebp + 8]
cmp esi, eax
ja 0x10069d6e
mov ebx, dword [ebp + 0x10]
nop
cmp esi, 0x3ad6
ja 0x10069df8
je 0x10069dd3
cmp esi, 0x3a3a
ja 0x10069db9
je 0x10069d91
mov eax, esi
sub eax, 0x2193
je 0x10069d77
sub eax, 0x4e
jne 0x10069e51
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
mov eax, dword [ebx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
jmp 0x10069e51
mov ecx, 0x50
mov edx, 0x61
mov word [0x1007de20], cx
mov eax, 0x6172
mov word [0x1007de21], dx
mov word [0x1007de22], ax
jmp 0x10069e51
cmp esi, 0x3a88
jne 0x10069e51
mov ecx, 0x656d
mov word [0x1007de24], cx
jmp 0x10069e51
mov edx, 0x74
mov eax, 0x65
mov word [0x1007de26], dx
mov ecx, 0x72
mov word [0x1007de27], ax
mov word [0x1007de28], cx
jmp 0x10069e51
cmp esi, 0x6275
ja 0x10069e49
je 0x10069e29
mov eax, esi
sub eax, 0x3b24
je 0x10069e16
sub eax, 0x4e
je 0x10069d6e
jmp 0x10069e51
mov edx, 0x73
mov word [0x1007de29], dx
mov edi, 0x1007de20
jmp 0x10069e51
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x10d8
call fcn.10069b40
add esp, 0xc
test eax, eax
je 0x10069e51
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0x62c3
je 0x10069e66
add esi, 0x4e
cmp esi, dword [ebp + 8]
jbe 0x10069d40
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cdq
lcall 0xb84d, 0x8b8b1137
pop edi
and ecx, 0xf000
xor eax, eax
cmp ecx, 0x4000
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006f8d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, 0x1505
test edx, edx
je 0x1006f8fc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
movzx edi, byte [eax + esi]
mov ebx, ecx
shl ebx, 5
add ecx, ebx
inc eax
add ecx, edi
cmp eax, edx
jb 0x1006f8e7
pop edi
pop esi
pop ebx
mov eax, 0x4f8b588f
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x10
imul edx, edx, 0x186a0
mov eax, ecx
sub eax, edx
pop ebp
ret
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10007c2e
pop dword [ebp - 0x1c]
mov eax, 0x10007c2e
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x4c1e2e2
add dword [ebp - 0x2c], 0x49906269
mov dword [ebp - 0x28], 0x2c1209d1
sub dword [ebp - 0x28], 0xf9debd8c
mov dword [ebp - 0x24], 0xaedc3af7
sub dword [ebp - 0x24], 0x628ff6c9
mov dword [ebp - 0x20], 0xac8a252f
sub dword [ebp - 0x20], 0xac8a252f
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x9381f6fe
sub eax, 0x838176aa
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x4257de43
sub dword [ebp - 0x2c], 0xcde574ed
mov dword [ebp - 0x28], 0x15d2f9ba
add dword [ebp - 0x28], 0x2b9967bb
mov dword [ebp - 0x24], 0xc88c4253
sub dword [ebp - 0x24], 0x651cd5e7
mov dword [ebp - 0x20], 0x511a0472
sub dword [ebp - 0x20], 0x511a0472
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ab42
push 0
call eax
mov ecx, 0xfa94923b
add ecx, 0x56bc5ea
mov edx, eax
mov ebx, 0x79366524
sub ebx, 0x69356b24
add ebx, dword [ebp - 0x1c]
mov edi, 0xc5bd0ff1
sub edi, 0x300c543d
sub dword [ebp - 0x14], edi
mov esi, dword [ebx]
sub dword [ebp - 0x10], ecx
sub esi, edi
add dword [ebp - 0x10], 0xf68d15af
mov dword [edx], esi
xor dword [ebp - 0xc], 0x90f9980a
add edx, 0xc8f255a4
add edx, 0x370daa60
add ebx, 0x3365b3c9
add ebx, 0xcc9a4c3b
loop 0x10007d46
add eax, 0xfbd4fcad
add eax, 0x42c56ba
xor ebx, ebx
add ebx, eax
add eax, 0x812ecdb9
sub eax, 0x812ecdb4
mov ecx, 0xbdb2d738
sub ecx, 0xadb2d738
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1061940
Capabilities:
Encode data using xor

Disassembly:
jmp 0x106194a
pushal
call 0x1061950
pop ebp
sub ebp, 0x10
sub ebp, 0xc61940
jmp 0x1061966
mov eax, 0xc61940
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c9
mov edx, 0x78b571ad
xor byte [eax], dl
inc eax
dec ecx
jne 0x106197d
jmp 0x1061990
pushal
and al, 0x91
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
sub al, 0x6c
push ebp
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
scasb al, byte es:[edi]
pushal
adc eax, 0xadadada5
pop ss
test dword [ebp + 0x4f5aadad], ebp
scasb al, byte es:[edi]
sub al, 0xa1
lodsd eax, dword [esi]
lodsd eax, dword [esi]
lodsd eax, dword [esi]
scasb al, byte es:[edi]
push 0x5189c920
and al, 0xa9
mov ebp, edi
invalid
Function at 0x40179b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017d9
jl 0x4017bd
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017d9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017de
jl 0x4017d9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017de
jmp 0x401866
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401866
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401866
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00401692
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401859
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x40185b
jmp 0x401866
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40180d
leave
ret

Function at 0x402880
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4094b4]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd8]
push ebx
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0xd4]
xor ebx, ebx
push ebx
mov byte [ebp - 0x71], bl
mov dword [ebp - 0x78], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402908
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4028e6
push dword [ebp - 0x80]
lea eax, [ebp - 0x70]
push eax
push 1
push esi
call edi
add esp, 0x10
mov byte [ebp - 0x71], 1
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x402903
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp byte [ebp - 0x71], bl
jne 0x402914
push dword [ebp - 0x80]
push ebx
push 1
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00403a17
add ebp, 0xcc
leave
ret
Function at 0x402a4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4094b4]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402acb
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402aab
mov byte [ebp - 0x71], bl
jmp 0x402abd
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402ad6
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00403a17
add ebp, 0xcc
leave
ret

Function at 0x40373c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ecx, ecx
push esi
push edi
mov byte [ebp - 8], cl
xor eax, eax
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp byte [ebp - 8], cl
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], 4
jne 0x4037ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
mov esi, 0x20019
push esi
push ecx
mov ebx, str.SOFTWAREAdobeAdobe_Acrobat9.0Language
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x4037af
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407008
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 8], 0
jne 0x4037ed
lea eax, [ebp - 4]
push eax
push esi
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x4037ed
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x407008
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
xor esi, esi
mov edi, 0x4093a0
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.MSVCR80.dll__stricmp]
test eax, eax
pop ecx
pop ecx
je 0x403812
inc esi
add edi, 8
cmp esi, 0x1d
jb 0x4037f6
jmp 0x403814
mov bl, 1
neg bl
lea ecx, [ebp - 0x14]
sbb ebx, ebx
and ebx, esi
push dword [ebx*8 + 0x4093a4]
call fcn.004036fb
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402e50
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4038a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4094b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x244
xor esi, esi
lea eax, [ebp - 0x248]
push esi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov edi, 0x122
push edi
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4038f9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403a17
leave
ret
push str.kernel32.dll
lea eax, [ebp - 0x248]
push edi
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x4038e9
push str.HeapSetInformation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
jne 0x40393d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x4038eb
push esi
push esi
push 1
push esi
call eax
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x403932

Function at 0x403a17
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4094b4]
jne 0x403a21
repz ret
jmp fcn.0040405e

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40bdb9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x40bdc8
pop dword [ebp - 0x38]
mov eax, 0x40bdc8
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x2f2468fa
add dword [ebp - 0x48], 0x1f2ddc51
mov dword [ebp - 0x44], 0xc1c82a8d
sub dword [ebp - 0x44], 0x8f94de48
mov dword [ebp - 0x40], 0x554b5d22
add dword [ebp - 0x40], 0xf700e70c
mov dword [ebp - 0x3c], 0x61771b30
add dword [ebp - 0x3c], 0x9e88e4d0
lea eax, [ebp - 0x48]
push eax
mov eax, 0x720f2f3b
sub eax, 0x71ce5ee7
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xcf9cd6e0
add dword [ebp - 0x48], 0xa4d59276
mov dword [ebp - 0x44], 0xfcb97a6a
add dword [ebp - 0x44], 0x44b2e70b
mov dword [ebp - 0x40], 0x1cbaf570
sub dword [ebp - 0x40], 0xb94b8904
mov dword [ebp - 0x3c], 0x909db9dd
add dword [ebp - 0x3c], 0x6f624623
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xf91b8ab3
sub eax, 0xf8daba67
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x33fc6
push 0
call eax
mov ecx, 0x31dd
mov edx, eax
mov esi, 0x2369751
sub esi, 0x1f4e751
add esi, dword [ebp - 0x38]
mov ebx, 0x579b11f3
sub dword [ebp - 0x24], 0x322ad304
mov edi, dword [esi]
sub dword [ebp - 0x1c], 0x82faddbd
xor edi, ebx
mov dword [edx], edi
add dword [ebp - 0x34], 0xb93eaac0
add edx, 4
add esi, 0xe843edb6
sub esi, 0xe843edb2
loop 0x40bed9
add eax, 0xba47
mov ebx, eax
add eax, 5
mov ecx, 0x7c07d057
sub ecx, 0x7bc7d057
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x10002bc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x10002c18
cmp byte [esi + ebx - 1], 0xa
je 0x10002bec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1000a0a4], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10003170
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x1000a0b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10003330
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x1000a0b4]
movzx eax, al
bt eax, esi
jae 0x10003390
mov ecx, dword [0x1000a0a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10003235
test byte [0x10005738], 8
jne 0x100032d0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10005748], 8
jne 0x10003280
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 0x10003204
cmp esi, 3
jbe 0x10003240
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]
add esp, 0xe0
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 + 0x10007254]
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 0x10003204
mov ecx, dword [0x1000a0b4]
test ecx, ecx
je 0x10003370
mov dword [esp], 0x10005748
call dword [0x1000a0b4]
test al, 8
je 0x100031db
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 0x100031db
mov ebx, dword [0x1000a0b4]
test ebx, ebx
je 0x10003350
mov dword [esp], 0x10005738
call dword [0x1000a0b4]
test al, 8
je 0x100031c6
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x100031ce
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1000a0b4
call sym._load_func.part.0
jmp 0x1000318d
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1000a0b4
call sym._load_func.part.0
jmp 0x100032da
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1000a0b4
call sym._load_func.part.0
jmp 0x1000328e
mov eax, 0xffffffff
jmp 0x10003235
Function at 0x401be9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x542040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x214], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x218], eax
test esi, esi
je 0x401d13
xor eax, eax
cmp word [esi], ax
je 0x401d13
push edi
push 4
push 0x487b2c
push esi
call fcn.0046d7c1
test eax, eax
lea edi, [esi + 8]
push 2
cmovne edi, esi
push 0x487b38
push edi
call fcn.0046d7c1
push 0x20a
mov esi, eax
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0046b980
test esi, esi
lea ecx, [edi + 4]
push 0x104
cmovne ecx, edi
lea eax, [ebp - 0x210]
push ecx
push 0x105
push eax
call fcn.0046d8c9
lea eax, [ebp - 0x210]
push 0x2e
push eax
call fcn.0046afcc
add esp, 0x3c
mov esi, eax
pop edi
test esi, esi
je 0x401cc6
xor eax, eax
mov word [esi], ax
inc esi
add esi, 1
je 0x401cc6
push str.HTML
push esi
call fcn.0046d2a2
pop ecx
pop ecx
test eax, eax
je 0x401cc6
push 0x487b4c
push esi
call fcn.0046d2a2
pop ecx
pop ecx
test eax, eax
je 0x401cc6
push esi
jmp 0x401cc8
push 0x17
lea eax, [ebp - 0x210]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x401d13
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0x214]
mov dword [ecx], eax
test eax, eax
je 0x401d13
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
test eax, eax
je 0x401d13
mov al, 1
jmp 0x401d15
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00469944
leave
ret

Function at 0x402188
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x542040]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
cmp dword [ebp + 0xc], esi
jbe 0x4021fc
mov edi, eax
test esi, esi
je 0x4021c7
push 0x487b9c
call ebx
push 1
lea eax, [esp + 0x20]
mov ecx, edi
push eax
call fcn.004015c9
cmp dword [esp + 0x30], 7
lea eax, [esp + 0x1c]
cmova eax, dword [esp + 0x1c]
push eax
call ebx
lea ecx, [esp + 0x1c]
call fcn.00402b27
inc esi
add edi, 0x10
cmp esi, dword [ebp + 0xc]
jb 0x4021bc
mov edi, dword [esp + 0x14]
push 0x487ba0
call ebx
call fcn.00401ae2
push edi
mov ecx, dword [eax + 0x204]
call ecx
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469944
mov esp, ebp
pop ebp
ret 0xc