joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ae4c
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407520
xor eax, eax
push ebp
push 0x40af0e
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407c14
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407d5c
mov eax, dword [ebx]
call fcn.0040acf8
test al, al
jne 0x40aee9
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00407c14
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00407d5c
mov eax, dword [ebx]
call fcn.0040acf8
test al, al
jne 0x40aee9
mov eax, ebx
call fcn.0040742c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40af15
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040748c
lea eax, [ebp - 4]
call fcn.0040742c
pop eax
jmp eax

Function at 0x40c9a0
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x416e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x416e69
test eax, edx
je 0x416e6c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x416e27
movzx eax, word [eax]
sub eax, ecx
jmp 0x416e4e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x416e4f
add ecx, 4
js 0x416e3f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x416e4c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x416e4e
xor eax, eax
ret
test eax, eax
je 0x416e78
test edx, edx
jne 0x416e18
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c3c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41c401
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407578
jmp 0x41c40a
mov eax, ebx
mov edx, esi
call fcn.004077d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c414
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x41c438
movzx eax, word [esp]
jmp 0x41c43a
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41e130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41e257
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041df38
mov esi, eax
mov eax, dword [0x42e7d4]
cmp byte [eax], 0
je 0x41e1fd
mov eax, dword [0x42e6b8]
call fcn.00405238
call fcn.00404a58
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41e100]
call fcn.00409a44
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41e270
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x41e239
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x42e68c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x432634]
call fcn.00409dd4
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e25e
lea eax, [ebp - 4]
mov edx, dword [0x41e100]
call fcn.00409b68
pop eax
jmp eax

Function at 0x420304
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.004078c0
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c980
mov edi, eax
cmp edi, 0x104
jbe 0x4202af
mov eax, edi
add eax, eax
call fcn.00404900
mov esi, eax
jmp 0x4202b1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040c980
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4202ea
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4202d4
mov eax, esp
cmp esi, eax
je 0x4202f7
mov eax, esi
call fcn.0040491c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x420330
cmp bl, 0
je 0x42032c
cmp bl, 0x41
jl 0x420327
cmp bl, 0x5a
jg 0x420327
or bl, 0x20
xor al, bl
inc esi
jmp 0x42030b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x420270

Function at 0x4206a0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00407c14
add esp, 0x800
pop ebx
ret
Function at 0x420f1c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x420f3a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x420f52
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x420f4d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x420f57
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x420fc5
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42100e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x420f83
inc dword [ebp - 0xc]
jmp 0x420f9b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x420f9b
cmp dword [ebp - 0xc], 0
jle 0x420f9b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x420fbd
xor eax, eax
jmp 0x420fb9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x420fb8
mov eax, esi
jmp 0x421011
inc eax
cmp eax, ecx
jle 0x420fa5
inc esi
cmp esi, dword [ebp - 8]
jl 0x420f6f
jmp 0x42100e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42100e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x420fe6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x421008
xor eax, eax
jmp 0x421004
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x421003
mov eax, esi
jmp 0x421011
inc eax
cmp eax, ecx
jle 0x420ff0
inc esi
cmp esi, dword [ebp - 8]
jl 0x420fce
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x421200
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42121d
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42122b
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42134d
test ebx, ebx
jl 0x42134d
test esi, esi
jle 0x42134d
mov eax, dword [ebp - 8]
call fcn.00407b88
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b88
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x4212ea
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42134d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x4212cf
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42129e
inc dword [ebp - 0x14]
jmp 0x4212ae
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x4212ae
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x4212b9
or eax, 0xffffffff
jmp 0x4212cf
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x4212cc
inc eax
jmp 0x4212cf
or eax, 0xffffffff
test eax, eax
jl 0x4212d7
cmp esi, eax
jg 0x42128c
cmp esi, eax
jg 0x4212e2
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x421350
inc edx
dec dword [ebp - 0x1c]
jne 0x421288
jmp 0x42134d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42134d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x421334
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x421313
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42131e
or eax, 0xffffffff
jmp 0x421334
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x421331
inc eax
jmp 0x421334
or eax, 0xffffffff
test eax, eax
jl 0x42133c
cmp esi, eax
jg 0x4212fc
cmp esi, eax
jg 0x421347
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x421350
inc edx
dec dword [ebp - 0x1c]
jne 0x4212f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4272c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407520
mov eax, dword [ebp - 8]
call fcn.00407520
xor eax, eax
push ebp
push 0x427396
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x427315
push 0x4273b0
push dword [ebp - 4]
push 0x4273c0
push dword [ebp - 8]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00407de4
jmp 0x42732f
push 0x4273b0
push dword [ebp - 4]
push 0x4273b0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407de4
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.004052b0
mov dword [ebp - 0x50], 0x44
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x200
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00407b88
push eax
mov eax, dword [ebp - 4]
call fcn.00407b88
push eax
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42739d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040748c
pop eax
jmp eax

Function at 0x4273c8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00407b88
push eax
call 0x40d9c0
cmp eax, 0xffffffff
je 0x4273e1
test al, 0x10
jne 0x4273e5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x411014
Capabilities:
Terminate process

Disassembly:
jmp 0x412a00
jmp fcn.00413000
cmp ecx, dword [0x417014]
jne 0x412a0a
repz ret
jmp 0x411078
Function at 0x409b30
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push edi
mov edi, ecx
call fcn.00484fcd
lea eax, [edi + 0x20]
lea ecx, [esp + 4]
push eax
mov dword [esp + 0x14], 0x1a
call fcn.0046e1da
mov ecx, dword [esp + 4]
mov dword [esp + 0x1c], 0
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409b99
lea ecx, [esp + 4]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0046e465
pop edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.0046e93a
push 0x4ae940
lea ecx, [esp + 8]
call fcn.00467067
cmp eax, 0xffffffff
je 0x409be1
lea edx, [esp + 0xc]
push eax
push edx
lea ecx, [esp + 0xc]
call fcn.00466fcd
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x20], 1
call fcn.0046e59e
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.0046e465
push ebp
push esi
push str..PRJ
lea ecx, [esp + 0x10]
call fcn.0046e7cd
mov eax, dword [esp + 0xc]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x20]
mov esi, eax
push 4
push edx
push esi
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [edi + 0x2c270]
push 4
push ecx
push esi
call ebp
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [edi + 0x3230]
push 0x29040
push eax
push esi
call ebp
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [edi + 0x1b70]
push 0x16b8
push edx
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [edi + 0x3228], 1
mov dword [esp + 0x24], 0xffffffff
call fcn.0046e465
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop edi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x409ca0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48f968
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov esi, ecx
lea eax, [ebp + 8]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x2c], 0
call fcn.0046e1da
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.0046e93a
push 0x4ae940
lea ecx, [esp + 0x14]
call fcn.00467067
cmp eax, 0xffffffff
je 0x409d25
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00466fcd
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.0046e59e
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 1
call fcn.0046e465
push str..PRJ
lea ecx, [esp + 0x14]
call fcn.0046e7cd
mov edx, dword [esp + 0x10]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409e40
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x24]
push 4
push ecx
push ebx
call edi
test eax, eax
je 0x409e37
cmp dword [esp + 0x1c], 0x1a
jne 0x409e37
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esi + 0x2c270]
push 4
push eax
push ebx
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
lea edx, [esi + 0x3230]
push 0x29040
push edx
push ebx
call edi
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 0x1b70]
push 0x16b8
push ecx
push ebx
call edi
mov dword [esi + 0x3228], 1
mov edx, 0x4baac8
mov ecx, 0x4ba460
lea edi, [esi + 0x2840]
lea eax, [esi + 0x21d8]
mov esi, dword [eax - 0x668]
add edx, 4
mov dword [ecx - 0x668], esi
mov esi, dword [eax - 0x664]
mov dword [ecx - 0x664], esi
mov esi, dword [eax]
mov dword [ecx], esi
mov esi, dword [eax + 4]
mov dword [ecx + 4], esi
mov esi, dword [edi]
mov dword [edx - 4], esi
mov esi, dword [eax + 0x9a0]
mov dword [ecx + 0x9a0], esi
mov esi, dword [eax + 0x9a4]
mov dword [ecx + 0x9a4], esi
add edi, 4
add eax, 8
add ecx, 8
cmp edx, 0x4badfc
jl 0x409de4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409eb3
mov edx, 0x4baac8
mov eax, 0x4ba460
lea edi, [esi + 0x2840]
lea ecx, [esi + 0x21d8]
mov ebx, dword [eax - 0x668]
add edx, 4
mov dword [ecx - 0x668], ebx
mov ebx, dword [eax - 0x664]
mov dword [ecx - 0x664], ebx
mov ebx, dword [eax]
mov dword [ecx], ebx
mov ebx, dword [eax + 4]
mov dword [ecx + 4], ebx
mov ebx, dword [edx - 4]
mov dword [edi], ebx
mov ebx, dword [eax + 0x9a0]
mov dword [ecx + 0x9a0], ebx
mov ebx, dword [eax + 0x9a4]
mov dword [ecx + 0x9a4], ebx
add edi, 4
add eax, 8
add ecx, 8
cmp edx, 0x4badfc
jl 0x409e56
mov dword [esi + 0x3228], 0
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.0046e465
lea ecx, [ebp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0046e465
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b430
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push 0x80000001
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b4a3
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b498
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.0043cd6b
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x415820
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x200
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, 0x4b98c0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, str.daccel.dat
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x20]
push 0x40000000
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4158b7
mov edx, dword [esp + 0x210]
lea ecx, [esp + 0x210]
push 0
push ecx
push edx
push 0x4b860c
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x200
ret

Function at 0x418090
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
lea eax, [esp + 4]
push edi
mov dword [0x4b9688], 1
mov dword [0x4b9680], esi
mov ecx, dword [esi + 0x134]
push eax
push 0
push ecx
push 0x417d60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4180cf
pop edi
xor eax, eax
pop esi
pop ecx
ret
push 2
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00423040
mov eax, dword [0x4b9688]
test eax, eax
jne 0x4180df
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x4188b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49074f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x18], 0
call fcn.00484fcd
mov edi, dword [eax + 4]
push str.default
lea ecx, [esp + 0x14]
call fcn.0046e4d3
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b9690]
push eax
push str.directory
lea edx, [esp + 0x1c]
mov ebx, 1
push ecx
push edx
mov ecx, edi
mov dword [esp + 0x34], ebx
call fcn.004854c5
mov esi, dword [esp + 0x30]
push eax
mov ecx, esi
mov byte [esp + 0x28], 2
call fcn.0046e59e
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.0046e465
mov eax, dword [esi]
mov ecx, edi
push eax
mov eax, dword [0x4b9690]
push str.directory
push eax
call fcn.00478d03
mov ecx, dword [0x4b3880]
mov dword [esp + 0xc], ecx
mov edx, dword [esi]
lea eax, [esp + 0xc]
push edx
push 0x4b98c0
push str._s_s.mnc
push eax
mov byte [esp + 0x34], 3
call fcn.004673ed
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0046e59e
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call fcn.0046e1da
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], bl
call fcn.0046e465
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.0046e465
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret