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

Disassembly:
sub esp, 0x28
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
cmp dword [esi + 0x78], ebp
je 0x47cd9d
push ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x90]
cmp eax, ebp
je 0x47cd16
mov ecx, dword [esi + 0x94]
sub ecx, eax
mov eax, dword [esp + 0x14]
sar ecx, 4
cmp eax, ecx
jae 0x47cd16
xor ebx, ebx
mov edx, dword [esi + 0x90]
mov eax, dword [esp + 0x10]
add eax, edx
mov ecx, dword [eax + 4]
cmp ecx, ebp
je 0x47ccfd
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x47ccfd
mov eax, ecx
mov ecx, esi
mov edi, dword [eax + ebx*4]
push edi
call fcn.0047de50
mov ebp, eax
test ebp, ebp
je 0x47ccf5
push ebp
mov ecx, esi
call fcn.0047f240
test eax, eax
je 0x47ccf5
mov edx, dword [esi + 0x74]
cmp edi, edx
je 0x47ccf5
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebx, ebx
sete cl
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x90]
add eax, ecx
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x47ccb6
xor eax, eax
jmp 0x47ccbe
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
dec eax
xor ecx, ecx
cmp ebx, eax
lea eax, [edi + 1]
sete cl
mov dword [esp + 0x28], ecx
xor ecx, ecx
cmp eax, edx
sete cl
dec edi
mov dword [esp + 0x30], ecx
xor eax, eax
cmp edi, edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x18]
sete al
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x3c], eax
call fcn.0047fbe0
inc ebx
xor ebp, ebp
jmp 0x47cc47
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jmp 0x47cc20
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
call fcn.0047e160
test eax, eax
pop ebx
je 0x47cd9d
mov ecx, dword [esi + 0x74]
push ecx
mov ecx, esi
call fcn.0047de50
mov edi, eax
cmp edi, ebp
je 0x47cd9d
push edi
mov ecx, esi
call fcn.0047f240
test eax, eax
je 0x47cd9d
mov eax, 1
lea edx, [esi + 0x1f8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x74]
mov ecx, esi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], edx
call fcn.0047e3a0
mov ecx, dword [esi + 0x74]
mov dword [esp + 0x20], eax
push ecx
mov ecx, esi
call fcn.0047e410
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push eax
call fcn.0047fbe0
pop edi
pop esi
pop ebp
add esp, 0x28
ret 4
Function at 0x4856b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4abac1
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4856ed
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004a27b4
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004a1afc
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0047e6d0
lea ecx, [esp + 8]
call fcn.004a2a23
lea ecx, [esp + 0x30]
call fcn.004a1c60
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004a1afc
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.0047eb40
lea ecx, [esp + 0x74]
call fcn.004a1c60
lea ecx, [esp + 8]
call fcn.004a2a24
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.0047c370
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.0047e670
mov ecx, esi
call fcn.0047f180
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.0047e670
mov ecx, esi
call fcn.0047f180
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.0047e670
mov ecx, esi
call fcn.0047f180
mov ecx, dword [edi + 0x5c]
call fcn.0047bb50
push eax
mov ecx, esi
call fcn.0047bb60
mov ecx, dword [edi + 0x5c]
call fcn.0047c110
push eax
mov ecx, esi
call fcn.0047c0b0
mov ecx, dword [edi + 0x5c]
call fcn.0047c230
push eax
mov ecx, esi
call fcn.0047c1e0
mov ecx, dword [edi + 0x5c]
push 0
call fcn.0047b430
push eax
mov ecx, esi
call fcn.0047b440
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004a1bd8
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004a1bd8
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004a283d
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x486f50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4abce7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00498c03
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00498c03
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00487a70
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x487ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4abdc0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004a4a45
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x487af3
xor al, al
jmp 0x487c1f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x487b15
xor al, al
jmp 0x487c1f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x487b28
xor al, al
jmp 0x487c1f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x487b3c
xor al, al
jmp 0x487c1f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00498cc8
test eax, eax
jne 0x487b70
xor al, al
jmp 0x487c1f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x5c5464
mov dword [esp + 0x20], ebp
call fcn.004a4a45
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004a17b1
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004a1808
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x487c04
mov ax, word [ebx]
test ax, ax
je 0x487bf6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00487c40
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x487bda
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004a1808
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x488180
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004a2e61
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4881c6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00489d88
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5e5754
push ecx
call fcn.0048b681
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x49cd77
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49cdaf
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ae1c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049adf4
jmp 0x49cdbb
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49e571
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49e5b3
call fcn.004a4a45
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e5b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e5aa
xor eax, eax
jmp 0x49e5bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e5c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a4f75
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a4fa3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4fc1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a4edb
jmp 0x4a4fc1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a4fc1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a4edb
test edi, edi
mov eax, edi
jne 0x4a4fab
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401057
Capabilities:
Write file on windows

