joyce8/EMBER2024-capa huggingface dataset:
Function at 0x300058b3
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x3002ed00]
push ebx
xor ebx, ebx
mov dword [0x3002ac1c], eax
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, ebx
mov dword [0x3002ac18], eax
je 0x30005a46
cmp dword [eax], 0x1c50
jne 0x30005a46
cmp dword [eax + 0x20], ebx
je 0x30005a46
cmp dword [eax + 0x14], ebx
je 0x30005a46
cmp dword [eax + 0x1c], ebx
je 0x30005a46
cmp dword [0x3002ed10], ebx
jne 0x30005911
cmp dword [eax + 0x24], ebx
je 0x30005a46
cmp word [eax + 0xb6], bx
jne 0x30005a46
cmp word [eax + 0x2be], bx
jne 0x30005a46
cmp word [eax + 0x4c6], bx
jne 0x30005a46
cmp word [eax + 0x6ce], bx
jne 0x30005a46
cmp word [eax + 0x8d6], bx
jne 0x30005a46
cmp word [eax + 0xade], bx
jne 0x30005a46
cmp word [eax + 0xb4e], bx
jne 0x30005a46
cmp word [eax + 0xd56], bx
jne 0x30005a46
cmp word [eax + 0xdc6], bx
jne 0x30005a46
cmp word [eax + 0xe36], bx
jne 0x30005a46
cmp word [eax + 0x1416], bx
jne 0x30005a46
cmp word [eax + 0x1c16], bx
jne 0x30005a46
cmp byte [eax + 0xf3b], bl
jne 0x30005a46
cmp byte [eax + 0x103f], bl
jne 0x30005a46
cmp byte [eax + 0x1143], bl
jne 0x30005a46
cmp byte [eax + 0x120f], bl
jne 0x30005a46
cmp byte [eax + 0x1c4f], bl
jne 0x30005a46
mov eax, dword [eax + 0x28]
push 1
test al, 0x20
pop ecx
je 0x300059ed
mov dword [0x3002eab4], ecx
test ah, 0x80
je 0x300059f8
mov dword [0x3002ed20], ecx
test eax, 0x20000
je 0x30005a05
mov dword [0x3002ed28], ecx
test ah, 0x20
je 0x30005a10
mov dword [0x3002ed14], ecx
test ah, 0x40
je 0x30005a1b
mov dword [0x3002ed18], ecx
test eax, 0x40000
je 0x30005a28
mov dword [0x3002ed2c], ecx
test eax, 0x80000
je 0x30005a35
mov dword [0x3002ed30], ecx
test eax, 0x100000
je 0x30005a42
mov dword [0x3002ed34], ecx
mov eax, ecx
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x3000749a
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
call fcn.3000b6d4
test eax, eax
je 0x300074aa
int3
call fcn.3000adb9
Function at 0x3000800a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
mov al, byte [0x30007f9e]
push ebx
push esi
push edi
push 0xe
mov byte [ebp - 1], al
pop ecx
xor esi, esi
push 0xfffffffffffffff8
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x3c]
mov dword [ebp - 0x40], esi
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov edi, dword [sym.imp.USER32.DLL_SetWindowPos]
push 3
push esi
push esi
push esi
mov ebx, eax
push esi
push 0xfffffffffffffffe
push ebx
call edi
push 3
push esi
push esi
push esi
push esi
push esi
push ebx
call edi
push 3
push esi
push esi
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
mov edi, dword [ebp + 0xc]
cmp dword [edi + 0x1c], esi
je 0x3000810a
push 0x30007fa2
call fcn.3000d867
test eax, eax
je 0x3000810a
push dword [0x300320bc]
lea eax, [ebp - 0x5c]
push 0x30007fb2
push 0x19
push eax
call dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
add esp, 0x10
lea eax, [ebp - 0x160]
push eax
call fcn.3000aae1
test eax, eax
je 0x3000814c
mov esi, 0x30007fb6
push esi
call fcn.300256b0
mov edi, eax
lea eax, [ebp - 0x160]
push eax
call fcn.300256b0
lea ecx, [edi + eax + 1]
mov eax, 0x104
cmp ecx, eax
jg 0x3000814c
push eax
lea eax, [ebp - 0x160]
push eax
push esi
call fcn.3000f38f
lea eax, [ebp - 0x160]
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x24], 0xa
call dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
jmp 0x3000814c
mov eax, dword [edi + 0x24]
cmp eax, esi
jne 0x30008114
lea eax, [ebp - 1]
mov edi, dword [edi + 0x64]
cmp edi, esi
jne 0x3000811e
lea edi, [ebp - 1]
push edi
push eax
push dword [0x300320bc]
lea eax, [ebp - 0x564]
push 0x30007fc6
push 0x401
push eax
call dword [sym.imp.SHLWAPI.DLL_wnsprintfA]
add esp, 0x18
lea eax, [ebp - 0x564]
push eax
call fcn.3000c391
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x3000a2fe
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.USER32.DLL_GetDlgItem]
push eax
call dword [sym.imp.USER32.DLL_ShowWindow]
ret 8

