joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4081c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4081ce
mov dword [eax], 0
mov eax, dword [esp + 4]
test eax, eax
je 0x408276
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408276
push ebx
push ebp
push esi
push edi
push 0x146
push str.C:SrcToolsPatcher_bnupdate_srcfile.cpp
push eax
mov dword [ecx], 0
call fcn.0040a230
push 0
push 0x8000000
push 3
push 0
push 1
mov ebp, eax
push 0x80000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408296
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x408296
cmp esi, 0xffffffff
je 0x408296
push 0
push 0x160
push str.C:SrcToolsPatcher_bnupdate_srcfile.cpp
push esi
call fcn.00408850
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408280
cmp esi, dword [esp + 0x14]
jne 0x408280
mov eax, dword [esp + 0x1c]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx], edi
je 0x408296
mov dword [eax], esi
jmp 0x408296
push 0x57
call fcn.0040bae0
xor eax, eax
ret
test edi, edi
je 0x408296
push 0
push 0x16c
push str.C:SrcToolsPatcher_bnupdate_srcfile.cpp
push edi
call fcn.004099d0
test ebp, ebp
je 0x4082ac
push 0
push 0x16d
push str.C:SrcToolsPatcher_bnupdate_srcfile.cpp
push ebp
call fcn.004099d0
cmp ebx, 0xffffffff
je 0x4082b8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
pop edi
pop esi
xor eax, eax
test ecx, ecx
pop ebp
setne al
pop ebx
ret

Function at 0x408560
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
push esi
push edi
call fcn.00408530
add esp, 8
test eax, eax
jne 0x40857b
pop edi
pop esi
ret
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x408596
pop edi
pop esi
ret
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp ecx, esi
pop edi
sete al
pop esi
ret

Function at 0x4089b0
Capabilities:
Terminate process

Disassembly:
xor eax, eax
cmp ecx, 8
sete al
push 1
push 0
push 0
mov dword [0x43eb98], eax
mov eax, dword [esp + 0x10]
push eax
push edx
push ecx
call fcn.0040acd0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x409130
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 4]
mov eax, 1
cmp ecx, eax
mov dword [0x43eb9c], eax
jbe 0x40915b
shl eax, 1
cmp eax, ecx
jb 0x409150
mov dword [0x43eb9c], eax
add esp, 0x24
ret
Function at 0x409410
Capabilities:
Print debug messages

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, dword [edi]
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
xor ebp, ebp
cmp esi, eax
mov dword [esp + 0x10], edi
jae 0x4094a2
mov edi, edi
movzx edi, word [esi]
xor eax, eax
mov al, byte [esi + 3]
add edi, esi
test al, 0x82
je 0x409447
and eax, 0x80
or ebp, eax
jmp 0x409493
test al, 0x40
jne 0x40948a
mov eax, dword [0x43f838]
test eax, eax
lea edx, [ebx + 0x6c]
jne 0x409467
mov eax, dword [ebx + 0x68]
push eax
mov ecx, 0x8510007e
call fcn.004094d0
jmp 0x40948a
mov ecx, dword [ebx + 0x68]
push ecx
push edx
lea eax, [esp + 0x1c]
push str.Storm_Error_:_memory_never_released_____s___i_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, esi
mov ecx, ebx
call fcn.00409190
cmp edi, dword [ebx + 0x20]
mov esi, edi
jb 0x409430
test ebp, ebp
jne 0x4094b6
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00408be0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0xcc
ret

Function at 0x40a560
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x40a576
push 0x57
call fcn.0040bae0
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40a583
mov eax, 0x7fed7fed
mov cl, byte [esp + 0xc]
push ebx
push ebp
test cl, 1
movzx ecx, byte [esi]
push edi
mov edx, 0xeeeeeeee
je 0x40a5d1
test ecx, ecx
je 0x40a61b
nop
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x42f4b8]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x42f4b8]
inc esi
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x40a5a0
jmp 0x40a61b
test ecx, ecx
je 0x40a61b
inc esi
cmp ecx, 0x61
jb 0x40a5e3
cmp ecx, 0x7a
ja 0x40a5e3
sub ecx, 0x20
cmp ecx, 0x2f
jne 0x40a5ed
mov ecx, 0x5c
add eax, edx
imul edx, edx, 0x21
mov edi, ecx
mov ebx, ecx
shr edi, 4
mov edi, dword [edi*4 + 0x42f4b8]
and ebx, 0xf
mov ebp, dword [ebx*4 + 0x42f4b8]
add edx, ecx
movzx ecx, byte [esi]
sub edi, ebp
xor eax, edi
test ecx, ecx
lea edx, [edx + eax + 3]
jne 0x40a5d5
test eax, eax
pop edi
pop ebp
pop ebx
jne 0x40a627
mov eax, 1
pop esi
ret 0xc
Function at 0x40a630
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp edx, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, 0x9e3779b9
mov dword [esp + 0x10], edx
mov ebp, edx
mov ebx, edi
jb 0x40a740
mov eax, 0xaaaaaaab
mul edx
shr edx, 3
mov dword [esp + 0x18], edx
lea ecx, [ecx]
movzx eax, byte [ecx + 7]
movzx edx, byte [ecx + 6]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 5]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 4]
add edx, edi
shl eax, 8
lea edi, [edx + eax]
movzx eax, byte [ecx + 0xb]
movzx edx, byte [ecx + 0xa]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 9]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 8]
add edx, esi
shl eax, 8
lea esi, [edx + eax]
movzx eax, byte [ecx + 3]
movzx edx, byte [ecx + 2]
shl eax, 8
add eax, edx
movzx edx, byte [ecx + 1]
shl eax, 8
add eax, edx
movzx edx, byte [ecx]
shl eax, 8
add eax, edx
sub eax, esi
sub eax, edi
sub edi, esi
mov edx, esi
shr edx, 0xd
add eax, ebx
xor eax, edx
sub edi, eax
mov edx, eax
shl edx, 8
xor edi, edx
sub esi, edi
sub esi, eax
mov edx, edi
shr edx, 0xd
xor esi, edx
sub eax, esi
sub eax, edi
mov edx, esi
shr edx, 0xc
xor eax, edx
sub edi, esi
sub edi, eax
mov edx, eax
shl edx, 0x10
xor edi, edx
sub esi, edi
sub esi, eax
mov edx, edi
shr edx, 5
xor esi, edx
sub eax, esi
sub eax, edi
mov edx, esi
shr edx, 3
xor eax, edx
sub edi, esi
mov ebx, eax
shl eax, 0xa
sub edi, ebx
xor edi, eax
mov eax, dword [esp + 0x18]
sub esi, edi
mov edx, edi
sub esi, ebx
shr edx, 0xf
xor esi, edx
add ecx, 0xc
sub ebp, 0xc
dec eax
mov dword [esp + 0x18], eax
jne 0x40a660
mov edx, dword [esp + 0x10]
add esi, edx
dec ebp
cmp ebp, 0xa
ja case.default.0x40a748
jmp dword [ebp*4 + 0x40a818]
movzx eax, byte [ecx + 0xa]
shl eax, 0x18
add esi, eax
movzx edx, byte [ecx + 9]
shl edx, 0x10
add esi, edx
movzx eax, byte [ecx + 8]
shl eax, 8
add esi, eax
movzx edx, byte [ecx + 7]
shl edx, 0x18
add edi, edx
movzx eax, byte [ecx + 6]
shl eax, 0x10
add edi, eax
movzx edx, byte [ecx + 5]
shl edx, 8
add edi, edx
movzx eax, byte [ecx + 4]
add edi, eax
movzx edx, byte [ecx + 3]
shl edx, 0x18
add ebx, edx
movzx eax, byte [ecx + 2]
shl eax, 0x10
add ebx, eax
movzx edx, byte [ecx + 1]
shl edx, 8
add ebx, edx
movzx eax, byte [ecx]
add ebx, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov ecx, esi
shr ecx, 0xd
xor ebx, ecx
sub edi, ebx
mov edx, ebx
shl edx, 8
xor edi, edx
sub esi, edi
sub esi, ebx
mov eax, edi
shr eax, 0xd
xor esi, eax
sub ebx, esi
sub ebx, edi
sub edi, esi
mov ecx, esi
shr ecx, 0xc
xor ebx, ecx
sub edi, ebx
mov edx, ebx
shl edx, 0x10
xor edi, edx
sub esi, edi
mov eax, edi
sub esi, ebx
shr eax, 5
xor esi, eax
mov eax, esi
sub ebx, eax
sub ebx, edi
mov ecx, eax
sub edi, eax
shr ecx, 3
xor ebx, ecx
sub edi, ebx
mov edx, ebx
shl edx, 0xa
xor edi, edx
sub eax, edi
sub eax, ebx
shr edi, 0xf
xor eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x40b600
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40b617
mov eax, 1
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b62d
cmp eax, 5
je 0x40b62d
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b63d
xor eax, eax
pop esi
ret
movzx eax, al
shr eax, 4
and eax, 1
pop esi
ret

Function at 0x40b7c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov dword [ebp - 0xc], ecx
xor eax, eax
push esi
push edi
mov ebx, edx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
lea eax, [edi + edi + 4]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 8], ebx
call fcn.0042eb50
mov ecx, esp
xor esi, esi
test edi, edi
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
mov eax, 2
mov byte [ebp - 1], 0
jbe 0x40b834
jmp 0x40b810
mov ebx, dword [ebp - 8]
nop
lea esp, [esp]
mov dl, byte [esi + ebx]
cmp dl, 0xa
jne 0x40b823
cmp byte [ebp - 1], 0xd
je 0x40b823
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], dl
inc eax
inc esi
cmp esi, edi
mov byte [ebp - 1], dl
jb 0x40b808
cmp dl, 0xa
je 0x40b83e
mov byte [eax + ecx], 0xd
inc eax
mov byte [eax + ecx], 0xa
inc eax
push 0
lea edx, [ebp - 0x10]
push edx
push eax
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b9f0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x43f540]
sub esp, 0x1c8
test eax, eax
jne 0x40ba1f
push 0x43f544
push 0
push str.Debug_Memory
push str.Internal
mov dword [0x43f540], 1
call fcn.00411870
mov eax, dword [0x43f544]
test eax, eax
je 0x40bad3
mov eax, dword [esp + 0x1d0]
test eax, eax
je 0x40ba5e
cmp byte [eax], 0
je 0x40ba5e
push eax
mov eax, dword [esp + 0x1d0]
push eax
push str._s___s_
lea ecx, [esp + 0xc]
push 0x100
push ecx
call fcn.0040a340
add esp, 0x14
jmp 0x40ba7d
mov edx, dword [esp + 0x1cc]
push edx
push 0x437a80
lea eax, [esp + 8]
push 0x100
push eax
call fcn.0040a340
add esp, 0x10
mov eax, dword [0x43f83c]
test eax, eax
jne 0x40baa6
push 1
push 1
push 0
push 0xfffffffffffffffd
lea ecx, [esp + 0x10]
push ecx
push 0x8510007f
call fcn.0040acd0
add esp, 0x1c8
ret 8
lea edx, [esp]
push edx
push str.Storm_Error_:_handle_never_released_____s_n
lea eax, [esp + 0x108]
push 0xc8
push eax
call fcn.0040a340
add esp, 0x10
lea ecx, [esp + 0x100]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1c8
ret 8

Function at 0x40c6c0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x43f578]
test eax, eax
jne 0x40c702
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0x43f54c
push 0
push 0
push 0x40c710
push 0
push 0
mov dword [0x43f584], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 1
push eax
mov dword [0x43f578], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
ret
Function at 0x40d610
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
shr edx, 2
test edx, edx
mov eax, 0xeeeeeeee
je 0x40d66b
push ebx
push ebp
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x14]
mov ebx, dword [0x43f5c4]
mov esi, edx
and esi, 0xff
mov ebp, dword [ebx + esi*4 + 0x1000]
mov ebx, dword [ecx]
add eax, ebp
lea esi, [eax + edx]
imul eax, eax, 0x21
xor ebx, esi
mov esi, ebx
lea eax, [eax + esi + 3]
mov esi, edx
not esi
shl esi, 0x15
add esi, 0x11111111
shr edx, 0xb
mov dword [ecx], ebx
add ecx, 4
or edx, esi
dec edi
jne 0x40d626
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40f7a0
Capabilities:
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
not eax
shr eax, 4
and eax, 1
ret
Function at 0x411620
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x43f858]
sub esp, 0x20c
test eax, eax
push esi
mov esi, ecx
jne 0x411689
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411720
mov eax, dword [esp + 0x224]
mov ecx, dword [esp + 0x220]
mov edx, dword [esp + 0x21c]
push eax
push edx
mov edx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x21c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x411711
push 0
push 0
push 0x7fffffff
push edx
push 0x104
lea eax, [esp + 0x1c]
push eax
call fcn.00417cd0
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411720
mov ecx, dword [esp + 0x214]
mov eax, dword [esp + 0x220]
mov esi, dword [esp + 0x224]
push 0
push 0
push 0x7fffffff
push ecx
push 0x104
lea edx, [esp + 0x1c]
push edx
mov dword [esi], eax
call fcn.00417cd0
mov eax, dword [esp + 0x21c]
mov ecx, dword [esp + 0x218]
push esi
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x20c
ret 0x14
Function at 0x411990
Capabilities:
Set registry value

Disassembly:
sub esp, 0x314
push ebx
mov ebx, dword [esp + 0x31c]
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x1c]
mov edi, edx
push eax
mov edx, ebx
xor ebp, ebp
call fcn.00411480
mov eax, dword [0x43f858]
test eax, eax
jne 0x4119f1
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [esp + 0x14]
push edx
push ebp
neg cl
push 0x20006
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
jmp 0x411a48
push 0
push 0
push 0x7fffffff
lea edx, [esp + 0x24]
push edx
push 0x104
lea eax, [esp + 0x130]
push eax
call fcn.00417cd0
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
and cl, 4
lea edx, [esp + 0x14]
push edx
push 0
neg cl
push 0x20006
push 0
push 0
push 0
lea eax, [esp + 0x138]
push eax
sbb ecx, ecx
neg ecx
add ecx, 0x80000001
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x411b13
mov eax, dword [0x43f858]
test eax, eax
jne 0x411a82
mov edx, dword [esp + 0x334]
mov eax, dword [esp + 0x330]
mov ecx, dword [esp + 0x32c]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x411acb
push 0
push 0
push 0x7fffffff
push edi
push 0x104
lea eax, [esp + 0x130]
push eax
call fcn.00417cd0
mov ecx, dword [esp + 0x334]
mov edx, dword [esp + 0x330]
mov eax, dword [esp + 0x32c]
push ecx
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
lea ecx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x411b0c
test bl, 8
je 0x411aed
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
test esi, esi
jne 0x411b0c
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x411b0c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x314
ret 0x10
mov edx, dword [esp + 0x10]
push edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x314
ret 0x10
Function at 0x412360
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
inc ecx
test eax, eax
mov dword [edi + 4], ecx
jne 0x4124a2
push 0x43f88c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x43f88c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41246e
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk
push esi
call ebx
test eax, eax
mov dword [edi + 8], eax
je 0x412467
push str.SymFunctionTableAccess
push esi
call ebx
test eax, eax
mov dword [edi + 0xc], eax
je 0x412467
push str.SymGetLineFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x10], eax
je 0x412467
push str.SymGetModuleBase
push esi
call ebx
test eax, eax
mov dword [edi + 0x14], eax
je 0x412467
push str.SymGetModuleInfo
push esi
call ebx
test eax, eax
mov dword [edi + 0x18], eax
je 0x412467
push str.SymGetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x1c], eax
je 0x412467
push str.SymGetSymFromAddr
push esi
call ebx
test eax, eax
mov dword [edi + 0x20], eax
je 0x412467
push str.SymInitialize
push esi
call ebx
test eax, eax
mov dword [edi + 0x24], eax
je 0x412467
push str.SymCleanup
push esi
call ebx
test eax, eax
mov dword [edi + 0x28], eax
je 0x412467
push str.SymSetOptions
push esi
call ebx
test eax, eax
mov dword [edi + 0x2c], eax
je 0x412467
push str.SymEnumerateModules
push esi
call ebx
test eax, eax
mov dword [edi + 0x30], eax
je 0x412467
push str.SymEnumerateSymbols
push esi
call ebx
test eax, eax
mov dword [edi + 0x34], eax
jne 0x41248a
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x43f88c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x43f88c
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push str.MiniDumpWriteDump
push esi
call ebx
push 0x43f88c
mov dword [edi + 0x38], eax
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4127a0
Capabilities:
Link many functions at runtime

Disassembly:
mov ecx, 0x43f8a4
jmp fcn.00412360

Function at 0x4129e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x412a17
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x412a08
lea edx, [esp + 0xc]
push edx
push str.User:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x108
ret
Function at 0x412a40
Capabilities:
Get hostname

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 8]
mov edi, ecx
push eax
lea ecx, [esp + 0x10]
push ecx
mov esi, edx
mov dword [esp + 0x10], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x412a74
mov cl, byte [eax + str._unknown_]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x412a65
lea edx, [esp + 0xc]
push edx
push str.Computer:
push str.__10s_s
push esi
call edi
add esp, 0x10
pop edi
pop esi
add esp, 0x14
ret
Function at 0x412ce0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x64]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
push esi
mov esi, dword [esp + 0x68]
mov ebp, esi
shr ebx, 4
and ebp, 0xf
test eax, eax
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x70], ebx
je 0x412d75
mov ecx, 0x13
mov eax, 0x20202020
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, 0x64
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov cl, 0x2a
mov edi, ebp
lea eax, [esp + ebp + 0x22]
mov byte [esp + 0x18], cl
lea eax, [eax + ebp*2]
mov byte [esp + 0x66], 0
mov byte [esp + 0x1a], 0x3d
mov byte [esp + 0x1c], 0x61
mov byte [esp + 0x1f], 0x72
shr edi, 2
add eax, edi
mov byte [eax], cl
mov byte [eax + 1], cl
mov byte [esp + ebp + 0x56], cl
lea ecx, [esp + 0x18]
push ecx
push 0x437a80
push edx
call dword [esp + 0x1c]
add esp, 0xc
test ebp, ebp
je 0x412d75
sub esi, ebp
inc ebx
mov dword [esp + 0x70], ebx
test ebx, ebx
jbe 0x412ec0
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push esi
lea edx, [esp + 0x1c]
push str._08X:
push edx
call ebx
add esp, 0xc
push 0x10
push esi
lea edi, [esp + eax + 0x20]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x412e99
movzx eax, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 7]
movzx edx, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 4]
add edi, eax
movzx eax, byte [esi + 5]
push edx
push eax
push ecx
push str._02X__02X__02X__02X
push edi
call ebx
movzx edx, byte [esi + 0xb]
movzx ecx, byte [esi + 9]
push edx
movzx edx, byte [esi + 8]
add edi, eax
movzx eax, byte [esi + 0xa]
push eax
push ecx
push edx
push str._02X__02X__02X__02X
push edi
call ebx
movzx ecx, byte [esi + 0xe]
movzx edx, byte [esi + 0xd]
add edi, eax
movzx eax, byte [esi + 0xf]
add esp, 0x48
push eax
movzx eax, byte [esi + 0xc]
push ecx
push edx
push eax
push str._02X__02X__02X__02X
push edi
call ebx
add edi, eax
mov eax, edi
add esp, 0x18
sub eax, esi
mov ebp, esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], 0x10
movzx ecx, byte [ebp]
push ecx
call dword [sym.imp.MSVCRT.dll_isprint]
add esp, 4
test eax, eax
je 0x412e4e
mov al, byte [ebp]
jmp 0x412e50
mov al, 0x2e
mov edx, dword [esp + 0x74]
mov byte [edx + ebp], al
mov eax, dword [esp + 0x6c]
inc ebp
dec eax
mov dword [esp + 0x6c], eax
jne 0x412e37
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x437a80
push ecx
mov byte [edi + 0x10], 0
call dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
add esp, 0xc
add esi, 0x10
dec eax
mov dword [esp + 0x70], eax
jne 0x412d83
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc
mov eax, str._cant_read_from_this_address_
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x412ea0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push 0x437a80
push eax
call dword [esp + 0x1c]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret 0xc