joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004d90
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x44
push ebx
push esi
push edi
mov esi, eax
lea eax, [esp + 0x10]
xor ebx, ebx
push eax
mov edi, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jge 0x10004dbc
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x44
ret
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0xc]
push ecx
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x10004db3
push ebp
push 0x3c
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.1000a0a0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov eax, 0x1000e430
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], str.Open
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebp, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10004e5d
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x10004e6d
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10004e6d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp ebp, ebx
jne 0x10004e82
cmp esi, ebx
je 0x10004e82
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.10004520
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret

Function at 0x10004e90
Capabilities:
Persist via run registry key

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, eax
mov dword [esp + 8], 0
test edi, edi
je 0x10004ef8
test esi, esi
je 0x10004ef8
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10004ef8
mov edx, dword [esp + 8]
lea ecx, [esi + esi]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
push edx
lea esi, [esp + 0x18]
call fcn.10003520
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x10005650
Capabilities:
Shutdown system

Disassembly:
jmp 0x10005650
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x128], eax
push 0x114
lea eax, [esp + 0x18]
push 0
push eax
call fcn.1000a0a0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x24], 2
jne 0x100056fd
lea edx, [esp]
push edx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100056c0
xor eax, eax
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1000669a
add esp, 0x12c
ret
lea eax, [esp + 8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edx, dword [esp]
push 0
push 0
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100056a9
xor eax, eax
cmp dword [esp + 0x130], eax
setne al
inc eax
cmp dword [esp + 0x134], 0
je 0x10005717
or eax, 4
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1000669a
add esp, 0x12c
ret

Function at 0x10005820
Capabilities:
Check os version

Disassembly:
sub esp, 0x11c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x118], eax
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowW]
push 0
push str.WindowsScreenSaverClass
call esi
test eax, eax
jne 0x10005938
push eax
push str.D3DSaverWndClass
call esi
test eax, eax
jne 0x10005938
push eax
push str.Blank_Screen_Saver
call esi
test eax, eax
jne 0x10005938
push eax
push str.TSaverMainForm
call esi
test eax, eax
jne 0x10005938
push 0x114
push eax
lea eax, [esp + 0x10]
push eax
call fcn.1000a0a0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10005953
cmp dword [esp + 0x18], 2
jne 0x10005953
cmp dword [esp + 0xc], 5
jb 0x100058f3
push 0
lea edx, [esp + 8]
push edx
push 0
push 0x72
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x10005953
mov eax, dword [esp + 4]
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1000669a
add esp, 0x11c
ret
push 0x2000000
push 0
push 0
push str.Screen_Saver
call dword [sym.imp.USER32.dll_OpenDesktopW]
test eax, eax
jne 0x10005931
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1000669a
add esp, 0x11c
ret
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.1000669a
add esp, 0x11c
ret
mov ecx, dword [esp + 0x11c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1000669a
add esp, 0x11c
ret
Function at 0x10006160
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test ebp, ebp
je 0x100062d4
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100062d4
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov esi, ebp
push 0xfffffffffffffff0
push esi
call edi
test eax, 0x40000000
je 0x100061ad
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x10006196
jmp 0x100061b1
test esi, esi
jne 0x100061b3
mov esi, ebp
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x100061c4
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
push 0xffffffffffffffec
push esi
call edi
mov dword [esp + 0x10], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
test eax, eax
je 0x10006279
cmp eax, esi
je 0x10006279
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push eax
call edi
mov ebp, eax
test ebp, ebp
je 0x10006279
push 0
push esi
call edi
mov ebx, eax
test ebx, ebx
je 0x10006279
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
test edi, edi
je 0x10006279
cmp ebp, edi
je 0x10006221
push 1
push ebp
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10006297
cmp ebp, ebx
je 0x10006247
cmp edi, ebx
je 0x10006247
push 1
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
jne 0x10006247
cmp ebp, edi
je 0x10006297
push 0
push ebp
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x10006297
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x18], eax
cmp ebp, ebx
je 0x10006237
cmp edi, ebx
je 0x10006237
push 0
push edi
push ebx
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x10006237
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [esp + 0x18], eax
test byte [esp + 0x10], 8
jne 0x100062b1
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
call dword [sym.imp.USER32.dll_IsIconic]
neg eax
sbb eax, eax
and eax, 4
add eax, 5
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
xor eax, eax
pop ebp
pop ecx
ret

Function at 0x1000669a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100066a4
repz ret
jmp fcn.10006b0d
Function at 0x100091d9
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10009214
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100091fb
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1000920c
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10009216
inc edi
add eax, 0x28
cmp edi, esi
jb 0x100091f1
xor eax, eax
pop edi
pop esi
ret
Function at 0x10009830
Capabilities:
Contain obfuscated stackstrings
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1000984d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x10009848
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x10009832
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000983a
cmp edx, ebx
jne 0x10009988
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10009809
add eax, dword [eax + 4]
jmp 0x100097f6
mov dword [ebp + 0xc], ebx
jmp 0x10009858
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x10009870
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000988e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x100098ec
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x100098d3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x100098dc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x100098e6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x100098c8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x10009852
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10009939
dec eax
je 0x10009930
sub eax, 3
je 0x10009927
mov dword [ebp - 4], 0x40
jmp 0x10009956
mov dword [ebp - 4], 4
jmp 0x1000993c
mov dword [ebp - 4], 0x20
jmp 0x1000993c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x10009988
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10009908
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.10009199
pop es
jmp 0x100099e5
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
test dword [esp + edi*8 - 0x39a80001], esi
test dword [ebp + 0x4afffffc], esi
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
invalid
invalid
invalid
cld
invalid
invalid
Function at 0x1000a053
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fimul word [ebx + ebp*8 + 0x3d]
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
invalid
inc dword [eax]
Function at 0x401460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ecx + 0x75ffffff]
push esi
mov esi, dword [ebp + 8]
cmp eax, 3
ja case.default.0x40148e
jmp dword [eax*4 + 0x4015cc]
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x401515
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x401515
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x104
push str.drivers
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.00412195
add esp, 0x10
jmp 0x401515
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401515
push 1
push ecx
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401520
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x10
jb 0x401546
lea ecx, [edi + edi + 2]
push ecx
call fcn.0041018b
add esp, 4
jmp 0x401549
lea eax, [esi + 0xc]
inc edi
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], 0
mov dword [esi + 8], edi
mov word [eax], dx
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401564
sub eax, edx
mov edx, dword [esi]
sar eax, 1
mov edi, eax
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push edx
call fcn.00410610
mov eax, dword [esi + 8]
add esp, 0xc
mov ecx, edi
cmp edi, eax
pop edi
jb 0x401598
lea ecx, [eax - 1]
test eax, eax
jne 0x4015b0
mov dword [esi + 4], eax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004104b1
mov esp, ebp
pop ebp
ret

Function at 0x401c40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx]
push esi
lea eax, [ebp - 4]
push eax
or esi, 0xffffffff
push edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [ebp - 8], eax
and eax, ecx
cmp eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x401c89
call esi
test eax, eax
jne 0x401c89
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edi, edi
je 0x401cae
mov dword [edi], 0
pop esi
mov esp, ebp
pop ebp
ret
call esi
test eax, eax
je 0x401c9d
jle 0x401ca2
and eax, 0xffff
or eax, 0x80070000
jmp 0x401ca2
mov eax, 0x8007054f
mov edx, dword [ebp - 4]
test edi, edi
je 0x401cab
mov dword [edi], eax
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add ecx, 0x18
pop ebp
jmp fcn.00401bc0

Function at 0x404800
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x42145c]
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [0x421458]
mov dword [ebp - 0x424], ecx
mov ecx, dword [0x421460]
xor ebx, ebx
push ebx
mov dword [ebp - 0x41c], ecx
push esi
lea ecx, [ebp - 0x424]
mov dword [ebp - 0x420], edx
mov edx, dword [0x421464]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x418], edx
mov dword [ebp - 0x420], 7
call fcn.00401ab0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404977
push ebx
lea edx, [ebp - 0x414]
push edx
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push 0xc
lea edx, [ebp - 0x410]
push edx
push 0x2d1400
push eax
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x410], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4048de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x4048cd
jle 0x4048d2
and eax, 0xffff
or eax, 0x80070000
jmp 0x4048d2
mov eax, 0x8007054f
cmp esi, ebx
je 0x404963
mov dword [esi], eax
jmp 0x404959
cmp esi, ebx
je 0x4048e4
mov dword [esi], ebx
cmp dword [ebp - 0x414], 0x28
jb 0x404959
cmp dword [ebp - 0x3e8], 0xe
jne 0x404959
mov edx, dword [ebp - 0x3f4]
cmp edx, 0x400
jae 0x404959
mov eax, 9
mov ecx, 0x421760
lea edx, [ebp + edx - 0x404]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x404957
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x404915
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x404957
cmp dword [ebp - 0x3e4], 0x14
jb 0x404953
lea edx, [ebp - 0x3dc]
call fcn.00404bc0
test eax, eax
je 0x404953
test esi, esi
je 0x404977
mov dword [esi], 0
jmp 0x404977
test esi, esi
jmp 0x40495b
xor ebx, ebx
cmp esi, ebx
je 0x404963
mov dword [esi], 0x80070032
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x404977
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 8

Function at 0x4054a0
Capabilities:
Enumerate pe sections

Disassembly:
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.004052a1
lodsd eax, dword [esi]
or dl, byte [ecx + 0x47b70fbf]
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.004052a1
aas
pop edx
bound edx, qword [ecx]
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x4054fb
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x4054f5
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x4054e6
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
Function at 0x405520
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004052a1
or byte [ebx + eax], 0x98
lea eax, [ebp - 0x58]
push eax
call fcn.004052b1
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00405266
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40558f
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
invalid
inc ebp

Function at 0x4055e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop es
sbb al, 0xf5
lea eax, [ebp - 0x40]
push eax
call fcn.004052b1
push eax
push esi
push dword [ebp + 8]
call fcn.00405266
add esp, 0x10
mov dword [ebp - 0x88], eax
invalid
Function at 0x407450
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x407465
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004052a1
loop 0x4074d9
lodsb al, byte [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004052a1
dec esi
leave
xchg esp, eax
imul ecx, dword [ecx - 0x75], 0x34
mov eax, dword [ebx]
idiv dword [eax + 0x50746547]
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40748e
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40748e
call fcn.004052a1
mov esi, 0x8b2ebc87
pop edx
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004052a1
mov eax, 0xff7fb78b
jne 0x4074d8
invalid
push dword [ebp + 4]
push dword [ebp]
call fcn.00405aa1
je 0x407582
in eax, 0xff
dec dword [edi]
test byte [ecx + 0x66000000], ah
cmp eax, dword [ebp + 0x10]
invalid
cmp ax, word [ebp + 0x10]
je 0x407516
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
call fcn.00401300
lea edx, [ebp - 0x30]
push edx
mov ecx, edi
call fcn.00407010
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x407582
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x407582
push eax
call fcn.0041021f
add esp, 4
jmp 0x407582
mov edx, dword [ebp - 0x60]
push edx
add esi, 2
push esi
call fcn.0040ffaa
add esp, 8
lea ecx, [ebp - 0x5c]
test eax, eax
je 0x4075a7
lea edi, [eax + 2]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.00401300
push eax
mov ecx, ebx
call fcn.00406da0
mov edx, edi
lea ecx, [edx + 2]
jmp 0x407550
mov si, word [edx]
add edx, 2
test si, si
jne 0x407550
sub edx, ecx
sar edx, 1
push edx
push edi
mov ecx, eax
call fcn.004053b0
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x40757f
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x40757f
push eax
call fcn.0041021f
add esp, 4
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
inc eax
mov dword [ebp - 0x68], eax
cmp eax, dword [ebp + 8]
jl 0x4074c7
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004104b1
mov esp, ebp
pop ebp
ret 0x10
push 0xffffffffffffffff
push esi
call fcn.00401300
lea ecx, [ebp - 0x5c]
lea edx, [ebp - 0x24]
xor eax, eax
push ecx
mov ecx, ebx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], ax
call fcn.00406da0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x30]
push edx
mov ecx, eax
call fcn.00403fc0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4075fa
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x4075fa
push eax
call fcn.0041021f
add esp, 4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x407582
lea edx, [ebp - 0x50]
cmp eax, edx
je 0x407582
push eax
call fcn.0041021f
add esp, 4
jmp 0x407582