Disassembly:
xor ecx, ecx
mov cl, 2
mov edx, 0x409070
test byte [0x40aac4], 4
jne 0x401078
mov edx, 0x409072
inc ecx
test byte [0x40aac4], 2
je 0x40108c
push 0
push section.data
push ecx
push edx
push dword [0x409064]
call sub.KERNEL32.dll_WriteFile
ret

Function at 0x4010b0
Capabilities:
Write file on windows

Disassembly:
pop dword [0x409004]
test byte [0x40aac4], 0x40
jne 0x401110
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
test byte [0x40aac4], 0x80
jne 0x4010e3
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x401100
mov ebx, dword [esp + 8]
mov esi, dword [esp + 4]
call fcn.0040108d
shr ebx, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
call dword [0x40904c]
or eax, eax
jne 0x401135
call fcn.00401057
or byte [0x40aac4], 0x40
test byte [0x40aac4], 4
je 0x40112e
mov ebx, dword [esp + 8]
mov esi, dword [esp + 4]
call fcn.0040108d
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
call sub.KERNEL32.dll_WriteFile
jmp 0x401138
add esp, 0x14
push dword [0x409004]
ret

Function at 0x401510
Capabilities:
Write file on windows

Disassembly:
test byte [0x40907e], 0x10
jne 0x40154a
mov esi, 0x40d7d0
mov ecx, dword [0x40a8d8]
sub ecx, esi
jbe 0x40152f
mov edi, 0x40d9d0
rep movsb byte es:[edi], byte [esi]
mov al, byte [edi - 1]
mov edx, 0x7365722e
cmp al, 0x5a
ja 0x401544
cmp al, 0x41
jb 0x401544
mov edx, 0x5345522e
mov dword [edi], edx
mov byte [edi + 4], 0
mov edx, 0x40d9d0
test byte [0x40aac4], 0x80
jne 0x401561
test byte [0x40aac4], 0x10
je 0x401566
call fcn.00401b3f
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
test byte [0x40aac4], 0x80
je 0x40158a
call dword [0x409050]
jmp 0x40158f
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401596
stc
ret
mov esi, eax
push 0
push 0
push 0
push esi
call sub.KERNEL32.dll_SetFilePointer
mov eax, dword [0x40a978]
sub eax, dword [0x40a970]
jbe 0x4015e7
push 0
push section.data
push eax
push dword [0x40a970]
push esi
call sub.KERNEL32.dll_WriteFile
or eax, eax
je 0x4015e7
push esi
call sub.KERNEL32.dll_SetEndOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x40d9d0
call fcn.004011ec
and byte [0x40907e], 0xfe
ret
push esi
call sub.KERNEL32.dll_CloseHandle
stc
ret
Function at 0x4015ef
Capabilities:
Write file on windows

Disassembly:
test byte [0x40907e], 0x20
jne 0x401629
mov esi, 0x40d7d0
mov ecx, dword [0x40a8d8]
sub ecx, esi
jbe 0x40160e
mov edi, 0x40dbd0
rep movsb byte es:[edi], byte [esi]
mov al, byte [edi - 1]
mov edx, 0x6a626f2e
cmp al, 0x5a
ja 0x401623
cmp al, 0x41
jb 0x401623
mov edx, 0x4a424f2e
mov dword [edi], edx
mov byte [edi + 4], 0
mov edx, 0x40dbd0
test byte [0x40aac4], 0x80
jne 0x401640
test byte [0x40aac4], 0x10
je 0x401645
call fcn.00401b3f
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
test byte [0x40aac4], 0x80
je 0x401669
call dword [0x409050]
jmp 0x40166e
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x401675
stc
ret
mov esi, eax
push 0
push 0
push 0
push esi
call sub.KERNEL32.dll_SetFilePointer
mov eax, dword [0x40900c]
sub eax, dword [0x409008]
push 0
push section.data
push eax
push dword [0x409008]
push esi
call sub.KERNEL32.dll_WriteFile
mov eax, dword [0x409018]
sub eax, dword [0x409010]
push 0
push section.data
push eax
push dword [0x409010]
push esi
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_SetEndOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
mov edx, 0x40dbd0
call fcn.004011ec
and byte [0x40907e], 0xfd
ret
Function at 0x401930
Capabilities:
Accept command line arguments

Disassembly:
mov byte [0x40907c], 0
or byte [0x40aac9], 8
call sub.KERNEL32.dll_GetCommandLineW
mov esi, eax
push eax
call sub.KERNEL32.dll_lstrlenW
mov ecx, eax
shl ecx, 1
mov edi, dword [0x40a960]
mov ebx, dword [0x40a96c]
call fcn.00407d7e
mov dword [0x40a96c], ebx
mov dword [0x40a964], edi
mov dword [0x40a968], edi
mov esi, dword [0x40a960]
mov ecx, edi
sub ecx, esi
push ecx
push esi
mov edi, esi
jecxz 0x4019e6
mov al, byte [edi]
cmp al, 0x22
je 0x40198c
cmp al, 0x27
jne 0x401992
inc edi
dec ecx
je 0x4019e6
jmp 0x401994
mov al, 0x20
repne scasb al, byte es:[edi]
jne 0x4019e6
call fcn.004016df
je 0x4019e6
mov ax, word [edi]
cmp al, 0x2d
je 0x4019aa
cmp al, 0x2f
jne 0x4019f3
call fcn.0040177d
jb 0x4019e6
je 0x401998
cmp ah, 0x68
je 0x4019c2
cmp ah, 0x48
je 0x4019c2
cmp ah, 0x3f
jne 0x4019cb
or byte [0x40907e], 8
jmp 0x4019e6
cmp ah, 0x64
je 0x4019df
cmp ah, 0x44
je 0x4019df
inc edi
dec ecx
je 0x4019e6
inc edi
dec ecx
je 0x4019e6
jmp 0x401998
call fcn.004016eb
jae 0x401998
pop esi
pop ecx
cmp dword [0x409078], 0
jne 0x401a3f
jmp 0x401a35
mov bl, byte [0x40907e]
and bl, 0x30
shr bl, 4
or byte [0x40907e], bl
pop esi
pop ecx
cmp byte [esi + ecx - 1], 0x20
jne 0x401a12
loop 0x401a07
jmp 0x401a35
mov edx, ecx
mov ah, byte [esi + ecx - 1]
mov al, 0x22
cmp al, ah
je 0x401a24
mov al, 0x27
cmp al, ah
jne 0x401a2b
mov byte [0x40907c], al
jmp 0x401a33
mov al, 0x20
cmp byte [esi + ecx - 1], al
je 0x401a48
loop 0x401a2d
mov edx, 0x40907f
call fcn.0040113f
and byte [0x40aac9], 0xf7
stc
ret
add esi, ecx
sub ecx, edx
jae 0x401a35
neg ecx
push ecx
cmp byte [0x40907c], 0
je 0x401a5b
dec ecx
mov edi, 0x40d7d0
xor ah, ah
mov al, byte [esi]
cmp al, 0x7f
jbe 0x401a6a
mov ah, 0x10
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x401a62
mov byte [edi], 0
or byte [0x40aac4], ah
pop ecx
mov edx, ecx
mov al, byte [ecx + 0x40d7cf]
cmp al, 0x2e
je 0x401a9b
cmp al, 0x5c
je 0x401a91
cmp al, 0x3a
je 0x401a91
loop 0x401a7d
mov bl, 0xc0
add edx, 0x40d7d0
jmp 0x401b0c
mov edx, ecx
add edx, 0x40d7d0
mov eax, dword [edx]
dec edx
mov bl, 0x40
cmp ax, 0x4352
je 0x401aba
cmp ax, 0x6352
je 0x401aba
cmp ax, 0x6372
jne 0x401ac2
cmp byte [edx + 3], 0
je 0x401b0c
jmp 0x401b05
mov bl, 0x80
shl eax, 8
shr eax, 8
cmp eax, 0x534552
je 0x401adf
cmp eax, 0x736552
je 0x401adf
cmp eax, 0x736572
jne 0x401b05
cmp byte [edx + 4], 0
jne 0x401b05
or byte [0x40907e], 2
test byte [0x40907e], 1
je 0x401b0c
test byte [0x40907e], 2
jne 0x401b0c
mov edx, 0x4094b9
jmp 0x401b31
mov edx, 0x4092e0
jmp 0x401b31
or byte [0x40907e], bl
test byte [0x40907e], 3
jne 0x401b22
or byte [0x40907e], 3
mov dword [0x40a8d8], edx
and byte [0x40aac9], 0xf7
clc
ret
call fcn.0040113f
and byte [0x40aac9], 0xf7
stc
ret
Function at 0x401bf2
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0
push 0
push 0
push 2
push 0
push dword [0x409048]
test byte [0x40aac4], 0x80
je 0x401c13
call dword [0x409054]
jmp 0x401c18
call sub.KERNEL32.dll_CreateFileMappingA
or eax, eax
je 0x401c56
mov dword [0x409044], eax
push 0
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
or eax, eax
je 0x401c56
mov dword [0x40a990], eax
push 0
push dword [0x409048]
call sub.KERNEL32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x401c56
add eax, dword [0x40a990]
mov dword [0x40a994], eax
ret
mov esi, 0x409497
call fcn.004011c1
stc
ret

Function at 0x401c62
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0
push dword [0x409048]
call sub.KERNEL32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x401cb8
mov edi, eax
push 4
push 0x1000
push edi
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov edx, 0x40a382
or eax, eax
je 0x401cc4
mov dword [0x40a970], eax
add eax, edi
mov dword [0x40a978], eax
push 0
push section.data
push edi
push dword [0x40a970]
push dword [0x409048]
call sub.KERNEL32.dll_ReadFile
or eax, eax
je 0x401cb8
ret
mov esi, 0x409497
call fcn.004011c1
jmp 0x401cc9
call fcn.0040113f
stc
ret

Function at 0x4028bc
Capabilities:
Identify system language via api

Disassembly:
push 0x40274a
call sub.KERNEL32.dll_SetUnhandledExceptionFilter
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
mov dword [0x409064], eax
call fcn.0040280d
call fcn.00403c49
jb 0x40291a
call fcn.00401930
jb 0x40291a
test byte [0x40907e], 0x40
je 0x402980
call fcn.0040272a
call fcn.00401ba2
jne 0x40291c
test byte [0x40907e], 0x80
je 0x402910
test byte [0x40907e], 2
jne 0x402980
mov esi, 0x40931c
call fcn.004011c1
jmp 0x40297e
call fcn.00401bf2
jb 0x40297e
call fcn.00403c6f
jb 0x40297e
call fcn.00403c90
jb 0x40297e
call fcn.00407d0d
call fcn.00407e5f
jb 0x40297e
call fcn.00401230
call fcn.004082a5
call fcn.00407c4f
call fcn.00401cfa
call fcn.00403cdb
call fcn.004027e7
cmp dword [0x409078], 0
jne 0x40297e
test byte [0x40907e], 1
je 0x4029c1
call fcn.00401510
jae 0x4029c1
mov edx, 0x40937e
call fcn.0040113f
jmp 0x4029cf
call fcn.00403cdb
call fcn.0040273a
call fcn.00401ba2
jne 0x4029ba
test byte [0x40907e], 0x40
je 0x4029a9
call fcn.0040272a
mov esi, 0x40931c
call fcn.004011c1
call fcn.0040273a
mov esi, 0x40931c
call fcn.004011c1
jmp 0x4029cf
call fcn.00401c62
jb 0x4029cf
test byte [0x40907e], 2
je 0x4029cf
call fcn.00402322
call fcn.00403cdb
call fcn.00403d07
call fcn.00403cf1
call fcn.004027e7
xor eax, eax
cmp dword [0x409078], eax
je 0x402a30
test byte [0x40907d], 0x10
je 0x402a05
push 0xfa
push 0x3e8
call sub.KERNEL32.dll_Beep
test byte [0x40907e], 1
je 0x402a18
mov edx, 0x4093ce
call fcn.0040113f
test byte [0x40907e], 2
je 0x402a2b
mov edx, 0x409457
call fcn.0040113f
mov eax, 1
push eax
call sub.KERNEL32.dll_ExitProcess
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x403047
Capabilities:
Read file via mapping

Disassembly:
push esi
mov dword [0x40a98c], esi
mov ebx, dword [esi + 0xc]
mov esi, dword [esi + 8]
mov edi, esi
add edi, ebx
or byte [0x40aaca], 0x10
call fcn.004065a5
jb 0x4030d5
push 0
push 0
push 0
push 2
push 0
push dword [0x40a9c4]
test byte [0x40aac4], 0x80
je 0x403087
call dword [0x409054]
jmp 0x40308c
call sub.KERNEL32.dll_CreateFileMappingA
mov edx, 0x1188a
or eax, eax
je 0x4030d5
pop esi
mov dword [esi + 0x1c], eax
push 0
push 0
push 0
push 4
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [esi + 0x18], eax
mov dword [0x40aa1c], eax
mov dword [0x40aa20], ebx
mov edx, dword [0x40a9c4]
mov dword [esi + 0x14], edx
mov word [esi + 0x34], 0
mov word [esi + 0x36], 1
mov dword [esi + 0x30], ebx
call fcn.00407ee0
jb 0x4030ef
ret
push edx
mov ecx, dword [0x40a9c4]
jecxz 0x4030e4
push ecx
call sub.KERNEL32.dll_CloseHandle
pop edx
or edx, edx
je 0x4030fd
or edx, 0x8000000
call fcn.00403d6e
pop esi
mov dword [esi], 4
jmp 0x4030fe
pop esi
stc
ret

Function at 0x407c4f
Capabilities:
Identify system language via api

Disassembly:
call sub.KERNEL32.dll_GetUserDefaultLangID
mov word [0x40aa7a], ax
push 4
push 0x2000
push 0x100000
push 0
call sub.KERNEL32.dll_VirtualAlloc
or eax, eax
jne 0x407c7c
mov edx, 0x1188a
call fcn.00403d6e
ret
mov ecx, dword [0x40a994]
sub ecx, edi
mov dword [0x40aa44], eax
mov dword [0x40aa48], eax
mov dword [0x40aa4c], eax
mov dword [0x40aa0c], 1
call fcn.00407a2d
jb 0x407cc4
or ecx, ecx
jne 0x407c9d
call fcn.00402bf4
jne 0x407c9d
call fcn.00407c23
jb 0x407cc9
cmp dword [0x40a9f4], 0
je 0x407cc9
mov edx, 0x11405
call fcn.00403d6e
push 0x4000
push 0x10000
push dword [0x40aa44]
call sub.KERNEL32.dll_VirtualFree
push 0x8000
push 0
push dword [0x40aa44]
call sub.KERNEL32.dll_VirtualFree
mov byte [0x40aac5], 0
mov byte [0x40aac6], 0
mov byte [0x40aac7], 0
mov byte [0x40aac8], 0
ret

Function at 0x407d0d
Capabilities:
Query environment variable

Disassembly:
push 0x100
push 0x40edd0
push 0x40ab7b
call sub.KERNEL32.dll_GetEnvironmentVariableA
or eax, eax
je 0x407d4a
add eax, 0x40edd0
cmp byte [eax - 1], 0x5c
je 0x407d34
mov byte [eax], 0x5c
inc eax
mov dword [0x40a980], eax
sub eax, 0x40edd0
sub eax, 0x100
neg eax
mov dword [0x40a984], eax
ret