joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10034550
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x14]
movzx esi, byte [ebp + 0x18]
mov edi, ecx
mov ecx, dword [ebp + 0x10]
or eax, dword [ebp + 8]
or esi, edx
mov edx, dword [ebp + 0xc]
and ecx, 0xfffff000
or esi, ecx
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.10030320
add esp, 8
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100345a2
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 4], edx
mov dword [edi + 0xc], ecx
mov dword [edi + 8], esi
jmp 0x10034679
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], edi
xor edi, edi
lea esi, [0x3ca3069]
mov ecx, 0xfffffff9
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
lea eax, [0x3ca306a]
nop word cs:[eax + eax]
nop
movzx ebx, byte [esi]
mov esi, eax
mov eax, ebx
add al, 0xd0
cmp al, 0xa
jb 0x100345f1
or bl, 0x20
mov eax, ebx
add al, 0x9f
cmp al, 6
jae 0x10034681
add bl, 0xa9
mov eax, ebx
mov edx, edi
movzx ebx, al
lea eax, [esi + 1]
shl edx, 4
or ebx, edx
test ecx, ecx
cmove eax, esi
je 0x10034611
shld dword [ebp - 0x18], edi, 4
inc ecx
test esi, esi
mov edi, ebx
jne 0x100345d0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10034632
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
and eax, 0xfff
movzx eax, byte [ecx + eax]
mov byte [edx + 4], al
mov dword [edx], 0
jmp 0x10034679
mov ecx, 0x3ca6869
mov edx, 0x13
xor ebx, 0x2c7
call fcn.100091f0
mov ecx, 0x3ca6845
mov edx, 6
mov edi, eax
call fcn.100091f0
mov edx, dword [ebp - 0x10]
test eax, eax
mov ecx, 1
cmove eax, ecx
test edi, edi
cmove edi, ecx
mov dword [edx], edi
mov dword [edx + 4], eax
mov dword [edx + 8], ebx
mov dword [edx + 0xc], 0
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x3ca51ac
mov edx, 0xe
push 0x3c9ed4c
call fcn.100053c0
add esp, 4
ud2
Function at 0x406650
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4066b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403630
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4066a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4066bd
lea eax, [ebp - 0x10]
call fcn.00404a94
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404f30
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4082f1
test al, 0x10
jne 0x4082f5
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40843c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404f30
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40845e
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40aee0
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 0x40af19
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404b84
jmp 0x40af22
mov eax, ebx
mov edx, esi
call fcn.00404ae8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40af2c
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 0x40af4d
mov al, byte [esp]
jmp 0x40af4f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c454
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c4b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404d04
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407fd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4bf
lea eax, [ebp - 0xc]
call fcn.00404a94
ret
Function at 0x4189a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x418a7c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov esi, eax
mov eax, edi
mov edx, esi
call fcn.004050bc
mov eax, dword [edi]
call fcn.00404f30
push eax
push esi
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x418a5a
mov eax, dword [edi]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c250
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00404ae8
test bl, bl
je 0x418a61
push dword [edi]
push 0x418a94
lea eax, [ebp - 0x14]
mov edx, dword [0x41bc1c]
add edx, 0x187
mov ecx, 0xb
call fcn.00404d04
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0040c250
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00404ae8
jmp 0x418a61
mov eax, edi
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418a83
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404ab8
ret

Function at 0x418a9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x418b34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.004050bc
lea eax, [ebp - 4]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x418b12
mov eax, dword [ebx]
call fcn.00404f30
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x418b12
mov eax, dword [ebx]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 0xc]
call fcn.00404c8c
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0040c250
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404ae8
jmp 0x418b19
mov eax, ebx
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418b3b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404ab8
ret

Function at 0x418b90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
xor eax, eax
push ebp
push 0x418c2c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, edi
call fcn.00404f30
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004050bc
push esi
mov eax, dword [ebx]
call fcn.00404f30
push eax
mov eax, edi
call fcn.00404f30
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x418c0a
mov eax, dword [ebx]
call fcn.00404f30
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404c8c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040c250
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00404ae8
jmp 0x418c11
mov eax, ebx
call fcn.00404a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418c33
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ab8
ret
Function at 0x418d04
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
xor eax, eax
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x407008]
call fcn.004053e0
xor eax, eax
push ebp
push 0x418f0b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
lea eax, [ebp - 0x15c]
mov ecx, 0x418f20
call fcn.00404d7c
mov eax, dword [ebp - 0x15c]
lea ecx, [ebp - 0x158]
mov edx, 0x10
call fcn.004084d0
mov ebx, eax
test ebx, ebx
jne 0x418e67
xor eax, eax
push ebp
push 0x418e60
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x418e47
mov eax, dword [ebp - 0x14c]
mov edx, 0x418f2c
call fcn.00404e7c
je 0x418e32
mov eax, dword [ebp - 0x14c]
mov edx, 0x418f38
call fcn.00404e7c
je 0x418e32
test byte [ebp - 0x150], 0x10
je 0x418e32
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d30
inc eax
push eax
lea eax, [ebp - 0x160]
mov ecx, 0x418f44
mov edx, dword [ebp - 0x14c]
call fcn.00404d7c
mov eax, dword [ebp - 0x160]
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
pop ecx
call fcn.00405018
mov eax, dword [ebp + 8]
push eax
call fcn.00418d04
pop ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404d30
mov ebx, eax
mov eax, dword [ebp - 0x14c]
call fcn.00404d30
sub ebx, eax
inc ebx
push ebx
mov eax, dword [ebp - 0x14c]
call fcn.00404d30
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
pop edx
call fcn.00404fd0
lea eax, [ebp - 0x158]
call fcn.00408520
mov ebx, eax
test ebx, ebx
je 0x418d8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418e67
lea eax, [ebp - 0x158]
call fcn.00408544
ret
lea edx, [ebp - 0x164]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040c290
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
call fcn.00404b2c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
call fcn.0040843c
mov eax, dword [0x41bc1c]
mov al, byte [eax + 0x197]
sub al, 1
jb 0x418ea9
je 0x418eb6
jmp 0x418ecb
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.0040881c
jmp 0x418ecb
push 4
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00404f30
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x418f12
lea eax, [ebp - 0x164]
call fcn.00404a94
lea eax, [ebp - 0x160]
call fcn.00404a94
lea eax, [ebp - 0x15c]
call fcn.00404a94
lea eax, [ebp - 0x158]
mov edx, dword [0x407008]
call fcn.004054a4
ret
Function at 0x418fc0
Capabilities:
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4191cb
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x419089
mov eax, dword [0x41bc1c]
cmp byte [eax + 0x195], 0
jne 0x419089
lea edx, [ebp - 4]
mov eax, edi
call fcn.0040ae94
mov edx, dword [ebp - 4]
mov eax, 0x4191e4
call fcn.00405074
test eax, eax
jne 0x419030
push ebx
push 0x4191f0
push 0x4191f0
push dword [ebp - 4]
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404df0
jmp 0x419054
mov al, byte [0x4191f4]
push eax
lea eax, [ebp - 8]
push eax
mov edx, 0x4191e4
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040ca30
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
call fcn.00404b2c
push 0x10
push 0
mov eax, dword [ebp - 4]
call fcn.00404f30
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [0x41ba48]
push eax
call sub.user32.dll_DestroyWindow
mov eax, dword [0xe1ddb4]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0xe1ddb8]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [0x41bc1c]
cmp byte [eax], 1
jne 0x41912c
mov eax, dword [0x41bc1c]
cmp byte [eax + 0x197], 2
je 0x41912c
mov eax, dword [0xe1dda4]
call fcn.00405844
mov esi, eax
test esi, esi
jl 0x419108
inc esi
xor ebx, ebx
mov eax, dword [0xe1dda4]
mov eax, dword [eax + ebx*4]
xor edx, edx
call fcn.0040843c
mov eax, dword [0x41bc1c]
mov al, byte [eax + 0x197]
sub al, 1
jb 0x4190de
je 0x4190ed
jmp 0x419104
mov eax, dword [0xe1dda4]
mov eax, dword [eax + ebx*4]
call fcn.00408560
jmp 0x419104
push 4
push 0
mov eax, dword [0xe1dda4]
mov eax, dword [eax + ebx*4]
call fcn.00404f30
push eax
call sub.kernel32.dll_MoveFileExA
inc ebx
dec esi
jne 0x4190bc
mov eax, dword [0xe1dda8]
call fcn.00405844
mov ebx, eax
cmp ebx, 0
jl 0x41912c
mov eax, dword [0xe1dda8]
mov eax, dword [eax + ebx*4]
call fcn.00418f48
dec ebx
cmp ebx, 0xffffffff
jne 0x419119
test edi, edi
jne 0x419195
cmp dword [0x41ba40], 0
je 0x419195
push 0
push 0
push 0x419200
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402e74
push dword [ebp - 0x10]
push 0x419200
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404df0
mov eax, dword [ebp - 0xc]
call fcn.00404f30
push eax
mov eax, dword [0x41ba40]
call fcn.00404f30
push eax
push 0x419204
push 0
call sub.shell32.dll_ShellExecuteA
push 4
push 0
mov eax, dword [0x41ba40]
call fcn.00404f30
push eax
call sub.kernel32.dll_MoveFileExA
cmp dword [0x41ba5c], 0
je 0x4191a9
mov eax, dword [0x41ba5c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
call fcn.00404a7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4191d2
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404ab8
ret
Function at 0x10002cef
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
add ebx, esi
push 0x40
lea eax, [ebx + 0x18]
push 0x3000
push dword [eax + 0x38]
mov dword [ebp - 4], ecx
push 0
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], eax
call dword [0x5a605c]
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x10002e59
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10003ba0
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10003ba0
mov eax, dword [ebp - 8]
lea ebx, [esi + 0x18]
movzx ecx, word [eax + 0x14]
movzx esi, word [esi + 0x14]
lea edx, [eax + 0x18]
movzx eax, word [eax + 6]
add ecx, edx
add esi, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x10002db7
mov ebx, ecx
sub ebx, esi
mov edi, eax
push 0x28
lea edx, [ebx + esi]
mov ecx, esi
call fcn.10003ba0
add esi, 0x28
dec edi
jne 0x10002d75
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x10002db7
lea esi, [ecx + 0x14]
mov ebx, eax
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10003ba0
lea esi, [esi + 0x28]
dec ebx
jne 0x10002d9c
mov ebx, dword [ebp - 0xc]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10004350
push dword [ebp - 0x18]
mov ecx, dword [0x5a7004]
mov edx, edi
call fcn.10004430
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10002e56
cmp dword [ebx + 0x64], 0
je 0x10002e56
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10002dfe
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
mov ecx, eax
xor eax, eax
jmp 0x10002e02
xor eax, eax
mov ecx, eax
mov edx, dword [ebp - 4]
push 2
mov dword [edx + 4], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10002e2b
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
mov ecx, eax
xor eax, eax
jmp 0x10002e2d
mov ecx, eax
mov edx, dword [ebp - 4]
push 3
mov dword [edx + 8], ecx
mov edx, dword [ebx + 0x60]
pop ecx
lea esi, [edx + edi]
sub ecx, dword [esi + 0x10]
cmp ecx, dword [esi + 0x14]
jae 0x10002e50
push ecx
push esi
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10002ea4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x3c]
push 0x40
add ebx, esi
push 0x3000
lea eax, [ebx + 0x18]
mov dword [ebp - 0x1c], ecx
push dword [eax + 0x38]
mov dword [ebp - 0x18], eax
push 0
call dword [0x5a605c]
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x10002fad
push 0x40
mov edx, esi
mov ecx, edi
call fcn.10003ba0
mov esi, dword [edi + 0x3c]
movzx eax, word [ebx + 0x14]
add esi, edi
push eax
mov edx, ebx
mov ecx, esi
call fcn.10003ba0
movzx ecx, word [ebx + 0x14]
lea eax, [esi + 0x18]
movzx esi, word [esi + 0x14]
lea edx, [ebx + 0x18]
movzx ebx, word [ebx + 6]
add ecx, edx
add esi, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x10002f5c
mov edi, ecx
sub edi, esi
push 0x28
lea edx, [edi + esi]
mov ecx, esi
call fcn.10003ba0
add esi, 0x28
dec ebx
jne 0x10002f22
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
test ebx, ebx
je 0x10002f5c
lea esi, [ecx + 0x14]
mov edx, dword [esi]
mov ecx, dword [esi - 8]
push dword [esi - 4]
add edx, dword [ebp + 8]
add ecx, edi
call fcn.10003ba0
lea esi, [esi + 0x28]
dec ebx
jne 0x10002f44
mov ebx, dword [ebp - 0x14]
push ebx
mov edx, edi
mov ecx, edi
call fcn.10004350
push dword [ebp - 0x18]
mov ecx, dword [0x5a7004]
mov edx, edi
call fcn.10004430
mov edx, dword [ebx + 0x60]
test edx, edx
je 0x10002faa
cmp dword [ebx + 0x64], 0
je 0x10002faa
xor eax, eax
lea ecx, [edx + edi]
inc eax
sub eax, dword [ecx + 0x10]
cmp eax, dword [ecx + 0x14]
jae 0x10002fa2
push eax
push ecx
push dword [ebx + 0x64]
mov ecx, edi
call fcn.100043f0
jmp 0x10002fa4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10004250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, edx
push edi
push 0
push dword [0x5a7000]
mov dword [ebp - 8], edi
mov esi, ecx
call dword [0x5a607c]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
test ebx, ebx
je 0x10004294
mov edi, esi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x10004283
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x100042af
mov edx, edi
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x100042a4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
mov ebx, esi
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x100042f1
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x100042d4
test esi, esi
je 0x100042fd
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x100042f5
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [0x5a7000]
call dword [0x5a607c]
mov ebx, dword [ebp - 4]
mov esi, eax
mov edx, esi
mov ecx, ebx
call fcn.10001d1b
push ebx
push 0
push dword [0x5a7000]
call dword [0x5a6080]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x573054]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
push esi
xor esi, esi
mov dword [esp + 0x10], eax
push edi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], 7
mov word [esp + 0x44], cx
test eax, eax
jne 0x402199
mov dword [esp + 0x14], 1
jmp 0x40222b
push str.0587AB2B_1C6A_4AD2_811B_EF8E6F79CFED
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [esp + 0x18], edi
test edi, edi
je 0x402223
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402288
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov dword [esp + 0x50], esi
mov ecx, esp
xorps xmm0, xmm0
movaps xmmword [esp + 0x38], xmm0
xor eax, eax
movq qword [esp + 0x48], xmm0
xor edi, edi
push 0x24
mov dword [ecx + 0x10], esi
mov dword [ecx + 0x14], 7
push str.9A94352F_C5B5_4183_9A89_A67998EA3621
mov word [ecx], ax
call fcn.004033d0
lea ecx, [esp + 0x38]
call fcn.004aee90
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
lea ecx, [esp + 0x24]
call fcn.004af090
lea ecx, [esp + 0x20]
call fcn.004aef40
mov dword [esp + 0x14], 0x32
lea ecx, [esp + 0x44]
call fcn.00403370
test edi, edi
je 0x40223f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x402271
lea ecx, [esi + 4]
call fcn.00403370
mov edi, dword [esi]
test edi, edi
je 0x402266
mov ecx, edi
call fcn.0050498c
push 0xc8
push edi
call fcn.0050f85c
add esp, 8
push 0x20
push esi
call fcn.0050f85c
add esp, 8
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x18]
call fcn.00402cc0
mov edx, dword [esp + 0x14]
xor eax, eax
mov ecx, edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 7
mov word [esp + 0x20], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4022b0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004033d0
lea eax, [esp + 0x20]
push eax
call fcn.00402590
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
call fcn.00403370
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x40230a
mov edi, dword [esi]
test edi, edi
je 0x40230a
mov ecx, edi
mov dword [esi], 0
call fcn.0050498c
push 0xc8
push edi
call fcn.0050f85c
add esp, 8
mov edi, dword [esp + 0x18]
jmp 0x40222b
Function at 0x415230
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5131e4
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x573054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [esi], eax
lea ecx, [esi + 0x18]
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [edi + 0x18]
push eax
call fcn.00405990
lea eax, [edi + 0x30]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x30]
call fcn.00405990
lea eax, [edi + 0x48]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x48]
call fcn.00405990
mov byte [ebp - 4], 2
lea ecx, [esi + 0x70]
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
lea eax, [edi + 0x70]
push eax
call fcn.00405990
lea eax, [edi + 0x88]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x88]
call fcn.00405990
mov byte [ebp - 4], 4
lea ecx, [esi + 0xa4]
mov eax, dword [edi + 0xa0]
mov dword [esi + 0xa0], eax
lea eax, [edi + 0xa4]
push eax
call fcn.00405990
lea eax, [edi + 0xbc]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0xbc]
call fcn.00405990
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov eax, dword [edi + 0xd8]
test eax, eax
je 0x415342
lock inc dword [eax + 4]
mov eax, dword [edi + 0xd4]
mov dword [esi + 0xd4], eax
mov ecx, dword [edi + 0xd8]
mov dword [esi + 0xd8], ecx
lea ecx, [edi + 0xdc]
mov byte [ebp - 4], 7
push ecx
lea ecx, [esi + 0xdc]
call fcn.00405990
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4