joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013520
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1016008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp byte [0x1016001], bl
push esi
push edi
je 0x1013556
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1013639
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x101358f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1013640
and eax, 0xffff
or eax, 0x80070000
jmp 0x1013640
call fcn.01003e64
cmp esp, ebx
mov dword [ebp - 0x10], esp
jne 0x10135a5
mov eax, 0x8007000e
jmp 0x1013640
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x1013572
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1013572
call fcn.01003e64
cmp esp, ebx
mov dword [ebp - 0xc], esp
je 0x101359b
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1013572
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x14], eax
je 0x1013572
call fcn.01003e64
cmp esp, ebx
mov dword [ebp - 8], esp
je 0x101359b
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x1013572
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001339
leave
ret 0x14

Function at 0x1013c28
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1016008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1013c7c
push 3
lea eax, [ebp - 0x44]
push 0x1013c8c
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01001339
leave
ret
Function at 0x1013ca8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1016008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x1013d01
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x11c]
xor eax, eax
dec ecx
pop esi
je 0x1013d55
dec ecx
jne 0x1013d78
cmp edx, 5
jne 0x1013d4d
mov ecx, dword [ebp - 0x118]
sub ecx, eax
je 0x1013d49
dec ecx
je 0x1013d3e
dec ecx
je 0x1013d2f
push 0x14
jmp 0x1013da0
cmp word [ebp - 0xc], 1
jb 0x1013d39
push 0x10
pop eax
or eax, 4
jmp 0x1013d78
cmp word [ebp - 0xc], 2
jb 0x1013d39
push 8
jmp 0x1013d38
push 4
jmp 0x1013da0
cmp edx, 4
ja 0x1013d84
push 2
pop eax
cmp edx, 4
jne 0x1013d78
cmp dword [ebp - 0x118], 0
je 0x1013d75
cmp dword [ebp - 0x118], 0xa
je 0x1013d75
cmp dword [ebp - 0x118], 0x5a
jne 0x1013d78
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001339
leave
ret
cmp edx, 6
jne 0x1013da3
cmp dword [ebp - 0x118], 0
jne 0x1013da3
cmp dword [ebp - 0x114], 0x1554
jae 0x1013da3
push 0x40
pop eax
jmp 0x1013d78
push 0x20
jmp 0x1013da0

Function at 0x1013f3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1016008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp word [0x10164c8], si
jne 0x1013fd4
lea eax, [ebp - 0x10]
push eax
push 1
push esi
push 0x10140c8
push 0x80000002
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013fd4
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1014180
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x1013fd4
push 3
push dword [esi*8 + 0x1013fe8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x1013fc6
inc esi
cmp esi, 0x1c
jae 0x1013fd4
jmp 0x1013fa5
mov ax, word [esi*8 + 0x1013fec]
mov word [0x10164c8], ax
mov ecx, dword [ebp - 4]
mov ax, word [0x10164c8]
xor ecx, ebp
pop esi
call fcn.01001339
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402f70
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402fac
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402fcc
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004049fc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x403264
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040478c
test esi, esi
jne 0x40329a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040487c
jmp 0x4032b8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403108
mov edi, eax
test esi, esi
je 0x4032b8
cmp dword [ebx], 0
je 0x4032b8
dec esi
jmp 0x4032a1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032ec
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x419008], 0x8088405
inc edx
mov dword [ebx + 0x419008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4038d4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x419024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40396c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40394c
xor eax, eax
push ebp
push 0x403945
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403988
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40394c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x419024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x419024], ax
mov esp, ebp
pop ebp
ret

Function at 0x40460c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x855044], 0
je 0x40466d
cmp word [0x855218], 0xd7b2
jne 0x404635
cmp dword [0x855220], 0
jbe 0x404635
mov eax, 0x855214
call dword [0x855230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404694
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x419030], 0
jne 0x404689
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x407b3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404bf8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407b55
test al, 0x10
je 0x407b59
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a548
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a581
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040487c
jmp 0x40a58a
mov eax, ebx
mov edx, esi
call fcn.004047e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a594
Capabilities:
Get geographical location

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

Function at 0x40ac48
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40aac0
mov eax, dword [0x854818]
cmp byte [eax], 0
je 0x40acc4
mov eax, dword [0x85472c]
call fcn.0040336c
call fcn.00402efc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407d70
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ad0c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40acfa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x85470c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x8577f0]
call fcn.004059ec
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x411498
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], al
mov esi, ecx
dec esi
test esi, esi
jl 0x4114dc
inc esi
xor ebx, ebx
mov ebp, edi
add ebp, ebx
mov edx, ebp
lea eax, [esp + 1]
mov ecx, 1
call fcn.0040679c
movzx eax, byte [esp]
xor byte [esp + 1], al
lea edx, [esp + 1]
mov eax, ebp
mov ecx, 1
call fcn.0040679c
inc ebx
dec esi
jne 0x4114ac
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4114e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], al
mov esi, ecx
dec esi
test esi, esi
jl 0x411528
inc esi
xor ebx, ebx
mov ebp, edi
add ebp, ebx
mov edx, ebp
lea eax, [esp + 1]
mov ecx, 1
call fcn.0040679c
movzx eax, byte [esp]
xor byte [esp + 1], al
lea edx, [esp + 1]
mov eax, ebp
mov ecx, 1
call fcn.0040679c
inc ebx
dec esi
jne 0x4114f8
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x412a7c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov byte [esp], al
mov esi, ecx
dec esi
test esi, esi
jl 0x412ac0
inc esi
xor ebx, ebx
mov ebp, edi
add ebp, ebx
mov edx, ebp
lea eax, [esp + 1]
mov ecx, 1
call fcn.0040679c
movzx eax, byte [esp]
xor byte [esp + 1], al
lea edx, [esp + 1]
mov eax, ebp
mov ecx, 1
call fcn.0040679c
inc ebx
dec esi
jne 0x412a90
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416bf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x416d18
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
mov dl, 1
mov eax, dword [0x410064]
call fcn.00403a0c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x416cec
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
test edi, edi
je 0x416c3c
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x10]
push eax
mov ecx, 1
mov edx, edi
mov eax, ebx
call fcn.00404c60
mov eax, dword [ebp - 0x10]
mov edx, 0x416d34
call main
je 0x416c78
push ebx
push 0x416d34
mov eax, dword [0x8546f4]
push dword [eax]
mov eax, esi
mov edx, 3
call fcn.00404afc
jmp 0x416c89
mov ecx, dword [0x8546f4]
mov ecx, dword [ecx]
mov eax, esi
mov edx, ebx
call fcn.00404a80
mov eax, dword [esi]
call fcn.00407b3c
test al, al
je 0x416ca1
mov eax, dword [esi]
call fcn.00404bf8
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [0x8547c4]
movzx eax, byte [eax]
mov byte [ebp - 9], al
mov edx, dword [0x8547c4]
inc edx
mov ecx, 0x11ea00
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x10]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 4]
movzx eax, byte [ebp - 9]
call fcn.00412a7c
mov edx, dword [esi]
mov eax, dword [ebp - 8]
call fcn.00410f3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x416cfa
mov eax, dword [ebp - 8]
call fcn.00403a3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416d1f
lea eax, [ebp - 0x10]
call fcn.0040478c
ret
Function at 0x4171f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4173a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x410064]
call fcn.00403a0c
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x410064]
call fcn.00403a0c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4172f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [str.756b]
movzx ebx, byte [ebx + 4]
mov edx, dword [str.756b]
add edx, 5
mov ecx, 0x31c1af
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, ebx
call fcn.00411498
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00411554
mov eax, dword [ebp - 0x10]
call fcn.00416910
test al, al
je 0x4172d4
lea eax, [ebp - 4]
mov edx, 0x4173bc
call fcn.00404824
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov ecx, dword [ebp - 4]
call fcn.004127d4
call fcn.00416b74
test al, al
jne 0x4172ea
mov ecx, 0x4173c8
mov dl, 1
mov eax, dword [0x4067e8]
call fcn.0040ad10
call fcn.004041d4
jmp 0x4172ea
mov ecx, 0x4173c8
mov dl, 1
mov eax, dword [0x4067e8]
call fcn.0040ad10
call fcn.004041d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x417344
mov eax, dword [ebp - 0x10]
call fcn.00403a3c
mov eax, dword [ebp - 0xc]
call fcn.00403a3c
mov eax, dword [ebp - 8]
call fcn.00407b3c
test al, al
je 0x417380
mov eax, dword [ebp - 8]
call fcn.00404bf8
mov edx, eax
lea eax, [ebp - 0x18]
call fcn.00404984
mov eax, dword [ebp - 0x18]
call fcn.00404bf8
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4173aa
lea eax, [ebp - 0x18]
call fcn.0040478c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047b0
ret
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x651f378f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x46352d88
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401bb8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401bea
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401be6
cmp esi, eax
jae 0x401bea
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401bd8
cmp esi, eax
jb 0x401bf0
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x402030
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402040
sub eax, edx
push 4
sar eax, 1
push 0x1000
lea eax, [eax + eax + 2]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x4020da
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402070
sub eax, edx
sar eax, 1
lea ecx, [ebp - 4]
push ecx
lea edx, [eax + eax + 2]
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea eax, [ebp - 8]
push eax
push 0
push esi
push ecx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x4020c0
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402810
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor bl, bl
call fcn.00411a50
test eax, eax
je 0x40289c
call fcn.00403b70
test al, al
je 0x4028af
mov eax, dword [0x44c05c]
mov ecx, dword [eax + 4]
lea edx, [ecx + eax + 8]
mov edi, 0x44c060
mov dword [0x44c0cc], edx
mov dword [0x44c0d0], 0x1f98
mov dword [0x44c0d4], 0x442a88
call fcn.00411dc0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4023b0
push 0
push 0
mov bl, 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0
push 0
push 0
push 0x4025e0
push 0
push 0
call esi
push eax
call edi
call fcn.00403470
mov al, bl
pop edi
pop esi
pop ebx
ret
push 0
push 0
push str.cannot_open_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov al, bl
pop edi
pop esi
pop ebx
ret
Function at 0x4045a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438508
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x449260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d740
add esp, 4
lea ecx, [ebp - 0x18]
push 0x44c14c
push ecx
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00405d70
push eax
lea edx, [ebp - 0x14]
push edx
mov ebx, str.mkrep.dll
mov byte [ebp - 4], 1
call fcn.00405e20
add esp, 0x10
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404625
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404641
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x10]
call fcn.004059d0
jmp 0x404650
push 9
push str.mkrep.dll
lea ebx, [ebp - 0x10]
call fcn.00408ed0
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
mov eax, esi
call fcn.00402030
test eax, eax
jne 0x40467a
push esi
push str.inject_dll_failed___ndll:_s
push 3
xor ebx, ebx
xor edi, edi
xor esi, esi
call fcn.0041ab50
mov esi, dword [ebp - 0x10]
add esp, 0xc
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40469d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4046c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405340
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ecx
mov eax, esp
mov dword [ebp - 8], esp
push eax
mov ecx, str.LolClient.exe
mov dword [ebp - 4], 0
call fcn.00405910
call fcn.00401f00
add esp, 4
lea ecx, [ebp - 4]
push ecx
push 0x4052f0
mov dword [0x44a708], eax
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4

Function at 0x4079f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x437b3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x449260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00420286
push 4
mov dword [ebp - 4], 0
call fcn.0042101c
mov edi, eax
add esp, 4
test edi, edi
je 0x407a6c
call fcn.004206db
mov dword [edi], eax
call fcn.0042049a
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00420328
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x407a62
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00420350
jmp 0x407a6e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411a50
Capabilities:
Read file via mapping

Disassembly:
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x44c054], eax
cmp eax, 0xffffffff
jne 0x411a76
xor eax, eax
ret
push 0x443560
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x44c058], eax
test eax, eax
je 0x411aa7
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x44c05c], eax
xor eax, eax
cmp dword [0x44c05c], eax
setne al
ret