joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40275c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
push ebx
pop eax
call fcn.00403908
test esi, esi
jne 0x402792
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
push eax
pop ecx
mov edx, esp
push ebx
pop eax
call fcn.004039f8
jmp 0x4027b0
call sub.kernel32.dll_GetCommandLineA
push eax
pop edi
mov edx, ebx
push edi
pop eax
call fcn.00402670
push eax
pop edi
test esi, esi
je 0x4027b0
cmp dword [ebx], 0
je 0x4027b0
dec esi
jmp 0x402799
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c1c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
push edx
pop eax
pop ebx
ret

Function at 0x402f08
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x408014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402fa0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f80
sub eax, eax
push ebp
push 0x402f79
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402fbc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x408014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x408014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40378c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x4037ed
cmp word [0x409208], 0xd7b2
jne 0x4037b5
cmp dword [0x409210], 0
jbe 0x4037b5
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408080
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403814
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x403809
push 0
push 0x408078
push 0x408080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4041ac
Capabilities:
Get geographical location

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
sub edx, edx
push ebp
push 0x404212
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a74
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402dfc
push eax
pop ebx
cmp dword [ebp - 4], 0
je 0x4041fc
sub ebx, ebx
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404219
lea eax, [ebp - 0x10]
call fcn.00403908
ret
Function at 0x404595
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x45d06c]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
and dword [esp + 4], 0
and dword [esp + 8], 0
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x14], 0x67452301
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], 0xefcdab89
push eax
mov dword [esp + 0x24], 0x98badcfe
mov dword [esp + 0x28], 0x10325476
call fcn.004043fa
push esi
lea eax, [esp + 0xc]
push eax
call fcn.004044af
mov ecx, dword [esp + 0x64]
pop esi
xor ecx, esp
call fcn.0040d1b1
mov esp, ebp
pop ebp
ret 8

Function at 0x4046a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
test dword [edi + 0x2c], 0x100
lea eax, [edi + 0x10]
je 0x4046cf
cmp dword [eax + 0x14], 8
jb 0x4046c4
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x101
jmp 0x4046e0
cmp dword [eax + 0x14], 8
jb 0x4046d7
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x201
xor esi, esi
push esi
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x40472b
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 8]
push esi
push esi
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 8], 1
cmovae eax, dword [ebp + 8]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov dword [edi + 4], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 4], esi
jne 0x40472b
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
call fcn.00401e8f
pop edi
mov eax, esi
pop esi
leave
ret 0x18
Function at 0x404888
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44564a
mov eax, dword fs:[0]
push eax
mov eax, 0x2010
call fcn.0040e220
mov eax, dword [0x45d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2014], esi
xor ebx, ebx
lea eax, [ebp + 0xc]
inc ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x201c], 0x1000
cmovae eax, dword [ebp + 0xc]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401d1b
mov ecx, edi
call fcn.004046a7
mov dword [ebp - 0x2014], eax
cmp eax, ebx
je 0x40490e
cmp eax, 2
je 0x40490e
mov ecx, esi
lea eax, [ebp + 0x24]
push eax
call fcn.00401ce8
jmp 0x40498d
lea eax, [edi + 0x10]
cmp dword [eax + 0x14], 8
jb 0x404919
mov eax, dword [eax]
lea ecx, [ebp - 0x2018]
push ecx
push dword [edi + 0x2c]
push 0
push eax
push dword [edi + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [edi + 4], eax
test eax, eax
jne 0x404901
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x201c]
push ecx
lea ecx, [ebp - 0x2010]
push ecx
lea ecx, [ebp - 0x2014]
push ecx
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push dword [ebp - 0x2018]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2018]
xor ecx, ecx
mov dword [edi + 4], eax
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
test ebx, ebx
je 0x404903
lea eax, [ebp - 0x2010]
push eax
call fcn.00401d1b
lea ecx, [ebp + 0xc]
call fcn.00401e8f
lea ecx, [ebp + 0x24]
call fcn.00401e8f
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d1b1
leave
ret 0x34
Function at 0x4049e4
Capabilities:
Query environment variable
Read .ini file
Set environment variable

Disassembly:
push 0x67c
mov eax, 0x445693
call fcn.0040d770
mov esi, ecx
push 0xa000
mov ebx, 0x474628
push ebx
push 0x455cac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push ebx
lea ecx, [ebp - 0x658]
call fcn.00405617
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00428b20
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x2e
push eax
call fcn.0042748c
pop ecx
pop ecx
test eax, eax
je 0x404bad
mov esi, str..ini
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, ebx
mov edi, 0x208
push edi
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.00428b20
add esp, 0xc
lea ecx, [ebp - 0x688]
push str.path
call fcn.00405617
inc esi
mov byte [ebp - 4], 1
push esi
lea ecx, [ebp - 0x688]
call fcn.00405a81
lea ecx, [ebp - 0x688]
call fcn.004057b2
lea ecx, [ebp - 0x218]
push ecx
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push 0x455b54
push eax
push 0x455cd0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x404b1f
push edi
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.00428b20
add esp, 0xc
lea eax, [ebp - 0x628]
push ebx
push eax
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push ebx
push 0x455cd8
push ebx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x658]
call fcn.00405a0c
mov ecx, eax
call fcn.00405a0c
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], bl
call fcn.004056b4
cmp esi, 0xff
jl 0x404a6f
mov eax, 0xa000
cmp dword [ebp - 0x638], eax
jbe 0x404b7e
push eax
push ebx
lea eax, [ebp - 0x688]
push eax
lea ecx, [ebp - 0x658]
call fcn.0040591a
push ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x658]
push dword [eax + 0x20]
push dword [eax + 4]
call fcn.004059a3
lea ecx, [ebp - 0x688]
mov byte [ebp - 4], bl
call fcn.004056b4
lea ecx, [ebp - 0x658]
call fcn.004057b2
mov esi, 0x474628
mov edx, esi
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x404b92
push esi
push 0x455cac
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [ebp - 0x658]
call fcn.004056b4
call fcn.0040d72b
ret
Function at 0x405fcb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x45d06c]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
mov ebx, ecx
xorps xmm0, xmm0
push esi
push edi
mov edi, edx
movlpd qword [esp + 0x10], xmm0
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push eax
call fcn.00430960
pop ecx
cmp dword [esp + 0x14], esi
jl 0x40603e
jg 0x40601c
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x10], eax
jbe 0x40603e
push str.game_over
push 1
push 0x14f
push str.CHookApi::DecryptData
push str.d:ispbhelper_apphookapi.cpp
call fcn.00403471
add esp, 0x14
xor eax, eax
jmp 0x40608e
push 0xd8
xor esi, esi
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00428b20
add esp, 0xc
push 0x28
pop eax
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00427600
add esp, 0xc
mov eax, esi
push 0x28
pop ecx
not byte [esp + eax + 0x18]
inc eax
cmp eax, ecx
jb 0x40606a
cmp dword [ebp + 8], esi
jbe 0x40608b
xor edx, edx
mov eax, esi
div ecx
mov al, byte [esp + edx + 0x18]
xor byte [edi], al
inc edi
inc esi
cmp esi, dword [ebp + 8]
jb 0x406078
xor eax, eax
inc eax
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d1b1
mov esp, ebp
pop ebp
ret
Function at 0x407d50
Capabilities:
Enumerate files on windows
Move file

Disassembly:
push 0x4ac
mov eax, 0x445a65
call fcn.0040d770
push 0x250
lea eax, [ebp - 0x4a0]
push 0
push eax
call fcn.00428b20
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
push str..pbd
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x4ac], edi
cmp edi, 0xffffffff
je 0x407fbb
push 0
push 0x80
push 3
push 0
xor ebx, ebx
lea eax, [ebp - 0x474]
inc ebx
push ebx
push 0x80000000
push eax
call dword [0x488674]
mov esi, eax
cmp esi, 0xffffffff
je 0x407eef
and dword [ebp - 0x4b0], 0
lea eax, [ebp - 0x210]
push 0x200
push 0
push eax
call fcn.00428b20
add esp, 0xc
push 2
push 0
push 0xfffffe00
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x4b0]
push eax
push 0x200
lea eax, [ebp - 0x210]
push eax
push esi
call dword [0x48868c]
lea edx, [ebp - 0x210]
xor ecx, ecx
movzx eax, byte [edx + ecx]
mov edx, str.uo_plugin.bin
cmp al, byte [edx + ecx]
lea edx, [ebp - 0x210]
jne 0x407ee8
inc ecx
cmp ecx, 0xe
jne 0x407e15
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0
push esi
call edi
push 1
push 0
push 0
push esi
call edi
lea edi, [eax - 0x200]
lea ecx, [edi + 1]
push ecx
call fcn.0040d4c2
mov dword [ebp - 0x4a4], eax
pop ecx
test eax, eax
je 0x407ee2
xor eax, eax
push eax
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
and dword [ebp - 0x4a8], 0
lea eax, [ebp - 0x4a8]
push 0
push eax
push edi
push dword [ebp - 0x4a4]
push esi
call dword [0x48868c]
test eax, eax
je 0x407ed6
push dword [ebp - 0x4a8]
xor eax, eax
lea edi, [ebp - 0x220]
push dword [ebp - 0x4a4]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00404595
lea edx, [ebp - 0x1f0]
xor ecx, ecx
lea edi, [ebp - 0x220]
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4]
jne 0x407ed4
inc ecx
cmp ecx, 4
jne 0x407ec4
jmp 0x407ed6
xor ebx, ebx
push dword [ebp - 0x4a4]
call fcn.0040d223
pop ecx
mov edi, dword [ebp - 0x4ac]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x407f9e
lea eax, [ebp - 0x4b8]
xorps xmm0, xmm0
push eax
movlpd qword [ebp - 0x4b8], xmm0
call fcn.00430960
lea eax, [ebp - 0x4b8]
push eax
call fcn.0042fdf4
pop ecx
pop ecx
mov esi, eax
lea ecx, [ebp - 0x250]
lea eax, [ebp - 0x474]
push eax
call fcn.00405617
and dword [ebp - 4], ebx
lea ecx, [ebp - 0x250]
call fcn.00405ba5
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x250]
push str.._04d_02d_02d_02d_02d_02d
push eax
call fcn.00405ae0
add esp, 0x20
lea ecx, [ebp - 0x250]
call fcn.004057b2
push eax
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push str.1_n
call fcn.00403425
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x250]
call fcn.004056b4
lea eax, [ebp - 0x4a0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407d98
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0040d72b
ret
Function at 0x40e350
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0040e500
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x40e41d
mov edx, dword [ebp - 4]
cmp edx, dword [0x45d0a0]
jb 0x40e39a
mov eax, dword [ebp - 4]
cmp eax, dword [0x45d0a4]
ja 0x40e39a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x40e36a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00428b20
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40e3c0
jmp 0x40e41d
cmp dword [ebp - 0x14], 0x10000
jne 0x40e403
cmp dword [ebp - 0x18], 0x10000
jb 0x40e403
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e3f6
mov eax, dword [ebp - 8]
jmp 0x40e41f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x40e418
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.0040e500
add esp, 4
mov dword [ebp - 4], eax
jmp 0x40e36a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0040e530
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x40e4f5
mov edx, dword [ebp - 4]
cmp edx, dword [0x45d0a0]
jb 0x40e475
mov eax, dword [ebp - 4]
cmp eax, dword [0x45d0a4]
ja 0x40e475
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x40e445
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.00428b20
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x40e49b
jmp 0x40e4f5
cmp dword [ebp - 0x14], 0x10000
jne 0x40e4de
cmp dword [ebp - 0x18], 0x10000
jb 0x40e4de
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40e4d1
mov eax, dword [ebp - 8]
jmp 0x40e4f7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x40e4f0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.0040e530
add esp, 4
mov dword [ebp - 4], eax
jmp 0x40e445
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4101b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x45faa4], 0
je 0x4101c6
xor eax, eax
jmp 0x4103e2
cmp dword [0x45faa0], 0
je 0x4101d9
mov eax, dword [0x45faa0]
jmp 0x4103e2
push 0x24
push 0
push 0x45fa7c
call fcn.00428b20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x45fa7c], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x45fa80], eax
cmp dword [0x45fa80], 0
jne 0x41027e
mov dword [0x45faa4], 1
cmp dword [0x45fa80], 0
je 0x410231
mov eax, dword [0x45fa80]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x45fa84], 0
mov dword [0x45fa88], 0
mov dword [0x45fa8c], 0
mov dword [0x45fa90], 0
mov dword [0x45fa94], 0
mov dword [0x45fa98], 0
mov dword [0x45fa9c], 0
xor eax, eax
jmp 0x4103e2
push str.ImagehlpApiVersionEx
mov ecx, dword [0x45fa80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa84], eax
push str.SymInitialize
mov edx, dword [0x45fa80]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa88], eax
push str.SymSetOptions
mov eax, dword [0x45fa80]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa8c], eax
push str.SymGetOptions
mov ecx, dword [0x45fa80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa90], eax
push str.SymLoadModule64
mov edx, dword [0x45fa80]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa94], eax
push str.SymGetModuleInfo64
mov eax, dword [0x45fa80]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa98], eax
push str.SymFromName
mov ecx, dword [0x45fa80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x45fa9c], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.00428b20
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x45fa84], 0
je 0x410363
cmp dword [0x45fa88], 0
je 0x410363
cmp dword [0x45fa94], 0
je 0x410363
cmp dword [0x45fa98], 0
je 0x410363
cmp dword [0x45fa9c], 0
jne 0x410368
jmp 0x410212
lea ecx, [ebp - 0xc]
push ecx
call dword [0x45fa84]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x410380
jmp 0x410212
push 0
push 0
mov eax, dword [0x45fa7c]
push eax
call dword [0x45fa88]
test eax, eax
jne 0x410399
jmp 0x410212
cmp dword [0x45fa90], 0
je 0x4103d3
cmp dword [0x45fa8c], 0
je 0x4103d3
call dword [0x45fa90]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x45fa8c]
mov dword [0x45faa0], 0x45fa7c
mov eax, dword [0x45faa0]
mov esp, ebp
pop ebp
ret

Function at 0x412e94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x439ec1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439d40
Function at 0x43e1ad
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043de6d

Function at 0x40892e
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
mov eax, dword [esp]
add esp, 4
add edx, 0x65b25244
mov edx, edx
call fcn.0040895f
xor dword [edi], eax
push esi
mov edx, dword [esp]
add esp, 4
sub esi, edx
inc edi
add esi, 0xa175dc88
cmp edi, ecx
jne fcn.0040892e
ret
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x649e646f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..pdata_1
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x61e87aab
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x10031085
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
xor eax, eax
mov esi, dword fs:[eax + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0xc]
lodsd eax, dword [esi]
mov eax, dword [eax]
mov ebx, dword [eax + 0x18]
mov edi, dword [ebx + 0x3c]
mov edi, dword [ebx + edi + 0x78]
mov esi, dword [ebx + edi + 0x20]
add esi, ebx
mov edx, dword [ebx + edi + 0x24]
add edx, ebx
xor ecx, ecx
dec ecx
inc ecx
mov eax, dword [esi]
add esi, 4
cmp word [ebx + eax + 0xb], 0x63
jne 0x100310b6
cmp byte [ebx + eax + 1], 0x69
jne 0x100310b6
movzx eax, word [edx + ecx*2]
mov esi, dword [ebx + edi + 0x1c]
add esi, ebx
add ebx, dword [esi + eax*4]
mov dword [ebp - 4], ebx
push 0x40
push 0x3000
push 0x158944
push 0
call dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret