joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
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 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401037
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
call 0x401037
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push esi
push edi
push ebx
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403030], eax
mov dword [ebp - 8], 0
push 0xa
push section..data
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
je 0x401089
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
je 0x401089
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4010c1
push 4
push 0x1000
push dword [ebp - 0xc]
push 0
call sub.kernel32.dll_VirtualAlloc
mov edi, eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push edi
call sub.kernel32.dll_RtlMoveMemory
mov dword [ebp - 8], edi
push 0xdeadbeef
push dword [ebp - 0xc]
push dword [ebp - 8]
call section..text
cmp dword [ebp - 8], 0
je 0x4010fb
lea eax, [ebp - 0x40c]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str.dup2patcher.dll
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
push dword [ebp - 8]
lea eax, [ebp - 0x40c]
push eax
call fcn.00401184
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401130
mov ebx, eax
push str.load_patcher
push ebx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x40111e
call eax
push ebx
call sub.kernel32.dll_FreeLibrary
lea eax, [ebp - 0x40c]
push eax
call sub.kernel32.dll_DeleteFileA
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401184
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x4011af
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x41c552
Capabilities:
Terminate process

Disassembly:
in al, dx
push 0xffffffffffffffff
push 0x41d2b8
push 0x41c6d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x44027c], 0xffffffff
or dword [0x440280], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x440278]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x440274]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x440284], eax
call fcn.0041c6cf
cmp dword [0x42c1b0], ebx
jne 0x41c5d3
push 0x41c6cc
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.0041c6ba
push 0x41e00c
push 0x41e008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x440270]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x44026c]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x41e004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x41c666
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x41c63a
cmp al, 0x22
jne 0x41c62c
cmp byte [esi], 0x22
jne 0x41c643
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x41c64d
cmp al, 0x20
jbe 0x41c63f
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x41c671
movzx eax, word [ebp - 0x2c]
jmp 0x41c674
cmp byte [esi], 0x20
jbe 0x41c643
inc esi
mov dword [ebp - 0x74], esi
jmp 0x41c666
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x42f980
Capabilities:
Encode data using xor

Disassembly:
and bh, byte [esi - 0x27]
in al, dx
les ebx, [esi + 0x5a661731]
or byte es:[ecx], dh
movsd dword es:[edi], dword [esi]
xor esp, dword [ecx - 0x1b3e5702]
jge 0x42f984
push ecx
mov esi, 0x9c4143b8
push esp
push ebp
mov eax, 0x487c1be3
xchg dword [ebx + 0x45ca5eae], esp
aas
aad 0x9e
mov dword gs:[0xce87a22b], eax
cli
pushal
scasb al, byte es:[edi]
push ds
bound eax, qword [ecx + 0x31]
mov ch, 0xe3
xor eax, 0xecba6d2a
sbb dword [esi], 0x36
in al, 0x65
adc ah, cl
mov esi, 0xd3a84d21
insd dword es:[edi], dx
cwde
sti
mov eax, dword [0xa736fcfc]
mov byte [0xeac56ebf], al
dec ebx
wait
xchg ebp, eax
adc bl, dh
inc esi
nop
test dword [esp + esi - 0x1d32a2fa], 0xd8513b38
xor byte [ecx + 0x2c238dc], ch
ljmp 0x5d3c

Function at 0x62b525
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632378
cmp edx, dword [eax]
je 0x62b547
add eax, 8
inc ecx
cmp eax, 0x632408
jl 0x62b538
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632378]
jne 0x62b675
mov eax, dword [0x637d00]
cmp eax, 1
je 0x62b64f
test eax, eax
jne 0x62b578
cmp dword [0x6322a4], 1
je 0x62b64f
cmp edx, 0xfc
je 0x62b675
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62b5af
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0062bf10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0062c3a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x62b5f2
lea eax, [ebp - 0x1a4]
push eax
call fcn.0062c3a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x6306dc
push edi
call fcn.0062e270
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0062bf10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0062bf20
lea eax, [ebp - 0xa0]
push 0x6306bc
push eax
call fcn.0062bf20
push dword [esi + 0x63237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0062bf20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062e1e4
add esp, 0x2c
pop edi
jmp 0x62b675
lea eax, [ebp + 8]
lea esi, [esi + 0x63237c]
push 0
push eax
push dword [esi]
call fcn.0062c3a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404f30
Capabilities:
Read .ini file
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443d09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push ebx
push ebp
push esi
push edi
mov ebp, ecx
or esi, 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [ebp + 4], esi
xor ebx, ebx
mov dword [ebp], 0x447530
mov dword [esp + 0x52c], ebx
mov dword [ebp + 0x20], esi
push ebx
push ebx
push ebx
push ebx
push 1
push ebx
lea ecx, [ebp + 0x28]
mov byte [esp + 0x544], 1
call fcn.0043eae4
mov dword [ebp + 0x60], esi
push ebx
push ebx
push 1
push ebx
mov byte [ebp + 0x40], bl
mov byte [ebp + 0x41], bl
mov byte [ebp + 0x25], bl
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0x866], bl
mov dword [ebp + 0xc], ebx
mov byte [ebp + 0x864], bl
mov byte [ebp + 0x865], bl
mov byte [ebp + 0x24], bl
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp + 0x20], eax
push str..CONFIG.ini
mov byte [ebp + 0x874], bl
mov ecx, 7
mov esi, str.patch.spiritofshaiya.com
mov edi, 0x45b9c0
rep movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x104
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0x447068
push str.TEST_IP
push str.LOGIN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4050eb
mov edi, str.GERMANY
lea esi, [esp + 0x18]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4050eb
push 0x44743c
push str.UpdaterURL.txt
call fcn.00420e8c
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x40506d
push ebx
push str.Error
push str.Cant_Find_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420c7b
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x120]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x120]
push eax
push 0x4470ac
push esi
call fcn.00420e9f
lea eax, [esp + 0x12c]
add esp, 0xc
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4050a0
sub eax, edx
cmp eax, 1
jae 0x4050c6
push ebx
push str.Error
push str.Cant_Read_UpdaterURL.txt
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.00420c7b
xor eax, eax
jmp 0x4050d0
mov cl, byte [esp + eax + 0x120]
mov byte [eax + 0x45b9c0], cl
inc eax
cmp cl, bl
jne 0x4050d0
push esi
call fcn.00420ddf
add esp, 4
mov ecx, dword [esp + 0x524]
pop edi
mov eax, ebp
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406495
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4064d4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4064d4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4064d4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4064d4
cmp dword [ecx + 0x74], 0xe
jbe 0x4064d4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40eca3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c220
push 0x41c218
push str.FlsAlloc
push 0x1f
call fcn.0040eb8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ecd7
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
jmp 0x40ecdd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ed21
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c230
push 0x41c228
push str.FlsGetValue
push 0x21
call fcn.0040eb8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ed58
push dword [ebp + 8]
mov ecx, esi
call dword [0x419130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40ed60
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c238
push 0x41c230
push str.FlsSetValue
push 0x22
call fcn.0040eb8a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ed9a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x419130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4117bf
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x423040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41180a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041195a
test al, al
jne 0x411804
sub edx, 2
cmp edx, edi
jne 0x4117ea
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41182c
lea eax, [edi + 2]
cmp edx, eax
je 0x41182c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041170b
add esp, 0x10
jmp 0x411926
push esi
lea ecx, [ebp - 0x255]
call fcn.0041195a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41186f
push dword [ebp - 0x25c]
jmp 0x41181c
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4118ac
cmp word [ebp - 0x226], 0
je 0x4118cd
cmp word [ebp - 0x226], ax
jne 0x4118ac
cmp word [ebp - 0x224], 0
je 0x4118cd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041170b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x411919
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x411886
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x411901
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x411926
push 0x41153b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004159d0
add esp, 0x10
jmp 0x4118f6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405730
leave
ret

Function at 0x4145ab
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040e5fa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41461a
cmp esi, dword [ebp - 4]
je 0x414615
cmp dword [ebp + 0xc], 0
je 0x414615
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4145f2
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004140fd
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41461c
xor eax, eax
inc eax
jmp 0x41461c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x414681
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x423040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0040e5fa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040e5fa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4146f8
cmp word [ecx], dx
je 0x4146f8
mov eax, dword [0x41c87c]
push edi
dec eax
push eax
push 0x41c768
call fcn.00414620
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41476b
cmp word [eax], dx
je 0x41476b
mov eax, dword [edi]
test eax, eax
je 0x41471c
cmp word [eax], dx
je 0x41471c
lea eax, [ebp - 0x10]
push eax
call fcn.00414003
jmp 0x414725
lea eax, [ebp - 0x10]
push eax
call fcn.0041409e
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x414795
mov eax, dword [0x41c764]
push dword [ebp - 0x14]
dec eax
push eax
push 0x41c458
call fcn.00414620
add esp, 0xc
test al, al
je 0x414795
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x414760
cmp word [eax], di
je 0x414760
lea eax, [ebp - 0x10]
push eax
call fcn.00414003
pop ecx
jmp 0x414797
lea eax, [ebp - 0x10]
push eax
call fcn.0041409e
jmp 0x41475d
mov eax, dword [edi]
test eax, eax
je 0x414782
cmp word [eax], dx
je 0x414782
lea eax, [ebp - 0x10]
push eax
call fcn.00413fb8
pop ecx
jmp 0x414795
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x414860
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004144a5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x414860
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x414860
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x414860
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4147ed
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0040eea0
test ebx, ebx
je 0x41485b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0040eea0
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414860
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x414860
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041603d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x414862
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405730
leave
ret
Function at 0x418870
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41889d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41889d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405855
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413cd0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040248c
mov dword [ebp - 0x14], eax
cmp dword [0x414cf4], esi
jne 0x405948
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4058d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x405a28
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x405a28
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405a28
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x414cf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x414cf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x414cfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414d04], eax
test eax, eax
je 0x405945
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x414d00], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40596d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405960
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x405982
push 4
pop eax
jmp 0x405a2a
cmp dword [ebp - 0x14], esi
je 0x405982
push dword [0x414cf4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x405967
mov eax, dword [0x414d00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4059e0
cmp dword [0x414d04], edi
je 0x4059e0
push eax
call ebx
push dword [0x414d04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4059e0
test eax, eax
je 0x4059e0
call ecx
test eax, eax
je 0x4059d5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4059d5
test byte [ebp - 8], 1
jne 0x4059e0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x405a10
mov eax, dword [0x414cf8]
cmp eax, edi
je 0x405a0d
push eax
call ebx
test eax, eax
je 0x405a0d
call eax
mov esi, eax
test esi, esi
je 0x405a0d
mov eax, dword [0x414cfc]
cmp eax, edi
je 0x405a0d
push eax
call ebx
test eax, eax
je 0x405a0d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x414cf4]
call ebx
test eax, eax
je 0x405a28
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x405a2a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405a3b
mov esp, ebp
pop ebp
ret
Function at 0x535f10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc8000]
push edi
jmp 0x535f2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x535f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535f20
mov eax, 1
add ebx, ebx
jne 0x535f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x535f54
jne 0x535f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535f73
dec eax
add ebx, ebx
jne 0x535f60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x535f38
add ebx, ebx
jne 0x535f6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x535fc5
xor ecx, ecx
sub eax, 3
jb 0x535f8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x535ffa
sar eax, 1
mov ebp, eax
jmp 0x535f96
add ebx, ebx
jne 0x535f96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535f64
inc ecx
add ebx, ebx
jne 0x535fa4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x535f64
add ebx, ebx
jne 0x535fb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x535fa6
jne 0x535fc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x535fa6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x535fe4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x535fd6
jmp 0x535f26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x535fe4
add edi, ecx
jmp 0x535f26
pop esi
mov edi, esi
mov ecx, 0x997f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x536002
cmp byte [edi], 0x2f
jne 0x536002
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x536007
lea edi, [esi + 0x131000]
mov eax, dword [edi]
or eax, eax
je 0x53607f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13d568]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13d6d0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x536034
mov ecx, edi
jns 0x536063
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13d6d4]
or eax, eax
je 0x536079
mov dword [ebx], eax
add ebx, 4
jmp 0x536051
call dword [esi + 0x13d6e4]
mov ebp, dword [esi + 0x13d6d8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5360b3
sub esp, 0xffffff80
jmp 0x4b20a6