Function at 0x3000adb9
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push 0x24
pop ecx
xor eax, eax
lea edi, [ebp - 0x90]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]

Function at 0x3000af0b
Capabilities:
Link many functions at runtime

Disassembly:
or dword [0x3002eae4], 0xffffffff
push ebx
push esi
xor ebx, ebx
push edi
mov dword [0x3002a670], ebx
mov dword [0x3002ead8], ebx
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov dword [0x3002eae0], eax
mov ecx, 0x7c6
xor eax, eax
mov edi, 0x3002b920
push 0x3002b94c
rep stosd dword es:[edi], eax
mov dword [0x3002ed08], ebx
mov dword [0x3002a678], ebx
call esi
call fcn.3000adb9
Function at 0x3000bd44
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [0x3002ac18]
add eax, 0xf3c
push eax
push 0x3002a128
call fcn.3000b920
mov eax, dword [0x3002ac18]
test byte [eax + 0x28], 1
je 0x3000bd69
jmp fcn.3000bb4b
add eax, 0x1040
push eax
push 0x3002a140
call fcn.3000b920
ret

Function at 0x3000c391
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
and dword [ebp - 0x3c], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0xe
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
test esi, esi
rep stosd dword es:[edi], eax
je 0x3000c40a
cmp dword [0x3002eab4], eax
jne 0x3000c3c3
push esi
call fcn.3000eff6
test eax, eax
je 0x3000c3cd
push esi
call fcn.3000c282
test eax, eax
jne 0x3000c40a
lea eax, [ebp - 0x860]
push 0x824
push eax
push esi
call fcn.30025695
lea eax, [ebp - 0x860]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x20], 0xa
call dword [sym.imp.SHELL32.DLL_ShellExecuteExA]
test eax, eax
jne 0x3000c40a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
pop esi
leave
ret 4

Function at 0x3000c5f6
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x3000c66c
xor edi, edi
push edi
push eax
call dword [fcn.30001128]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x3000c661
cmp eax, edi
je 0x3000c661
push edi
push eax
push edi
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
je 0x3000c661
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x3000c65c
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [esi + 4]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
or dword [esi], 0xffffffff
xor eax, eax
pop ebx
jmp 0x3000c66e
push 1
pop eax
jmp 0x3000c66e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [esi], 0xffffffff
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x3000cc58
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov word [eax], si
call fcn.3000c5e4
cmp dword [0x3002ed10], esi
jne 0x3000d3ce
push 0x106
push 0x10
call fcn.30024221
cmp eax, esi
je 0x3000ccb1
mov ecx, eax
call fcn.30007943
mov dword [ebp - 4], eax
jmp 0x3000ccb4
mov dword [ebp - 4], esi
cmp dword [ebp - 4], esi
je 0x3000d3ce
push 2
push 0x14
push 0x14
push dword [ebp - 4]
call fcn.3002714d
test eax, eax
je 0x3000d3ce
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [0x3002ac18]
cmp dword [ebp + 0x14], esi
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x30], eax
je 0x3000cd16
cmp dword [0x3002eaf4], esi
jne 0x3000d3ce
mov ebx, 0x80000000
mov dword [ebp - 0x88], 0xbfffffff
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x30], eax
jmp 0x3000cd1c
mov ebx, dword [ebp - 0x8c]
cmp ebx, dword [ebp - 0x88]
jae 0x3000cdbc
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x70]
push 0x1c
push eax
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp eax, 0x1c
mov dword [ebp - 0xc], eax
je 0x3000cd5c
mov ebx, dword [ebp - 0x88]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
jmp 0x3000cda7
cmp dword [ebp - 0x60], 0x1000
jne 0x3000cda7
cmp dword [ebp - 0x5c], 4
je 0x3000cd71
cmp dword [ebp - 0x5c], 0x40
jne 0x3000cda7
cmp dword [ebp - 0x58], 0x20000
jne 0x3000cda7
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xffffffff
jae 0x3000cda7
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x70]
add dword [ebp - 0x40], ecx
cdq
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x28], edx
push dword [ebp - 4]
mov dword [ebp - 0x24], ecx
call fcn.30027283
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp - 0x64]
ja 0x3000cdb5
mov eax, dword [ebp - 0x64]
add ebx, eax
jmp 0x3000cd1c
lea eax, [ebp - 0x34]
push esi
push eax
push esi
push 4
push dword [0x3002b2d0]
call fcn.30020011
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [ebp + 0x10]
call fcn.3000c734
mov esi, dword [ebp + 8]
xor edi, edi
cmp word [esi], di
je 0x3000d3e6
push esi
call fcn.3000c772
push dword [ebp + 0x10]
call fcn.3000c5e4
cmp dword [ebp - 4], edi
mov word [esi], di
je 0x3000d406
mov ecx, dword [ebp - 4]
call fcn.3001047e
push dword [ebp - 4]
call fcn.3002425c
xor eax, eax
jmp 0x3000d3c7

Function at 0x3000d867
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4
Function at 0x3000d87e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x3000d891
xor eax, eax
jmp 0x3000d894
and eax, 0x10
ret 4

Function at 0x3000d8af
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x3000d97f
push dword [ebp + 8]
call fcn.300256b0
mov ecx, 0x104
cmp eax, ecx
jge 0x3000d97f
lea eax, [ebp - 0x104]
push ecx
push eax
push dword [ebp + 8]
call fcn.30025695
lea eax, [ebp - 0x104]
push eax
call fcn.300256b0
lea esi, [ebp + eax - 0x104]
lea eax, [ebp - 0x104]
push eax
call fcn.3000d87e
test eax, eax
jne 0x3000d97a
lea eax, [ebp - 0x104]
mov ebx, esi
push eax
call fcn.3000ebf3
test edi, edi
mov esi, eax
je 0x3000d925
mov byte [ebx], 0x5c
lea eax, [ebp - 0x104]
cmp esi, eax
jbe 0x3000d97f
and byte [esi], 0
push 1
pop edi
lea eax, [ebp - 0x104]
push eax
call fcn.3000d87e
test eax, eax
je 0x3000d90e
mov byte [esi], 0x5c
inc esi
xor edi, edi
mov al, byte [esi]
cmp al, 0x5c
je 0x3000d958
test al, al
je 0x3000d958
inc esi
jmp 0x3000d94b
cmp byte [esi], 0x5c
jne 0x3000d963
and byte [esi], 0
push 1
pop edi
lea eax, [ebp - 0x104]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
je 0x3000d97f
test edi, edi
jne 0x3000d945
push 1
pop eax
jmp 0x3000d981
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3000e5db
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
push edi
push 0x80
push 4
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x3000e630
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
mov dword [ebp - 4], eax
je 0x3000e61d
cmp eax, 0x21
je 0x3000e61d
cmp eax, 0x36
jne 0x3000e65a
inc ebx
cmp ebx, 5
jge 0x3000e65a
push 0xfa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x3000e5e6
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp + 8]
call fcn.300256b0
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x3000eb17
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [0x3002eaf4], esi
je 0x3000eb33
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
jmp 0x3000eb7b
push esi
push esi
push esi
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call ebx
mov edi, eax
lea eax, [ebp - 4]
inc edi
push edi
push eax
call fcn.300244ab
test eax, eax
je 0x3000eb7b
push esi
push esi
push edi
push dword [ebp - 4]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push esi
call ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push dword [ebp - 4]
mov esi, eax
call fcn.300245ad
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x3001eb1e
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
mov dword [ebp - 0x140], 0
lea eax, [ebp - 0x1fc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov cx, word [ebp - 0x1fc]
mov word [ebp - 0x38], cx
mov dx, word [ebp - 0x1dc]
mov word [ebp - 0x36], dx
mov ax, word [ebp - 0x1da]
mov word [ebp - 0x34], ax
mov word [ebp - 0x32], 0
mov dword [ebp - 0x1d8], 0x94
lea ecx, [ebp - 0x1d8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]

Function at 0x3001ed5c
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jne 0x3001ed79
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
cmp dword [ebp + 0x10], 0
jne 0x3001ed90
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x98
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.300284e0
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x3001edb4
mov ecx, dword [ebp + 0x1c]
add ecx, 7
mov dword [ebp - 8], ecx
jmp 0x3001edbd
mov edx, dword [ebp + 0x1c]
add edx, 6
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
and eax, 4
test eax, eax
je 0x3001edd0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 0x34
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], edx
je 0x3001ede7
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 0x3c
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], edx
je 0x3001edfe
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0xc
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp + 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax + 8], 0x20
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xc], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0x10]
add edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0x14], edx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.3001eca7
Function at 0x3002073d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3002076e
cmp dword [ebp - 8], 0xffffffff
jne 0x300207cc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x300207bc
push 0
push 0
push 0x10e
lea ecx, [ebp - 0x120]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
test eax, eax
jle 0x300207bc
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x300207c8
cmp dword [ebp - 8], 0xffffffff
jne 0x300207cc
xor eax, eax
jmp 0x3002084a
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [fcn.30001128]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x300207f3
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x3002084a
push 0
push 0
push 0
push 2
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x3002081e
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x3002084a
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x300208d7
Capabilities:
Print debug messages
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 0xc], 0
jne 0x300208f4
push 0x30001c78
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call dword [sym.imp.KERNEL32.DLL_DebugBreak]
push 0x428
call fcn.30020121
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x30020911
mov eax, 0x8007000e
jmp 0x30020c6a
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
push 0
push 0x1f03ff
call fcn.30020850
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x24]
cmp dword [edx + 4], 0
jne 0x300209a9
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jg 0x30020957
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x3c], eax
jmp 0x3002096f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
and eax, 0xffff
or eax, 0x70000
or eax, 0x80000000
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x80070057
je 0x30020987
cmp dword [ebp - 0x34], 0x80070002
jne 0x30020993
mov dword [ebp - 0x34], 1
jmp 0x30020c58
cmp dword [ebp - 0x34], 0
jl 0x30020c58
mov dword [ebp - 0x34], 0x80004005
jmp 0x30020c58
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], eax
jne 0x300209c2
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], 0
jmp 0x300209d5
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
mov edx, dword [ebp - 0x24]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x41c], ecx
mov edx, dword [ebp - 0x24]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x20], 0x1003f
mov edx, dword [ebp - 0x24]
add edx, 0x20
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x30020a2f
jmp 0x30020c58
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x2ec], 0x2cc
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x300
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x2f0
push eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.30021335
cmp dword [ebp - 0x34], 0
je 0x30020c67
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.3002013b
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 0x18
Function at 0x30021cdb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x10]
push eax
push 0
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.30021564

Function at 0x3002228f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x300222d2
cmp dword [ebp + 8], 0xffffffff
je 0x300222d2
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x300222d2
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx], 0x4550
je 0x300222d2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x300222db
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x30022304
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 6]
cmp dword [ebp - 8], eax
jae 0x3002233c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
cmp edx, dword [ecx + 0xc]
jb 0x30022331
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
cmp dword [ebp + 0x10], ecx
jae 0x30022331
mov eax, dword [ebp - 4]
jmp 0x3002233e
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
jmp 0x300222fb
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc