joyce8/EMBER2024-capa huggingface dataset:
Function at 0x469710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x49c380
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 4]
cmp dword [esi + 0x24], eax
je 0x469778
push eax
mov edi, str.Field_does_not_match_message_type.
mov edx, str.AddDouble
mov ecx, esi
call fcn.00465a80
add esp, 4
cmp dword [esi + 0x1c], 3
je 0x469796
mov ecx, dword [ebx + 4]
push ecx
mov edi, str.Field_is_singular__the_method_requires_a_repeated_field.
mov edx, str.AddDouble
mov ecx, esi
call fcn.00465a80
add esp, 4
mov edx, dword [esi + 0x18]
mov edi, 5
cmp dword [edx*4 + 0x4a6880], edi
je 0x4697b8
mov ecx, dword [ebx + 4]
push esi
mov edx, str.AddDouble
call fcn.00465bd0
add esp, 4
cmp byte [esi + 0x20], 0
je 0x4697e8
mov eax, dword [esi + 0x38]
fld qword [ebp + 0x10]
movzx ecx, byte [eax + 0x1c]
movzx edx, byte [esi + 0x18]
mov eax, dword [ebx + 0x18]
add eax, dword [esp + 0x38]
sub esp, 8
fstp qword [esp]
push ecx
push edx
mov edx, dword [esi + 0x14]
push eax
mov ecx, esi
call fcn.0046d9e0
jmp 0x469818
mov eax, esi
call fcn.00465a20
mov ecx, dword [ebx + 0xc]
mov esi, dword [ecx + eax*4]
add esi, dword [esp + 0x38]
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
jne 0x46980a
inc eax
push eax
mov eax, esi
call fcn.0046ba90
mov edx, dword [esi + 4]
fld qword [ebp + 0x10]
mov eax, dword [esi]
fstp qword [eax + edx*8]
inc dword [esi + 4]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0047fe29
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46e120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49bf4b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
push ecx
xor ebx, ebx
push edx
mov dword [esp + 0x24], ebx
call fcn.0046fa80
test al, al
je 0x46e1a7
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x34]
mov byte [esi + 8], al
push 0x1c
mov byte [esi + 9], bl
call fcn.0048068d
add esp, 4
cmp eax, ebx
je 0x46e19c
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ebx
mov byte [eax], bl
mov dword [esi], eax
mov byte [esi + 0xa], bl
mov eax, dword [esi]
jmp 0x46e1b0
xor eax, eax
mov dword [esi], eax
mov byte [esi + 0xa], bl
mov eax, dword [esi]
jmp 0x46e1b0
mov eax, dword [esp + 0x18]
mov byte [eax + 0xa], bl
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0047fe29
add esp, 0x1c
ret 8
Function at 0x46e9a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49be59
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x50]
lea ebx, [esp + 0x54]
lea eax, [esp + 0xc]
mov ecx, ebp
mov dword [esp + 0x10], 0
call fcn.00471030
mov ebp, dword [ebp + 4]
mov ebx, dword [esp + 0xc]
cmp ebx, ebp
jne 0x46ea55
xor eax, eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partyprotobuf_files_srcgoogleprotobufextension_set.cc
mov dword [esp + 0x1c], 0x221
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], eax
mov byte [esp + 0x20], al
mov dword [esp + 0x48], eax
push 0x29
mov eax, str.CHECK_failed:_iter___extensions_.end__:
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 1
call fcn.00406840
push 0x25
mov eax, str.Index_out_of_bounds__field_is_empty_.
lea ecx, [esp + 0x24]
call fcn.00406840
lea ecx, [esp + 0x14]
call fcn.004237b0
mov dword [esp + 0x48], 0xffffffff
test byte [esp + 0x10], 1
je 0x46ea78
cmp dword [esp + 0x34], 0x10
jb 0x46ea78
mov eax, dword [esp + 0x20]
push eax
call fcn.0047fe1e
add esp, 4
movzx ecx, byte [ebx + 0x20]
mov eax, dword [ecx*4 + 0x4a67d8]
dec eax
cmp eax, 9
ja case.default.0x46ea89
jmp dword [eax*4 + 0x46eb24]
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov ebx, dword [eax + esi*8]
mov ecx, dword [eax + edi*8]
mov edx, dword [eax + edi*8 + 4]
mov dword [eax + edi*8], ebx
mov ebx, dword [eax + esi*8 + 4]
mov dword [eax + edi*8 + 4], ebx
mov dword [eax + esi*8], ecx
mov dword [eax + esi*8 + 4], edx
jmp case.default.0x46ea89
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebx]
fld dword [eax + edi*4]
fstp dword [esp + 0xc]
fld dword [eax + esi*4]
fstp dword [eax + edi*4]
fld dword [esp + 0xc]
fstp dword [eax + esi*4]
jmp case.default.0x46ea89
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebx]
fld qword [eax + edi*8]
fld qword [eax + esi*8]
fstp qword [eax + edi*8]
fstp qword [eax + esi*8]
jmp case.default.0x46ea89
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov dl, byte [eax + esi]
mov cl, byte [eax + edi]
mov byte [eax + edi], dl
mov byte [eax + esi], cl
jmp case.default.0x46ea89
mov ebx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov edx, dword [eax + esi*4]
mov ecx, dword [eax + edi*4]
mov dword [eax + edi*4], edx
mov dword [eax + esi*4], ecx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0047fe29
add esp, 0x40
ret 8
Function at 0x4721c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49e219
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [ebx + 4]
push eax
mov eax, dword [ebx + 0xc]
push eax
call fcn.0042d070
mov esi, eax
test esi, esi
jne 0x472221
xor al, al
jmp 0x472310
mov eax, dword [esi + 0x18]
mov byte [edi], al
cmp dword [esi + 0x1c], 3
sete cl
mov byte [edi + 1], cl
mov eax, dword [esi + 0x38]
mov al, byte [eax + 0x1c]
mov byte [edi + 2], al
mov dword [edi + 0xc], esi
mov edx, dword [esi + 0x18]
mov eax, dword [edx*4 + 0x4a6880]
cmp eax, 0xa
jne 0x4722fc
mov ebx, dword [ebx + 8]
mov eax, dword [esi + 0x2c]
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
mov dword [edi + 4], eax
xor edi, edi
cmp eax, edi
jne 0x4722d7
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], str.p:p_agentshpam2.eem_recipes201152726_base_branchesinputtools_win_release_branchgoogleclient_third_partyprotobuf_files_srcgoogleprotobufextension_set_heavy.cc
mov dword [esp + 0x20], 0xc1
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], edi
mov byte [esp + 0x24], 0
mov dword [esp + 0x50], edi
mov esi, dword [esi + 4]
push 0x31
mov eax, str.CHECK_failed:_output__message_prototype___NULL:
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 1
call fcn.00406840
push 0x40
mov eax, str.Extension_factorys_GetPrototype___returned_NULL_for_extension:
lea ecx, [esp + 0x28]
call fcn.00406840
push edi
push esi
or eax, 0xffffffff
lea esi, [esp + 0x2c]
call fcn.00407120
lea ecx, [esp + 0x18]
call fcn.004237b0
mov dword [esp + 0x50], 0xffffffff
test byte [esp + 0x14], 1
je 0x47230e
cmp dword [esp + 0x38], 0x10
jb 0x47230e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0047fe1e
add esp, 4
jmp 0x47230e
cmp eax, 8
jne 0x47230e
mov dword [edi + 4], 0x472160
mov edx, dword [esi + 0x30]
mov dword [edi + 8], edx
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0047fe29
mov esp, ebp
pop ebp
ret 8
Function at 0x4730d0
Capabilities:
Get common file path

Disassembly:
cmp dword [0x4c04d4], 0
jne 0x473188
cmp byte [0x4c03d0], 0
jne 0x47315d
push 0x4c03d0
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jb 0x473126
push 0x104
push 0x4c03d0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x4c03d0
call fcn.004817f0
add esp, 8
test eax, eax
je 0x473126
mov byte [eax + 1], 0
mov eax, 0x4c03d0
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x473130
mov ecx, dword [str._debug.log]
mov edx, dword [0x4ae528]
mov dword [eax], ecx
mov cx, word [0x4ae52c]
mov dword [eax + 4], edx
mov dl, byte [0x4ae52e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
push 0x4ae530
push 0x4c03d0
call fcn.0048357e
add esp, 8
mov dword [0x4c04d4], eax
test eax, eax
jne 0x47317b
xor al, al
ret
push 2
push 0
push eax
call fcn.0048361f
add esp, 0xc
mov al, 1
ret

Function at 0x473190
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49720b
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x294]
cmp dword [ebp + 0x10], 0
je 0x473311
push 0x104
lea eax, [esp + 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x74]
push 0x5c
push ecx
call fcn.00481fa9
add esp, 8
test eax, eax
je 0x473207
xor edx, edx
mov word [eax + 2], dx
push 0x104
lea eax, [esp + 0x78]
push 0x4ae534
push eax
call fcn.0048347e
xor ecx, ecx
add esp, 0xc
cmp dword [ebp + 0x14], 0x10
mov word [esp + 0x27a], cx
jb 0x473233
mov eax, dword [ebp]
jmp 0x473235
mov eax, ebp
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
mov esi, eax
test esi, esi
je 0x473311
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ee41
add esp, 4
mov edi, eax
cmp dword [ebp + 0x14], 0x10
jb 0x473279
mov ebp, dword [ebp]
push esi
push edi
or esi, 0xffffffff
push esi
push ebp
push 0
push 0xfde9
call ebx
test eax, eax
je 0x473301
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00485710
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push edi
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4732f1
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esp + 0x1c]
push eax
call ebx
jmp 0x473301
push 0x10
push str.Fatal_error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
mov dword [esp + 0x290], esi
call fcn.00480592
add esp, 4
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0047fe29
add esp, 0x27c
ret
Function at 0x473360
Capabilities:
Print debug messages
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x498b33
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x5c], 0
mov eax, dword [ebp]
cmp eax, dword [0x4c03c8]
jl 0x47351c
lea esi, [esp + 0x18]
lea ecx, [ebp + 8]
call fcn.00473600
mov ebx, 1
push 2
mov eax, 0x4ae570
mov ecx, esi
mov byte [esp + 0x60], bl
call fcn.00406840
cmp dword [0x4c03cc], 0
je 0x4733f1
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x4733ea
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x4c03cc], ebx
je 0x473469
call fcn.004730d0
test al, al
je 0x473469
cmp byte [0x4c04d9], 0
jne 0x47341c
push 0x4c020c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [0x4c04d9], bl
push 0x4c020c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x4c04d4]
push 2
push 0
push ecx
call fcn.0048361f
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0x2c], 0x10
jae 0x473449
lea eax, [esp + 0x18]
mov edx, dword [0x4c04d4]
push eax
push 0x4a85d8
push edx
call fcn.00481684
add esp, 0xc
push 0x4c020c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp], 3
jne 0x4734ee
mov eax, dword [0x4c04d4]
push eax
call fcn.00482b3a
add esp, 4
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47348f
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x4734ee
cmp dword [0x4c04dc], 0
lea esi, [esp + 0x34]
lea ecx, [ebp + 8]
je 0x4734c0
call fcn.00473600
push eax
mov byte [esp + 0x60], 2
call dword [0x4c04dc]
add esp, 4
mov ecx, esi
mov byte [esp + 0x5c], bl
call fcn.0047d500
jmp 0x4734ee
call fcn.00473600
push eax
mov byte [esp + 0x60], 3
call fcn.00473190
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call fcn.0047d500
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x2c], 0x10
jb 0x473507
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0047fe1e
add esp, 4
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
lea esi, [ebp + 0x68]
mov ecx, esi
mov dword [esp + 0x5c], 0xffffffff
call fcn.00473560
push esi
mov dword [esi], vtable.std::ios_base.0
call fcn.0047f3f3
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0047fe29
add esp, 0x4c
ret 4

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

Disassembly:
cmp dword [eax + 0x14], 8
jb 0x474618
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47462b
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x474630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49d4f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
mov ebp, 8
mov dword [esp + 0x18], 0
cmp dword [esi + 0x14], ebp
jb 0x47467c
mov ebx, dword [esi]
jmp 0x47467e
mov ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x474694
shr al, 4
and al, 1
jmp 0x474764
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00474fa0
mov dword [esp + 0x44], 4
mov edi, dword [esi + 0x10]
cmp dword [esi + 0x14], ebp
jb 0x4746b4
mov eax, dword [esi]
jmp 0x4746b6
mov eax, esi
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x20]
call fcn.0040e3c0
test eax, eax
jne 0x4746e7
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], ebp
jb 0x4746e3
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047fe1e
add esp, 4
xor al, al
jmp 0x474764
lea edx, [esp + 0x1c]
push edx
call fcn.00474630
add esp, 4
test al, al
jne 0x474717
mov dword [esp + 0x44], 0xffffffff
cmp dword [esp + 0x30], ebp
jb 0x4746e3
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047fe1e
add esp, 4
xor al, al
jmp 0x474764
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x474751
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x47473c
mov eax, esi
call fcn.00474610
test al, al
jne 0x474751
lea esi, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00402420
xor al, al
jmp 0x474764
lea esi, [esp + 0x1c]
mov dword [esp + 0x44], 0xffffffff
call fcn.00402420
mov al, 1
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047fe29
add esp, 0x34
ret

Function at 0x476520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e0b3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea edi, [esp + 0x10]
call fcn.0047d650
mov esi, eax
push 0x58
mov dword [esp + 0x3c], 0
call fcn.0048068d
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x38], 1
test eax, eax
je 0x476582
push eax
call fcn.00476a50
jmp 0x476584
xor eax, eax
push 0xffffffffffffffff
push 0
mov byte [esp + 0x40], 0
lea ecx, [eax + 0x3c]
push esi
mov dword [0x4c04fc], eax
call fcn.00402a60
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x4765b7
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fe1e
add esp, 4
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0047fe29
add esp, 0x30
ret
Function at 0x4775f0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ac98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x47762c
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
push ecx
push eax
lea edx, [esp + 0x18]
push 0x4ae5f4
push edx
call fcn.00474110
add esp, 0x10
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x47765d
push eax
call ebp
mov dword [esi + 4], ebx
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
mov dword [esi + 4], ebx
jae 0x47766f
lea eax, [esp + 0x10]
push eax
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x47768b
push eax
call ebp
mov dword [esi + 4], ebx
cmp edi, 0xffffffff
je 0x477693
mov dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4776ce
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x477650
mov dword [esp + 0x38], 0xffffffff
cmp eax, ebx
jne 0x4776ee
cmp dword [esp + 0x24], 8
jb 0x4776ea
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0047fe1e
add esp, 4
mov al, 1
jmp 0x477704
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x24], 8
jb 0x4776ea
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fe1e
add esp, 4
mov al, 1
jmp 0x477704
cmp dword [esp + 0x24], 8
jb 0x477702
mov edx, dword [esp + 0x10]
push edx
call fcn.0047fe1e
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0047fe29
add esp, 0x2c
ret

Function at 0x47bff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49b0d0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 4], eax
push esi
push edi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0
test byte [esi + 0x30], 2
jne 0x47c034
xor al, al
jmp 0x47c082
xor edi, edi
cmp dword [esi + 0xc], edi
jle 0x47c057
jmp 0x47c040
mov eax, dword [esi + 8]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test al, al
je 0x47c030
inc edi
cmp edi, dword [esi + 0xc]
jl 0x47c040
mov ecx, dword [esi + 0x30]
shr ecx, 1
test cl, 1
je 0x47c080
mov esi, dword [esi + 0x28]
test esi, esi
je 0x47c06c
mov ecx, esi
jmp 0x47c075
mov edx, dword [0x4c054c]
mov ecx, dword [edx + 0x28]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test al, al
je 0x47c030
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0047fe29
add esp, 0x14
ret
Function at 0x47d650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49df71
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x24], eax
push esi
mov eax, dword [0x4bc7dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea esi, [esp + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
call fcn.0047d8f0
push eax
mov esi, 1
push edi
mov dword [esp + 0x40], esi
call fcn.0047d530
add esp, 8
mov byte [esp + 0x38], 0
cmp dword [esp + 0x24], 0x10
mov dword [esp + 8], esi
jb 0x47d6c4
mov eax, dword [esp + 0x10]
push eax
call fcn.0047fe1e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.0047fe29
add esp, 0x34
ret

Function at 0x47d8f0
Capabilities:
Identify system language via api

Disassembly:
sub esp, 8
push edi
mov dword [esp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
call fcn.0047d7f0
lea eax, [eax + eax*2]
add eax, eax
mov ecx, dword [eax + eax + 0x4a52f4]
add eax, eax
add esp, 4
test ecx, ecx
jne 0x47d926
mov ecx, dword [eax + 0x4a52f0]
mov eax, ecx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47d940
sub eax, edi
push eax
push ecx
mov ecx, esi
call fcn.00402300
mov eax, esi
pop edi
add esp, 8
ret

Function at 0x47e660
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20
mov eax, dword [0x4bc7dc]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
call fcn.0047e760
mov eax, dword [esp + 4]
add esp, 4
cmp dword [esp + 0x14], 8
jae 0x47e688
lea eax, [esp]
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [esp + 0x18], 8
jb 0x47e6a9
mov ecx, dword [esp + 4]
push ecx
call fcn.0047fe1e
add esp, 4
mov ecx, dword [esp + 0x20]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0047fe29
add esp, 0x20
ret

Function at 0x47ec50
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [esi + 4]
sub eax, 0
push edi
je 0x47ec7f
dec eax
je 0x47ec78
dec eax
je 0x47ec71
xor al, al
pop edi
add esp, 8
ret
mov eax, 1
jmp 0x47ec84
mov eax, 2
jmp 0x47ec84
mov eax, 4
push 0
push 0
push 0
push eax
mov eax, dword [esi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
je 0x47ec6a
mov edx, dword [esi + 0x4c]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esp + 8], 0
mov edi, eax
ja 0x47ec6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
jne 0x47eccb
test eax, eax
jne 0x47ec6a
mov dword [esi + 0xc], edi
mov al, 1
pop edi
add esp, 8
ret
Function at 0x47f9ff
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4bf260], 0
push esi
push edi
jne 0x47f975
call fcn.0047f8e1
test eax, eax
je 0x47f9ba
mov eax, dword [0x4bf260]
cmp eax, 1
jne 0x47f996
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47f9ba
jmp 0x47f9fc
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x47f9fc
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x47f9be
xor eax, eax
jmp 0x47f9fc
mov eax, dword [esi]
push dword [0x4bf260]
call edi
mov edi, eax
test edi, edi
je 0x47f9e0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x47f9fc
lea edi, [esi + 0xff0]
push esi
push dword [0x4bf260]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x47f9e6
mov eax, esi
pop edi
pop esi
ret
jmp 0x47f961

Function at 0x47fe29
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bc7dc]
jne 0x47fe33
repz ret
jmp fcn.0048578a