joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003610
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x10003670
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
mov eax, dword [0x10054670]
xor eax, ebp
mov dword [ebp - 8], eax
mov al, byte [0x1004ea4a]
mov byte [ebp - 0x808], al
push 0x7ff
push 0
lea ecx, [ebp - 0x807]
push ecx
call fcn.10017fe0
add esp, 0xc
mov dword [ebp - 0x80c], 0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 0x808]
push edx
push 0x800
push str.PlaySetting.ini
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1000389e
lea eax, [ebp - 0x808]
push eax
push 0
push str.UnLockFPS
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x80c], eax
lea ecx, [ebp - 0x808]
push ecx
push 0
push str.FullScreen
push str.Settings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x10003857
push 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x878], 0x48
lea edx, [ebp - 0x878]
push edx
mov eax, dword [ebp - 0x824]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoA]
mov ecx, dword [ebp - 0x86c]
sub ecx, dword [ebp - 0x874]
mov dword [ebp - 0x87c], ecx
mov edx, dword [ebp - 0x868]
sub edx, dword [ebp - 0x870]
mov dword [ebp - 0x810], edx
push 0xa
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x87c]
push ecx
call fcn.10039020
add esp, 0xc
push str.ini_GameSetup.ini
lea edx, [ebp - 0x830]
push edx
push str.ScrWidth
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0xa
lea eax, [ebp - 0x820]
push eax
mov ecx, dword [ebp - 0x810]
push ecx
call fcn.10039020
add esp, 0xc
push str.ini_GameSetup.ini
lea edx, [ebp - 0x820]
push edx
push str.ScrHeight
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov dword [ebp - 0x814], 1
cmp dword [ebp - 0x814], 0
je 0x10003823
push str.ini_GameSetup.ini
push 0x1004ecf0
push str.FullScrType
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.ini_GameSetup.ini
push 0x1004ed00
push str.ScreenModeRecord
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x10003857
push str.ini_GameSetup.ini
push 0x1004ecf0
push str.FullScrType
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push str.ini_GameSetup.ini
push 0x1004ed18
push str.ScreenModeRecord
push str.ScreenMode
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
cmp dword [ebp - 0x80c], 0
jle 0x1000389e
mov byte [ebp - 0x884], 0xeb
mov byte [ebp - 0x883], 0xe
push str.xxxxxxxx
push 0x1004ed28
call fcn.10003500
add esp, 8
mov dword [ebp - 0x880], eax
push 2
lea eax, [ebp - 0x884]
push eax
mov ecx, dword [ebp - 0x880]
push ecx
call fcn.10003610
add esp, 0xc
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000fe00
mov esp, ebp
pop ebp
ret
Function at 0x100066d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10040e09
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10054670]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x10054670]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
cmp dword [ecx + 0x44], esi
je 0x100068e4
cmp byte [ecx + 0x49], 0
je 0x100068e4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x100068cc
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.10005ce0
mov dword [esp + 0x80], esi
lea esp, [esp]
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
call fcn.100061c0
mov esi, eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x54]
mov byte [esp + 0x84], 1
call fcn.100061c0
mov edi, eax
mov ecx, esi
mov byte [esp + 0x80], 2
call fcn.100072c0
mov ebx, dword [esp + 0x64]
mov ecx, edi
mov esi, eax
call fcn.100072c0
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0x44]
mov edx, dword [ecx]
lea edi, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x1c]
add ebx, esi
push ebx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [edx + 0x18]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x80], 1
call fcn.100011e0
lea ecx, [esp + 0x44]
mov byte [esp + 0x80], 0
call fcn.100011e0
mov eax, esi
sub eax, 0
je 0x100067fe
dec eax
je 0x10006802
sub eax, 2
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
jne 0x100068c7
jmp 0x100068df
mov byte [edi + 0x49], 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x54]
call fcn.100061c0
mov ecx, eax
mov byte [esp + 0x80], 3
call fcn.100072c0
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
sub esi, eax
mov byte [esp + 0x80], 0
call fcn.100011e0
test esi, esi
je 0x10006874
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x54]
call fcn.100061c0
mov byte [esp + 0x80], 4
or dword [esp + 0x14], 1
mov ecx, eax
call fcn.100072c0
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10015c70
add esp, 0x10
cmp esi, eax
je 0x10006874
mov bl, 1
jmp 0x10006876
xor bl, bl
mov dword [esp + 0x80], 0
test byte [esp + 0x14], 1
je 0x10006896
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x38]
call fcn.100011e0
test bl, bl
jne 0x100068b8
cmp byte [edi + 0x49], bl
je 0x100068d0
test esi, esi
jne 0x10006750
push esi
push 8
lea ecx, [esp + 0x58]
call fcn.10005d90
jmp 0x10006750
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.10004180
xor al, al
jmp 0x100068e6
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x50]
call fcn.10004180
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1000fe00
mov esp, ebp
pop ebp
ret
Function at 0x10007180
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100409fb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10054670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.1000b630
push 0x18
push 0x1004f3f0
mov dword [ebp - 4], 0
call fcn.1000a900
push eax
push 4
call fcn.1000a830
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1000720d
call fcn.1000ade0
mov dword [edi], eax
call fcn.1000abf0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.1000b5c0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10007203
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.1000b600
jmp 0x1000720f
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100096d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call esi
lea ecx, [ebp - 4]
push ecx
push 0x40
push 5
push 0x1005562c
call esi
lea edx, [ebp - 4]
push edx
push 0x40
push 5
push 0x10055634
call esi
mov eax, dword [edi]
pop esi
cmp eax, dword [0x1005562c]
jne 0x10009723
mov cl, byte [0x10055630]
cmp cl, byte [edi + 4]
jne 0x10009723
mov eax, 0xb
mov esp, ebp
pop ebp
ret
cmp eax, dword [0x10055634]
jne 0x1000973b
mov dl, byte [0x10055638]
mov eax, 5
cmp dl, byte [edi + 4]
je 0x1000973e
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x10009750
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 4]
push edi
push eax
mov edi, ebx
call fcn.100096d0
mov dword [esi + 4], eax
add eax, 5
push eax
call fcn.10016e40
mov edx, dword [esi + 4]
add esp, 8
lea ecx, [ebp - 8]
push ecx
push 0x40
add edx, 5
mov edi, eax
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 4]
push eax
push ebx
push edi
call fcn.10017c70
mov ecx, dword [esi + 4]
mov byte [edi + ecx], 0xe9
mov eax, dword [esi + 4]
mov edx, ebx
sub edx, edi
sub edx, 5
mov dword [edi + eax + 1], edx
mov eax, dword [ebp + 8]
add esp, 0xc
sub eax, ebx
sub eax, 5
mov dword [ebp - 7], eax
mov dl, byte [ebp - 4]
mov byte [ebp - 8], 0xe9
mov ecx, dword [ebp - 8]
mov dword [ebx], ecx
mov byte [ebx + 4], dl
mov dword [esi], edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1000a240
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041304
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10054670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], 0x10
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x7c], bl
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x1000a2ad
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x1c]
lea esi, [ebp - 0x7c]
call fcn.10009f90
mov ecx, esi
call fcn.1000a040
mov eax, esi
push eax
mov esi, edi
call fcn.1000a120
mov byte [ebp - 4], bl
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 0x80], 1
jb 0x1000a2e6
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100159f0
add esp, 4
lea ecx, [ebp + 8]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
call fcn.10006340
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000fe00
mov esp, ebp
pop ebp
ret
Function at 0x1000fe00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10054670]
jne 0x1000fe0a
repz ret
jmp fcn.1001c600
Function at 0x1003da70
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.1003dc20
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003db3d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003daba
mov eax, dword [ebp - 4]
cmp eax, dword [0x10054004]
ja 0x1003daba
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003da8a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10017fe0
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 0x1003dae0
jmp 0x1003db3d
cmp dword [ebp - 0x14], 0x10000
jne 0x1003db23
cmp dword [ebp - 0x18], 0x10000
jb 0x1003db23
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 0x1003db16
mov eax, dword [ebp - 8]
jmp 0x1003db3f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003db38
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003dc20
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003da8a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003db50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003dc50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003dc15
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003db95
mov eax, dword [ebp - 4]
cmp eax, dword [0x10054004]
ja 0x1003db95
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003db65
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10017fe0
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 0x1003dbbb
jmp 0x1003dc15
cmp dword [ebp - 0x14], 0x10000
jne 0x1003dbfe
cmp dword [ebp - 0x18], 0x10000
jb 0x1003dbfe
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 0x1003dbf1
mov eax, dword [ebp - 8]
jmp 0x1003dc17
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003dc10
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003dc50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003db65
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1003f020
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10055a10], eax
je 0x1003f03e
mov eax, 0x10dd
jmp 0x1003f11f
mov eax, dword [0x10055a20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1003f0bc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1003f09a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1003f09a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1003e0d0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100159f0
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1003f046
mov dword [0x10055a20], 0
call fcn.1003e9b0
mov ecx, dword [0x10055a1c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1003f109
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100159f0
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1003f0d4
mov dword [0x10055a1c], 0
mov dword [0x10055a10], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003f600
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10055a14], 0
je 0x1003f619
mov eax, dword [0x10055a14]
jmp 0x1003f6b9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1003f62b
xor eax, eax
jmp 0x1003f6b9
push 8
call fcn.10016e40
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1003f681
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1003f66a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100159f0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10055a14], eax
mov dword [0x10055a18], 0
mov eax, dword [ebp - 8]
jmp 0x1003f6b9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003f69b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1003f64b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10055a1c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10055a1c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41ce04
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41d440
call fcn.0041d0c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41ce64
cmp eax, 0xffffffff
je 0x41ce64
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41ce5d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41ce5d
cmp edx, 0x10000000
jae 0x41ce5d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41ce5a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41ced0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41cf0e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41cf06
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41cf10
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41cef6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41cfe0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x41d011
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d011
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x41d011
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x403440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4034d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4034b8
xor eax, eax
push ebp
push 0x4034b1
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 0x4034f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403da4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403e05
cmp word [0x40a218], 0xd7b2
jne 0x403dcd
cmp dword [0x40a220], 0
jbe 0x403dcd
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
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 0x403e2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403e21
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404b98
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404bfe
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.00404170
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e90
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404be8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404c05
lea eax, [ebp - 0x10]
call fcn.00403f28
ret

Function at 0x406a10
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406a49
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404018
jmp 0x406a52
mov eax, ebx
mov edx, esi
call fcn.00403f7c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406a5c
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406a7d
mov al, byte [esp]
jmp 0x406a7f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407114
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406f7c
mov eax, dword [0x409440]
cmp byte [eax], 0
je 0x407190
mov eax, dword [0x409394]
call fcn.00402d48
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405eb4
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4071d8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4071c6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x409374]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00404568
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret