joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff05c
push ebx
push esi
push edi
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
lea eax, [ebp + 0xc]
call fcn.004201d8
mov ecx, eax
lea edx, [ebp - 0xfa4]
lea eax, [ebp + 0xc]
call fcn.004201fc
push 2
push 0
lea edx, [ebp - 0xfa4]
push edx
call sub.KERNEL32.DLL_LoadLibraryExW
mov esi, eax
test esi, esi
je 0x40163b
xor ebx, ebx
movzx eax, bx
push 3
push eax
push esi
call sub.KERNEL32.DLL_FindResourceA
mov edi, eax
test edi, edi
je 0x40162f
push edi
push esi
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 4], eax
push edi
push esi
call sub.KERNEL32.DLL_SizeofResource
push eax
mov eax, dword [ebp - 4]
push eax
push 0x400
movzx edx, bx
push edx
push 3
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_UpdateResourceA
inc ebx
cmp ebx, 0xa
jl 0x4015f3
push esi
call sub.KERNEL32.DLL_FreeLibrary
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40168c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffe54
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
lea ecx, [ebp - 0x7e8]
push ecx
push 0x7d0
call sub.KERNEL32.DLL_GetTempPathA
lea eax, [ebp - 4]
xor edx, edx
call fcn.0042003c
lea edx, [ebp - 4]
lea eax, [ebp + 0xc]
call fcn.00420150
push eax
lea eax, [ebp - 4]
mov edx, 2
call fcn.00420080
pop ecx
test cl, cl
je 0x40174b
lea edi, [ebp - 0x11ac]
mov esi, 0x4210c7
mov eax, edi
lea edx, [ebp - 0xfb8]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
lea ecx, [ebp - 0x11ac]
push 0
push ecx
lea eax, [ebp - 0x7e8]
push eax
call sub.KERNEL32.DLL_GetTempFileNameA
lea edx, [ebp - 0xfb8]
lea eax, [ebp - 8]
call fcn.0041ffc8
mov edx, eax
mov eax, ebx
call fcn.004200b0
mov eax, ebx
push eax
lea eax, [ebp - 8]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop eax
jmp 0x4017da
mov edx, 0x4210cd
lea eax, [ebp - 0x10]
call fcn.0041ffc8
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x7e8]
lea eax, [ebp - 0xc]
call fcn.0041ffc8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
pop edx
call fcn.004200c4
lea eax, [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x18]
lea edx, [ebp + 0xc]
call fcn.004200c4
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004200b0
mov eax, ebx
push eax
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00420080
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e10
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff058
push ebx
push esi
push edi
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
push 0xa
push 0x20f
push 0
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
push 0xa
push 0x210
push 0
call sub.KERNEL32.DLL_FindResourceA
mov esi, eax
test ebx, ebx
jne 0x401e61
xor eax, eax
push eax
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop eax
jmp 0x401f0b
push ebx
push 0
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov edi, eax
push esi
push 0
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebp - 4]
push ecx
call fcn.0040168c
add esp, 8
lea eax, [ebp - 4]
call fcn.004201d8
mov ecx, eax
lea edx, [ebp - 0xfa8]
lea eax, [ebp - 4]
call fcn.004201fc
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0xfa8]
push edx
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004200b0
lea eax, [ebp - 4]
mov edx, 2
call fcn.00420080
mov al, 1
push eax
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401fe8
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
call fcn.00418d28
mov ecx, 0xa
cdq
idiv ecx
mov esi, edx
xor ebx, ebx
jmp 0x401ffe
inc ebx
cmp esi, ebx
jle 0x402010
push 0x4210e3
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
jne 0x401ffd
pop esi
pop ebx
ret
Function at 0x40233c
Capabilities:
Create thread

Disassembly:
push ebx
push ecx
push esp
push 0
push 0
push 0x401f14
push 0
push 0
call sub.KERNEL32.DLL_CreateThread
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
push 2
push ebx
call sub.KERNEL32.DLL_SetThreadPriority
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edx
pop ebx
ret

Function at 0x40236c
Capabilities:
Get disk information
Set current directory

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x402375
add esp, 0xfffff89c
mov eax, dword [ebp - 4]
lea eax, [ebp + 0xc]
lea edx, [ebp + 0xc]
push ebx
push esi
call fcn.00420000
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00420000
xor ecx, ecx
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
xor edx, edx
lea ecx, [ebp - 0x2768]
mov dword [ebp - 0xc], edx
push ecx
push 0x2710
call sub.KERNEL32.DLL_GetLogicalDriveStringsA
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 3
je 0x402408
call fcn.00404938
fstp qword [ebp - 0x18]
mov cx, 0x3b
push 0x3b
mov dx, 0x17
push 0x63
lea eax, [ebp - 0x20]
call fcn.00420368
mov ebx, eax
lea edx, [ebp - 0x30]
fld qword [ebp - 0x18]
fadd qword [ebx]
fstp qword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
fld qword [edx]
fstp qword [0x424f0c]
jmp 0x40244d
call fcn.00404938
fstp qword [ebp - 0x38]
call fcn.00418d28
mov ecx, 0xf
cdq
idiv ecx
push edx
push 0
lea eax, [ebp - 0x40]
xor ecx, ecx
xor edx, edx
call fcn.00420368
mov ebx, eax
fld qword [ebp - 0x38]
fadd qword [ebx]
fstp qword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
fld qword [eax]
fstp qword [0x424f0c]
cmp dword [ebp - 0x10], 0
je 0x402508
xor ebx, ebx
cmp ebx, dword [ebp - 0x10]
jae 0x402508
lea edx, [ebp - 0x2768]
lea eax, [ebp - 0x54]
add edx, ebx
call fcn.0041ffc8
lea ecx, [ebp - 0x2768]
mov esi, ebx
add ecx, esi
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, dword [ebp + 0x10]
jne 0x4024e1
lea eax, [ebp - 0x2768]
add eax, esi
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
test eax, eax
je 0x4024e1
lea edx, [ebp - 0xc]
push 0x3e8
push edx
lea ecx, [ebp - 8]
push 0x5f5e0ff
push ecx
lea eax, [ebp - 4]
push 0x5f5e0ff
push eax
lea eax, [ebp - 0x58]
mov edx, 0x421106
call fcn.0041ffc8
mov edx, dword [eax]
push edx
mov ecx, dword [ebp + 8]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00402014
add esp, 0x24
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00420080
lea eax, [ebp + ebx - 0x2768]
jmp 0x4024ec
inc ebx
inc eax
cmp byte [eax], 0
jne 0x4024ea
inc ebx
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.00420080
cmp ebx, dword [ebp - 0x10]
jb 0x402462
lea eax, [ebp + 8]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402528
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.00420000
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.00420000
push 0xfffffffffffffff1
call sub.KERNEL32.DLL_GetCurrentThread
push eax
call sub.KERNEL32.DLL_SetThreadPriority
push 0x421108
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
push 0xffffffffffffffff
push ebx
call sub.KERNEL32.DLL_WaitForSingleObject
push 0
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x40257d
cmp eax, 5
jne 0x4025b5
push 3
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040236c
add esp, 0xc
push 6
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040236c
add esp, 0xc
push 4
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040236c
add esp, 0xc
jmp 0x4025eb
push 4
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0040236c
add esp, 0xc
push 3
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.0040236c
add esp, 0xc
push 6
mov edx, dword [ebp + 0xc]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040236c
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_ReleaseMutex
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea eax, [ebp + 8]
mov edx, 2
call fcn.00420080
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.00420080
pop ebx
pop ebp
ret

Function at 0x404fc8
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x405001
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00412d84
jmp 0x40500a
mov eax, ebx
mov edx, esi
call fcn.00412ce8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405014
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
test eax, eax
jle 0x405035
mov al, byte [esp]
jmp 0x405037
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4056bc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x405534
mov eax, dword [0x424eb0]
cmp byte [eax], 0
je 0x405729
mov eax, dword [0x424eb4]
call fcn.00411b1c
call fcn.00411678
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004038b8
push eax
lea eax, [esp + 0x50]
push eax
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 0x405770
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x40575f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x424da4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x424efc]
call fcn.00414128
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x406204
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 0x406268
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
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00412efc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00403610
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40626f
lea eax, [ebp - 0xc]
call fcn.00412c94
ret

Function at 0x4116ec
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 0x411729
xor eax, eax
mov al, 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 0x411749
lea eax, [esp + 0x109]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00412efc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x412128
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4215f4]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4121c0
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4121a0
xor eax, eax
push ebp
push 0x412199
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 0x4121dc
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 0x4121a0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4215f4]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4215f4], ax
mov esp, ebp
pop ebp
ret
Function at 0x412b18
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x425224], 0
je 0x412b79
cmp word [0x4253f8], 0xd7b2
jne 0x412b41
cmp dword [0x425400], 0
jbe 0x412b41
mov eax, 0x4253f4
call dword [0x425410]
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 0x412ba0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x421600], 0
jne 0x412b95
push 0
push 0x421658
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret
Function at 0x41431c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x41454c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x41439f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x41454c
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x41439f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x414568
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x414428
xor eax, eax
push ebp
push 0x414421
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00414164
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x414406
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x414588
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x414406
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414428
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x414542
cmp byte [ebp - 0xd], 0
jne 0x41446f
cmp byte [ebp - 0x12], 0
je 0x414542
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x414488
dec ebx
cmp byte [ebx], 0x2e
je 0x414497
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x414487
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x414542
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4144d4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x414542
cmp byte [ebp - 0xd], 0
je 0x414542
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x414542
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414838
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x425798], 1
jae 0x4148be
mov byte [0x4215f0], 2
mov dword [0x4251e8], 0x4205bc
mov dword [0x4251ec], 0x4205d4
mov byte [0x425226], 2
mov dword [0x4251d4], 0x413954
call fcn.004120f8
test al, al
je 0x41487b
call fcn.00412128
call fcn.004121ec
mov word [0x42522c], 0xd7b0
mov word [0x4253f8], 0xd7b0
mov word [0x4255c4], 0xd7b0
call fcn.00413848
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x425218], eax
call fcn.00410164
mov dword [0x425214], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x42520c], eax
ret

Function at 0x41a750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x41a7b2
call fcn.0041a700
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004154e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004154e4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41a830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4233c4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x41a90a
cmp dword [0x4233c0], 0
jne 0x41a90a
cmp dword [0x4235a4], 0
je 0x41a8c4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0041a600
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41a8aa
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0041a600
add esp, 8
mov ebx, eax
test eax, eax
jne 0x41a8aa
lea ebx, [ebp - 0x84]
jmp 0x41a8ab
inc ebx
call fcn.0041a7ec
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x41a945
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4233c8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004154e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4233cb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x41a945
cmp dword [0x4233c0], 0
je 0x41a924
cmp dword [0x4233c0], 0xffffffff
je 0x41a945
push esi
call dword [0x4233c0]
pop ecx
mov eax, dword [0x4233c4]
test eax, eax
je 0x41a945
cmp dword [0x4233c4], 0xffffffff
je 0x41a945
cmp byte [eax], 0
je 0x41a945
push esi
push eax
call fcn.0041a750
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b140
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x426138], 0
jne 0x41b1c1
cmp dword [0x426158], 0
jne 0x41b170
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x426158], eax
test eax, eax
jne 0x41b170
push str.GetEnvironmentStrings_failed
call fcn.0041a95c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x426158]
jmp 0x41b184
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b17c
lea edi, [ebp + 1]
push edi
call fcn.00414de8
pop ecx
mov ebx, eax
mov dword [0x42613c], ebx
test ebx, ebx
jne 0x41b1ae
xor eax, eax
jmp 0x41b284
push edi
mov edx, dword [0x426158]
push edx
push ebx
call fcn.00415394
add esp, 0xc
jmp 0x41b1e1
xor esi, esi
mov ebx, dword [0x426138]
jmp 0x41b1db
push eax
call fcn.004154e4
pop ecx
test eax, eax
jne 0x41b1d7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b1cb
lea ebx, [esi + 4]
push 4
mov dword [0x426140], ebx
inc ebx
push ebx
call fcn.004148c0
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41b204
xor eax, eax
jmp 0x41b284
cmp dword [0x426138], 0
jne 0x41b235
xor esi, esi
mov ebx, dword [0x42613c]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41b226
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004154e4
pop ecx
mov edi, eax
test eax, eax
jne 0x41b21c
jmp 0x41b266
xor esi, esi
mov ebx, dword [0x426138]
mov eax, dword [esp]
mov edi, eax
jmp 0x41b260
push eax
call fcn.004154e4
pop ecx
test eax, eax
je 0x41b255
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41b259
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41b244
mov eax, dword [0x426138]
test eax, eax
je 0x41b276
push eax
call fcn.00414df8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x426138], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x484d1c
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x484a08
add eax, eax
call fcn.00484d51
add esi, 1
add esi, 0x9b02f3db
inc esi
xor dword [ecx], ebx
and eax, eax
add ecx, 2
inc esi
or eax, eax
mov esi, esi
cmp ecx, edi
jl fcn.00484d1c
add esi, eax
sub esi, esi
ret
Function at 0x10003dc0
Capabilities:
Encode data using base64

Disassembly:
push 0xad13f930
pushfd
shr byte [esp + 4], 0x3d
mov dword [esp + 4], 0x70b2bd09
call fcn.10037ae3
mov dword [ebp + edx*2 - 0x20e3ee], ecx
movsx eax, dx
pop eax
pop eax
pop edx
pop edx
pop ecx
pop eax
pop ecx
pop edx
jmp fcn.100b0bcf

Function at 0x10004c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10004c4f
push 0
push 0
push dword [ebp + 8]
push 0x10004950
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc