joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x1acc1ace
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x5a85040f
nop
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x44a71e
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 0x44a760
call fcn.004561ef
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x44a760
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x44a757
xor eax, eax
jmp 0x44a768
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044a76e
pop edi
pop esi
pop ebx
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401660
Capabilities:
Download url
Receive data

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
push edi
lea edi, [esi + 0x50]
lea eax, [esi + 0x40]
push edi
push eax
call fcn.00409280
test al, al
je 0x401777
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x401690
mov eax, 0x42c240
push ecx
mov ecx, dword [edi + 8]
push eax
push ecx
push 0
mov ecx, edi
call fcn.00404570
test eax, eax
je 0x401777
cmp dword [esp + 0x14], 1
jne 0x4016ce
mov edx, dword [esp + 0xc]
push 0x24
push 0x435164
push 0x435148
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401777
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4016e4
mov eax, 0x42c240
mov ecx, dword [esi + 0x70]
push 0
push 0
push eax
push ecx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x401777
mov eax, dword [esi + 0x34]
mov ecx, 0x42c240
test eax, eax
je 0x401706
mov ecx, eax
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x401712
mov eax, 0x42c240
push ecx
push eax
call fcn.0040cf40
add esp, 8
test eax, eax
mov eax, dword [esi + 0x24]
jne 0x401750
test eax, eax
jne 0x40172c
mov eax, 0x42c240
push eax
call fcn.0041dd82
add esp, 4
mov ecx, esi
call fcn.00401300
test al, al
je 0x401747
pop edi
mov al, 1
pop esi
ret 0x10
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x40176e
jmp 0x401769
test eax, eax
jne 0x401759
mov eax, 0x42c240
push eax
call fcn.0041dd82
mov esi, dword [esi + 0x34]
add esp, 4
test esi, esi
jne 0x40176e
mov esi, 0x42c240
push esi
call fcn.0041dd82
add esp, 4
pop edi
xor al, al
pop esi
ret 0x10
Function at 0x4067a0
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
sub esp, 0x1c
push str.MKTBEuPD0RunBlk
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x438638], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4067e9
push 0
push 0
push 0x402
push 0x43539c
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
add esp, 0x1c
ret 0x10
push ebx
push esi
push edi
push 0x4382e0
mov dword [0x4382e0], 8
mov dword [0x4382e4], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x6f
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 1
mov edi, eax
call fcn.0040d520
add esp, 4
mov dword [0x4385b8], eax
push 0
push 0x406910
push 0
push 0x71
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call ebx
test eax, eax
je 0x4068a9
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
call ebp
test eax, eax
jne 0x406897
lea edx, [esp + 0x10]
push edx
push esi
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x406897
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call ebx
test eax, eax
jne 0x406864
pop ebp
push edi
call dword [sym.imp.USER32.dll_DestroyAcceleratorTable]
mov eax, dword [0x438668]
pop edi
pop esi
cmp eax, 2
pop ebx
je 0x4068f8
push 0x4382e8
push eax
mov eax, dword [0x438350]
mov ecx, 0x4385c0
push eax
push 0
call fcn.00401660
test al, al
je 0x4068f8
mov ecx, dword [0x438350]
push str.https:__rgcorp.ucoz.net_load_0_0_0_31_20
call fcn.00409250
push 0x4386bc
mov ecx, 0x4385c0
call fcn.00401780
mov eax, dword [esp + 8]
add esp, 0x1c
ret 0x10
Function at 0x409250
Capabilities:
Download url
Receive data

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
lea eax, [esp + 0xc]
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLOpenBlockingStreamA
test eax, eax
pop esi
jne 0x40927c
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
ret 4

Function at 0x409280
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0x68
push ebx
mov ebx, dword [0x42c244]
push ebp
mov ebp, dword [esp + 0x78]
push esi
push edi
mov esi, dword [ebp + 4]
test esi, esi
je 0x4092c1
mov al, byte [esi - 1]
test al, al
je 0x4092c1
cmp al, 0xff
je 0x4092c1
push 1
mov ecx, ebp
call fcn.00402d60
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, ebp
call fcn.004038d0
mov eax, dword [ebp + 8]
cmp eax, ebx
jae 0x4092ca
mov ebx, eax
test ebx, ebx
jbe 0x4092fe
mov ecx, dword [ebp + 4]
sub eax, ebx
push eax
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0041dee0
mov esi, dword [ebp + 8]
add esp, 0xc
sub esi, ebx
mov ecx, ebp
push 0
push esi
call fcn.00403a10
test al, al
je 0x4092fe
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], esi
mov byte [esi + ecx], 0
mov esi, dword [esp + 0x7c]
mov eax, dword [esi + 4]
test eax, eax
jne 0x40930e
mov eax, 0x42c240
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov eax, dword [esi + 4]
test eax, eax
jne 0x409321
mov eax, 0x42c240
push 0
lea edx, [esp + 0x14]
push 0
push edx
push eax
push 0
call sub.urlmon.dll_URLOpenBlockingStreamA
test eax, eax
jne 0x409419
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x80]
push edx
lea edx, [esp + 0x18]
mov ecx, dword [eax]
push 0x64
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x409403
mov ecx, dword [0x42c244]
mov edi, dword [ebp + 8]
sub ecx, edi
mov esi, eax
cmp ecx, eax
ja 0x40937f
call fcn.004105fd
test esi, esi
jbe 0x409341
mov ecx, dword [ebp + 8]
mov ebx, esi
add ebx, ecx
cmp ebx, 0xfffffffd
jbe 0x409394
call fcn.004105fd
mov ecx, dword [ebp + 4]
test ecx, ecx
je 0x4093b9
mov al, byte [ecx - 1]
test al, al
je 0x4093b9
cmp al, 0xff
je 0x4093b9
test ebx, ebx
jne 0x4093d0
dec al
push ebx
mov byte [ecx - 1], al
mov ecx, ebp
call fcn.00402d60
jmp 0x409341
test ebx, ebx
jne 0x4093cb
test ecx, ecx
je 0x409341
mov dword [ebp + 8], ebx
mov byte [ecx], bl
jmp 0x409341
cmp dword [ebp + 0xc], ebx
jae 0x4093d8
push ebx
mov ecx, ebp
call fcn.00403f10
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov ecx, esi
add edi, edx
mov edx, ecx
lea esi, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ebx + eax], 0
jmp 0x409341
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x68
ret 8
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x68
ret 8
Function at 0x409a70
Capabilities:
Download url
Receive data

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov ebp, ecx
push 0x4358b4
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
test eax, eax
jne 0x409a9b
mov eax, 0x42c240
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
mov ecx, 0x42c240
test eax, eax
je 0x409ab4
mov ecx, eax
mov eax, dword [edi + 4]
test eax, eax
jne 0x409ac0
mov eax, 0x42c240
push 0
push 0
push ecx
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x409aed
cmp dword [esp + 0x20], 3
jae 0x409ae4
push str.https:__rgcorp.ucoz.net_load_0_0_0_43_20
mov ecx, ebp
call fcn.00409250
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x14
mov edx, dword [esi]
push 0x435868
push ebx
mov ecx, esi
call dword [edx + 0xc]
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x40c710
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc0c
push esi
mov esi, dword [esp + 0xc14]
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffa
push esi
mov dword [esp + 0x14], 0
call fcn.0041ec59
lea eax, [esp + 0x18]
push 4
push eax
push esi
call fcn.0041ea63
mov eax, dword [esp + 0x24]
add esp, 0x1c
cmp eax, 0x5a49442e
je 0x40c757
xor eax, eax
pop esi
add esp, 0xc0c
ret
push edi
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffe
push esi
call fcn.0041ec59
lea ecx, [esp + 0x18]
push 2
push ecx
push esi
call fcn.0041ea63
mov ecx, dword [esp + 0x24]
add esp, 0x1c
cmp ecx, 0xc00
mov edi, ecx
jle 0x40c78b
mov ecx, 0xc00
mov dword [esp + 8], ecx
mov eax, 0xffffffee
push 2
sub eax, ecx
cdq
push edx
push eax
push esi
call fcn.0041ec59
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push esi
call fcn.0041ea63
mov ecx, dword [esp + 0x24]
add esp, 0x1c
mov eax, edi
pop edi
mov byte [esp + ecx + 0xc], 0
pop esi
add esp, 0xc0c
ret
Function at 0x425091
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4374e8
cmp edx, dword [eax]
je 0x4250b3
add eax, 8
inc ecx
cmp eax, 0x437578
jl 0x4250a4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4374e8]
jne 0x4251e1
mov eax, dword [0x43986c]
cmp eax, 1
je 0x4251bb
test eax, eax
jne 0x4250e4
cmp dword [0x436e44], 1
je 0x4251bb
cmp edx, 0xfc
je 0x4251e1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42511b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00422cd0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00420390
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42515e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00420390
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42fa18
push edi
call fcn.00425e00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00422cd0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00422ce0
lea eax, [ebp - 0xa0]
push 0x42f9f8
push eax
call fcn.00422ce0
push dword [esi + 0x4374ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00422ce0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004281b5
add esp, 0x2c
pop edi
jmp 0x4251e1
lea eax, [ebp + 8]
lea esi, [esi + 0x4374ec]
push 0
push eax
push dword [esi]
call fcn.00420390
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 0x405dc0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
xor ebx, ebx
push eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov al, byte [esp + 0x30]
test al, al
jne 0x405def
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
movzx ebp, al
lea edi, [ebp*8]
push edi
call fcn.004ed893
mov esi, eax
push esi
mov eax, ebp
mov dword [esp + 0x1c], esi
call fcn.00405d20
add esp, 8
test al, al
je 0x405e8a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call fcn.004ed893
mov dword [esp + 0x1c], eax
push eax
mov eax, ebp
call fcn.00405d20
add esp, 8
test al, al
je 0x405e8a
cmp ebp, ebx
mov byte [esp + 0x13], bl
jle 0x405e8a
mov edi, dword [esp + 0x18]
sub edi, esi
mov ecx, dword [edi + esi]
sub ecx, dword [esi]
mov edx, dword [edi + esi + 4]
sbb edx, dword [esi + 4]
push 0
push 0x64
push edx
push ecx
call fcn.004faec0
push 0
push 0x989680
push edx
push eax
call fcn.004f8ec0
mov ecx, 0x64
sub ecx, eax
cmp ecx, 0x3c
jb 0x405e81
inc ebx
add esi, 8
cmp ebx, ebp
jl 0x405e46
jmp 0x405e86
mov byte [esp + 0x13], 1
mov esi, dword [esp + 0x14]
test esi, esi
je 0x405e97
push esi
call fcn.004ed7b6
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405ea8
push eax
call fcn.004ed7b6
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
Function at 0x407f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], vtable.t_env.0
mov dword [esp + 0x14], fcn.004ed893
mov dword [esp + 0x18], fcn.004ee443
mov dword [esp + 0x1c], fcn.004ed7b6
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x4000
mov dword [esp + 0x10], vtable.t_heap.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x48], ebx
call fcn.00407d60
add esp, 8
cmp eax, ebx
je 0x40802a
push eax
lea ecx, [esp + 0x10]
call fcn.004132f0
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [edx], eax
mov dword [esp + 0xc], vtable.t_env.0
mov dword [esp + 0x10], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00405700
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], vtable.t_env.0
mov dword [esp + 0x10], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00405700
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408ae0
Capabilities:
Get keyboard layout
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x50e516
mov eax, dword fs:[0]
push eax
sub esp, 0x718
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0x710], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x72c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x73c]
xor ebx, ebx
push 0x18c
lea ecx, [esp + 0x34]
push ebx
push ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ebx
call fcn.004f2770
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
push 0x64
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x408d07
mov byte [esp + 0x1c], bl
mov dword [esp + 0x18], ebx
xor ebp, ebp
cmp eax, ebx
mov dword [esp + 0x734], ebx
jle 0x408cfe
mov eax, dword [esp + ebp*4 + 0x2c]
push 0x10
push 0x11
lea ecx, [esp + 0x2f8]
push ecx
push eax
call fcn.004eef13
add esp, 0x10
test eax, eax
jne 0x408cf3
mov ecx, 0x19
mov esi, str.SYSTEMCurrentControlSetControlKeyboard_Layouts_
lea edi, [esp + 0x314]
rep movsd dword es:[edi], dword [esi]
push 0x1a2
lea edx, [esp + 0x37e]
push ebx
push edx
movsw word es:[edi], word [esi]
call fcn.004f2770
lea eax, [esp + 0x2fc]
push eax
lea ecx, [esp + 0x324]
push 0x104
push ecx
call fcn.004eef2d
mov esi, vtable.t_reg.0
add esp, 0x18
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x1bc], esi
call fcn.004174b0
mov eax, str.HKEY_LOCAL_MACHINE
lea edx, [esp + 0x1c8]
mov dword [esp + 0x1c0], ebx
mov dword [esp + 0x1c4], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00417710
push 1
push ebx
lea edx, [esp + 0x31c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x744], 1
call fcn.00418930
test al, al
jne 0x408c96
mov byte [esp + 0x734], bl
mov eax, dword [esp + 0x1c0]
mov dword [esp + 0x1bc], esi
cmp eax, ebx
je 0x408c5a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c0], ebx
mov dword [esp + method.t_str.virtual_0], vtable.t_str.0
cmp byte [esp + 0x2e4], bl
jne 0x408cf3
mov eax, dword [esp + 0x1d0]
lea ecx, [esp + 0x1d4]
cmp eax, ecx
je 0x408cf3
push eax
call fcn.004ed7b6
add esp, 4
jmp 0x408cf3
push 1
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x524]
push eax
lea ecx, [esp + 0x24]
push ecx
mov eax, str.Ime_File
lea ecx, [esp + 0x1cc]
mov dword [esp + 0x38], 0x208
call fcn.00418ad0
test al, al
je 0x408ce0
mov edx, dword [esp + 0x24]
push edx
lea eax, [esp + 0x520]
push eax
call fcn.004ecf82
add esp, 8
test eax, eax
je 0x408d31
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x734], bl
call fcn.004188e0
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x408b71
lea ecx, [esp + 0x18]
call fcn.004163d0
xor eax, eax
mov ecx, dword [esp + 0x72c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x710]
xor ecx, esp
call fcn.004ecddb
add esp, 0x724
ret
mov esi, dword [esp + ebp*4 + 0x2c]
lea ecx, [esp + 0x1bc]
call fcn.004188e0
lea ecx, [esp + 0x18]
call fcn.004163d0
mov eax, esi
jmp 0x408d09
Function at 0x40a610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50ae68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor ecx, ecx
mov ebp, vtable.t_env.0
mov dword [esp + 8], ebp
mov dword [esp + 0x10], fcn.004ed893
mov dword [esp + 0x14], fcn.004ee443
mov dword [esp + 0x18], fcn.004ed7b6
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0x4000
mov dword [esp + 0xc], vtable.t_heap.0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov byte [esp + 0x2c], cl
mov dword [esp + 0x38], ecx
cmp eax, ecx
jne 0x40a6f0
push esi
lea eax, [esp + 0xc]
push eax
push edi
mov byte [ebx], cl
call fcn.004a28f0
mov ecx, eax
call fcn.004a2140
test al, al
jne 0x40a6cc
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00405700
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebp
add esp, 0x34
ret
mov ecx, dword [0x56c6b4]
push ecx
lea ecx, [esp + 0xc]
call fcn.00413330
test al, al
je 0x40a707
mov edx, dword [0x56c6b8]
push edx
lea ecx, [esp + 0xc]
call fcn.00413380
push esi
push eax
mov eax, dword [esp + 0x48]
push eax
push edi
call fcn.004a7290
add esp, 0x10
test al, al
je 0x40a69c
mov byte [ebx], 1
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], vtable.allocator_unsigned_char__class_TAllocDefault_.0
call fcn.00405700
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebp
add esp, 0x34
ret
Function at 0x4113d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x514e8b
mov eax, dword fs:[0]
push eax
sub esp, 0xe2c
mov eax, dword [0x56957c]
xor eax, esp
mov dword [esp + 0xe24], eax
push esi
push edi
mov eax, dword [0x56957c]
xor eax, esp
push eax
lea eax, [esp + 0xe38]
mov dword fs:[0], eax
mov edi, dword [0x572400]
mov eax, 0xa
mov ecx, eax
lea edx, [eax + 0xa]
mov esi, eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x14], 0x73
mov dword [esp + 0x1c], 0x75
mov dword [esp + 0x24], 0x76
mov dword [esp + 0x20], 0x77
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], 0xb4
call fcn.00451440
lea esi, [esp + 0x4f4]
mov dword [esp + 0x34], vtable.t_bbSkinBase.0
call fcn.004083b0
mov dword [esp + 0x34], vtable.t_bbFlashExit.0
mov dword [esp + 0x20c], 1
lea eax, [esp + 0x34]
mov dword [esp + 0xe40], 0
call fcn.0044d9b0
lea esi, [esp + 0x34]
mov dword [esp + 0xe40], 0xffffffff
call fcn.0040d670
mov ecx, dword [esp + 0xe38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xe24]
xor ecx, esp
call fcn.004ecddb
mov esp, ebp
pop ebp
ret