joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf15d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf15d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xf15d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xf15d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xf15d94
push eax
push esi
call fcn.00f1820b
add esp, 8
pop esi
ret 0x10

Function at 0xf15da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf15e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xf15e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xf2e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f17dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xf15dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xf15e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xf15ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xf15eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xf2e320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00f17dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xf15eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xf15e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xf16000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf16131
push esi
call fcn.00f19145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00f08080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf16131
push 0
push ebp
call fcn.00f083a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00f08260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf1608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00f082f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf16121
push 0xf2e918
push edi
call fcn.00f173f0
push eax
push ebx
push esi
call fcn.00f15f60
push 0xf2e8f8
push edi
call fcn.00f173f0
push eax
push ebx
push esi
call fcn.00f15f60
push 0xf2e8d8
push edi
call fcn.00f173f0
push eax
push ebx
push esi
call fcn.00f15f60
push 0xf2e8c0
push edi
call fcn.00f173f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f15f60
push 0xf2e8a0
push edi
call fcn.00f173f0
push eax
push ebx
push esi
call fcn.00f15f60
push 0xf2e888
push edi
call fcn.00f173f0
push eax
push ebx
push esi
call fcn.00f15f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf171b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f17140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f17140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f17140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f17140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf17bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf17c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xf2987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf17c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf17c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40cbc7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a2f8
call fcn.00413724
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b69c
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b754
push 4
mov ebx, 0x41b68c
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00403291
mov dword [esi + 0x3c], 0x41b804
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00403291
mov dword [edi], 0x41b80c
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c1be
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c1be
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c1be
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c1be
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c1be
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x33bf2d00
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x1b046d3d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4010cb
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
push 0x104
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004034b0
add esp, 0xc
lea eax, [ebp - 0x104]
mov esi, 0x103
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x401122
lea eax, [ebp - 0x104]
push eax
push 0
lea eax, [ebp - 0x104]
push 0x405008
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x401129
xor eax, eax
jmp 0x40122b
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp + 8]
dec eax
je 0x4011fb
dec eax
je 0x4011da
dec eax
je 0x401195
dec eax
jne 0x40121a
cmp byte [ebp + esi - 0x104], 0x5c
je 0x40115e
dec esi
jns 0x401151
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x64
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x72
inc eax
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x63
inc eax
mov byte [eax], 0x74
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x68
inc eax
mov byte [eax], 0x74
mov byte [eax + 1], 0x6d
jmp 0x40121a
cmp byte [ebp + esi - 0x104], 0x5c
je 0x4011a2
dec esi
jns 0x401195
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x64
inc eax
mov byte [eax], 0x69
inc eax
mov byte [eax], 0x72
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x6c
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x6f
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x67
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x66
jmp 0x40121a
cmp byte [ebp + esi - 0x104], 0x2e
je 0x4011e7
dec esi
jns 0x4011da
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x45
inc eax
mov byte [eax], 0x58
mov byte [eax + 1], 0x45
jmp 0x40121a
cmp byte [ebp + esi - 0x104], 0x2e
je 0x401208
dec esi
jns 0x4011fb
lea eax, [ebp + esi - 0x103]
mov byte [eax], 0x4c
inc eax
mov byte [eax], 0x5a
mov byte [eax + 1], 0x48
mov edi, dword [ebp + 0xc]
push 0x41
pop ecx
lea esi, [ebp - 0x104]
push 1
rep movsd dword es:[edi], dword [esi]
pop eax
pop edi
pop esi
leave
ret
Function at 0x40122f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x4012c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
mov dword [ebp + 8], eax
je 0x4012c7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, esi
je 0x4012c7
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004010cb
pop ecx
test eax, eax
pop ecx
je 0x4012c7
push esi
push pe_nt_image_headers32
push 1
push esi
push 3
push 0xc0000000
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4012c7
lea eax, [ebp + 0xc]
push esi
push eax
push ebx
push dword [ebp + 8]
mov dword [ebp + 0xc], esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4012c0
cmp dword [ebp + 0xc], ebx
jne 0x4012c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
jmp 0x4012c9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4012ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4012f8
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x4012fc
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x10]
pop esi
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
ret

Function at 0x4013a6
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401458
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push str.DDRAW.DLL
push eax
mov ebx, str._s_s
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x40140a
push str.Couldnt_LoadLibrary_DDRAW_r_n
jmp 0x401452
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x104]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401458
lea eax, [ebp - 0x104]
push str.DINPUT.DLL
push eax
lea eax, [ebp - 0x104]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
jne 0x40145c
push str.Couldnt_LoadLibrary_DInput_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x401466
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40146b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push 1
lea eax, [ebp - 0x144]
pop ebx
push eax
mov eax, str.HTMLFILE
push 4
push eax
push eax
mov dword [ebp - 4], ebx
call fcn.0040122f
add esp, 0x10
test eax, eax
je 0x4014ee
xor esi, esi
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.004034b0
lea eax, [ebp - 0x144]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4014f2
push esi
push str.Card_Extractor
push str.You_do_not_have_DirectX_installed._Please_install_DirectX.
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 4], esi
jmp 0x4014f2
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x4014f9
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
xor edi, edi
push 0x7f02
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
mov dword [ebp - 8], eax
call fcn.004013a6
test eax, eax
jne 0x40153e
push dword [ebp + 8]
call fcn.0040146b
pop ecx
xor eax, eax
jmp 0x4015dc
lea eax, [ebp - 0x160]
push eax
call fcn.00401316
test eax, eax
pop ecx
je 0x4015ba
push 0x44
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.004034b0
add esp, 0xc
lea eax, [ebp - 0x18]
mov dword [ebp - 0x5c], 0x44
push eax
lea eax, [ebp - 0x5c]
push eax
push edi
push edi
push 0x20
push 1
push edi
lea eax, [ebp - 0x160]
push edi
push eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 8]
test eax, eax
je 0x40159f
call esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4015ab
call esi
mov dword [ebp + 8], str.Unable_to_start_card_process
mov dword [ebp - 4], edi
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4015c4
mov dword [ebp + 8], str.Error_decompressing_card
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
jne 0x4015d9
push edi
push str.Card_Extractor
push dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x10

Function at 0x403600
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 4]
imul ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
ret
Function at 0x403630
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x403656
cmp al, 0x22
je 0x40364e
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403642
cmp byte [esi], 0x22
jne 0x403662
inc esi
jmp 0x403662
cmp al, 0x20
jle 0x403662
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x40365a
mov al, byte [esi]
test al, al
je 0x403674
cmp al, 0x20
jg 0x403674
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x403668
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x403699
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x40369e
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40a470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x43a080]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0xb65a3f43
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
sub eax, 0x97be30d6
je 0x40a621
jmp 0x40a4ab
mov eax, dword [ebp - 0x24]
sub eax, 0xa1451d3b
je 0x40a50e
jmp 0x40a4be
mov eax, dword [ebp - 0x24]
sub eax, 0xb65a3f43
je 0x40a4fc
jmp 0x40a4d1
mov eax, dword [ebp - 0x24]
sub eax, 0xe3127f2d
je 0x40a581
jmp 0x40a4e4
mov eax, dword [ebp - 0x24]
sub eax, 0x71d48cd0
je 0x40a610
jmp 0x40a4f7
jmp 0x40a669
push eax
mov eax, esp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 0xa1451d3b
jmp 0x40a669
mov ecx, dword [0x43b5a4]
mov eax, dword [0x43b5a0]
mov edx, ecx
add edx, 0xbfb11a38
sub edx, 1
sub edx, 0xbfb11a38
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0x97be30d6
mov ecx, 0xe3127f2d
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x40a669
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x10]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x40a5a1
mov eax, dword [0x43b5a4]
mov ecx, dword [0x43b5a0]
mov edx, eax
add edx, 0xe7fed588
sub edx, 1
sub edx, 0xe7fed588
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0x97be30d6
mov ecx, 0x71d48cd0
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x18], eax
jmp 0x40a669
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00423ec0
lea esp, [ebp - 8]
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
mov ecx, dword [ebp - 0x10]
mov edi, dword [edx]
not byte [edi]
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
add byte [edi], 0x64
sub byte [edi], 0x88
pop eax
push eax
mov eax, eax
xor eax, 0x85
nop
imul byte [edi]
inc edi
loop 0x40a641
mov dword [ebp - 0x18], 0xe3127f2d
jmp 0x40a495
Function at 0x42478b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4247ca
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4247ca
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4247ca
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4247ca
cmp dword [ecx + 0x74], 0xe
jbe 0x4247ca
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42bf2b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x42bfc8
push ebx
push esi
call fcn.0042bef4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042be88
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42bf75
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42bfc7
push edi
push eax
call fcn.0042a9c0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42bf95
call fcn.0042aa0e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42bfc6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042be88
add esp, 0x20
test eax, eax
jne 0x42bfb4
push edi
call fcn.0042aa0e
jmp 0x42bfbc
push ebx
call fcn.0042aa0e
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x42d1da
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4359c0
push 0x4359b8
push str.FlsAlloc
push 0x1f
call fcn.0042d099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d20e
push dword [ebp + 8]
mov ecx, esi
call dword [0x43314c]
call esi
jmp 0x42d214
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42d258
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4359d0
push 0x4359c8
push str.FlsGetValue
push 0x21
call fcn.0042d099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d28f
push dword [ebp + 8]
mov ecx, esi
call dword [0x43314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x42d297
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4359d8
push 0x4359d0
push str.FlsSetValue
push 0x22
call fcn.0042d099
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42d2d1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4325a0
Capabilities:
Parse pe header

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