joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c6c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405924
test esi, esi
jne 0x403ca2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405a7c
jmp 0x403cc0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403bb0
mov edi, eax
test esi, esi
je 0x403cc0
cmp dword [ebx], 0
je 0x403cc0
dec esi
jmp 0x403ca9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404afc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00404d98
mov byte [esp], al
cmp byte [esp], 0
jne 0x404c86
test edi, edi
je 0x404c86
mov byte [esp + 1], 0
test ebp, ebp
jle 0x404bc6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x404ba1
cmp edi, 0xffffffff
je 0x404b61
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404b61
mov byte [esp], 0
jmp 0x404c86
mov ebx, dword [esi]
cmp ebx, 1
jg 0x404ba1
test ebx, ebx
jne 0x404b93
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x404b93
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x404c86
lea eax, [esp + 0xc]
call fcn.004048ac
dec ebp
test ebp, ebp
jg 0x404b46
cmp edi, 0xffffffff
je 0x404bc6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x404bc4
mov byte [esp], 0
jmp 0x404c86
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x404b0a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404bc6
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00404cf4
mov edx, eax
mov ebx, dword [0x41c8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x404c2a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x404c28
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x404c2a
xor edi, edi
cmp byte [esp], 0
je 0x404c50
mov ebx, dword [esi]
test bl, 1
jne 0x404c66
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404c30
mov byte [esp + 1], 1
jmp 0x404c66
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x404c50
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x404bdd
cmp byte [esp], 0
je 0x404c86
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405668
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41c054], 0
je 0x4056cf
cmp word [0x41c340], 0xd7b2
jne 0x405691
cmp dword [0x41c348], 0
jbe 0x405691
mov eax, 0x41c33c
call dword [0x41c358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x4056fc
call fcn.00405e18
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a026], 0
jne 0x4056eb
push 0
push 0x41a9b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406f4c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4070b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405924
cmp si, word [0x41a9f0]
jb 0x406fe4
cmp si, word [0x41abf0]
ja 0x406fe4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x406fe4
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41a9f0]
jae 0x406fbe
mov edi, ebx
dec edi
jmp 0x406fdf
cmp si, word [ebx*8 + 0x41a9f0]
jbe 0x406fce
inc ebx
mov dword [ebp - 8], ebx
jmp 0x406fdf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41a9f4]
call fcn.00406e6c
jmp 0x406fe4
cmp edi, dword [ebp - 8]
jae 0x406fa8
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407093
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407093
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405fb0
push dword [ebp - 0x160]
push 0x4070cc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00405fb0
push dword [ebp - 0x164]
push 0x4070dc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00405fb0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4070b8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405984
ret
Function at 0x407264
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407368
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x41eb84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x41eb9c]
jne 0x4072b0
mov eax, esi
mov edx, 0x41eb9e
mov ecx, 0x55
call fcn.00405fb0
push 0x41eb84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407352
push 0x41eb84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405924
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40731f
cmp byte [0x41eb80], 0
je 0x4072e4
mov edx, esi
mov eax, ebx
call fcn.00407148
jmp 0x40731f
mov edx, esi
mov eax, ebx
call fcn.00406f4c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40731f
cmp dword [esi], 0
je 0x407308
mov eax, esi
mov edx, 0x407380
call fcn.00406088
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406f4c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406088
push 0x41eb84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x41eb9c], bx
mov eax, dword [esi]
call fcn.00405f1c
mov ecx, eax
mov eax, 0x41eb9e
mov edx, 0xaa
call fcn.00406dcc
push 0x41eb84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40736f
lea eax, [ebp - 4]
call fcn.00405924
ret
Function at 0x407598
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a08
xor eax, eax
push ebp
push 0x4077bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4075d8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4075f2
mov eax, dword [ebp - 4]
call fcn.00405f1c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00406dcc
cmp word [ebp - 0x21a], 0
je 0x4077a7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4077cc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4076c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4077cc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4076c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407808
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4076c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407808
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4076c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40783c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4076c1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407870
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4077a7
xor eax, eax
push ebp
push 0x4077a0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004073a8
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407730
mov eax, dword [ebp - 0x10]
call fcn.0040390c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405f74
jmp 0x40777b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x4078b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40777b
mov eax, dword [ebp - 0x10]
call fcn.0040390c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x4078b0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00405f74
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4077a7
cmp dword [ebp - 8], 0
je 0x407796
mov eax, dword [ebp - 8]
call fcn.00403928
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4077c4
lea eax, [ebp - 4]
call fcn.00405924
ret
Function at 0x407aac
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405a08
xor eax, eax
push ebp
push 0x407b6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405fb0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004060e0
mov eax, dword [ebx]
call fcn.00407974
test al, al
jne 0x407b49
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00405fb0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004060e0
mov eax, dword [ebx]
call fcn.00407974
test al, al
jne 0x407b49
mov eax, ebx
call fcn.00405924
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407b73
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405984
lea eax, [ebp - 4]
call fcn.00405924
ret

Function at 0x4081c4
Capabilities:
Get system information on windows

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

Function at 0x4138f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413931
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405a7c
jmp 0x41393a
mov eax, ebx
mov edx, esi
call fcn.00405bf8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413944
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x413968
movzx eax, word [ebp - 4]
jmp 0x41396a
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x414868
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41498d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414670
mov esi, eax
mov eax, dword [0x41b764]
cmp byte [eax], 0
je 0x414935
mov eax, dword [0x41b680]
call fcn.00403d90
call fcn.00403a60
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414838]
call fcn.004069b4
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4149a8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x414971
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41b65c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41ec4c]
call fcn.00406a6c
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414994
lea eax, [ebp - 4]
mov edx, dword [0x414838]
call fcn.004069c0
ret

Function at 0x415af8
Capabilities:
Encode data using xor

Disassembly:
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x415b24
cmp bl, 0
je 0x415b20
cmp bl, 0x41
jl 0x415b1b
cmp bl, 0x5a
jg 0x415b1b
or bl, 0x20
xor al, bl
inc esi
jmp 0x415aff
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp fcn.00415a54

Function at 0x416298
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
xor eax, eax
movzx edx, word [ebx]
sub dx, 1
jb 0x4162cb
sub dx, 0x20
jb 0x4162bb
dec dx
je 0x4162c1
jmp 0x4162c3
test al, al
je 0x4162cb
jmp 0x4162c3
xor al, 1
add ebx, 2
jmp 0x4162a5
add ebx, 2
mov edx, 0x4162e8
movzx eax, word [ebx]
call fcn.00411938
test al, al
jne 0x4162c8
mov eax, esi
mov edx, ebx
call fcn.00405f74
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405f1c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4163b5
test al, 0x10
je 0x4163b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x416970
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], edx
mov dword [esp], eax
mov edi, dword [esp]
movzx edi, word [edi]
mov eax, dword [esp]
movzx eax, word [eax + 2]
mov word [esp + 8], ax
mov eax, dword [esp]
movzx eax, word [eax + 4]
mov word [esp + 0xa], ax
mov ebp, dword [esp]
movzx ebp, word [ebp + 6]
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], 8
movzx edx, word [ebx]
mov eax, edi
call fcn.0041692c
mov edi, eax
add ebx, 2
movzx eax, word [ebx]
add word [esp + 8], ax
add ebx, 2
movzx eax, word [ebx]
add word [esp + 0xa], ax
add ebx, 2
movzx edx, word [ebx]
mov eax, ebp
call fcn.0041692c
mov ebp, eax
add ebx, 2
mov esi, edi
xor si, word [esp + 0xa]
movzx edx, word [ebx]
mov eax, esi
call fcn.0041692c
mov esi, eax
add ebx, 2
movzx eax, word [esp + 8]
xor ax, bp
add ax, si
movzx edx, word [ebx]
call fcn.0041692c
add ebx, 2
add si, ax
xor di, ax
xor bp, si
xor si, word [esp + 8]
xor ax, word [esp + 0xa]
mov word [esp + 8], ax
mov word [esp + 0xa], si
dec dword [esp + 0xc]
jne 0x4169af
movzx edx, word [ebx]
mov eax, edi
call fcn.0041692c
mov edi, eax
add ebx, 2
mov eax, dword [esp]
mov word [eax], di
movzx eax, word [esp + 0xa]
add ax, word [ebx]
mov edx, dword [esp]
mov word [edx + 2], ax
add ebx, 2
movzx eax, word [esp + 8]
add ax, word [ebx]
mov edx, dword [esp]
mov word [edx + 4], ax
add ebx, 2
movzx edx, word [ebx]
mov eax, ebp
call fcn.0041692c
mov ebp, eax
mov eax, dword [esp]
mov word [eax + 6], bp
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416af8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x416b01
mov eax, dword [ebp - 4]
add esp, 0xfffffff4
push esi
xor ecx, ecx
mov dword [ebp - 0x4010], ecx
mov dword [ebp - 0x400c], ecx
mov dword [ebp - 0x4008], ecx
mov dword [ebp - 0x4004], ecx
mov esi, edx
xor edx, edx
push ebp
push 0x416c22
push dword fs:[edx]
mov dword fs:[edx], esp
mov ecx, 0x2000
lea edx, [ebp - 0x4000]
mov word [edx], 0x20
add edx, 2
dec ecx
jne 0x416b47
sub eax, 1
jb 0x416b61
je 0x416b97
dec eax
je 0x416bd0
jmp 0x416bea
lea eax, [ebp - 0x4000]
push eax
push 0x2000
call sub.kernel32.dll_GetTempPathW
lea eax, [ebp - 0x4004]
lea edx, [ebp - 0x4000]
mov ecx, 0x2000
call fcn.00405a7c
mov eax, dword [ebp - 0x4004]
mov edx, esi
call fcn.00411948
jmp 0x416bea
lea eax, [ebp - 0x4000]
push eax
push 0
push 0
push 0x1c
push 0
call sub.SHFolder.dll_SHGetFolderPathW
lea eax, [ebp - 0x4008]
lea edx, [ebp - 0x4000]
mov ecx, 0x2000
call fcn.00405a7c
mov eax, dword [ebp - 0x4008]
mov edx, esi
call fcn.00411948
jmp 0x416bea
lea edx, [ebp - 0x400c]
xor eax, eax
call fcn.00403c6c
mov eax, dword [ebp - 0x400c]
mov edx, esi
call fcn.004120a4
lea edx, [ebp - 0x4010]
mov eax, dword [esi]
call fcn.004157f8
mov edx, dword [ebp - 0x4010]
mov eax, esi
call fcn.00405bf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416c29
lea eax, [ebp - 0x4010]
mov edx, 4
call fcn.00405984
ret
Function at 0x416c30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x416d6f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0xc
call fcn.00403df4
lea eax, [ebp - 0x5c]
xor ecx, ecx
mov edx, 0x44
call fcn.00403df4
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0xffffffff
mov bl, 1
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push 0x20
cmp bl, 1
cmc
sbb eax, eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.00405f1c
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x416d2a
lea edx, [ebp - 4]
mov eax, 0x416ae8
call fcn.00408110
lea eax, [ebp - 8]
mov edx, 0x416d8c
call fcn.00405c40
xor eax, eax
push ebp
push 0x416d23
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
mov eax, dword [ebp - 8]
call fcn.00405f1c
push eax
mov eax, dword [ebp - 4]
call fcn.00405f1c
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416d54
lea eax, [ebp - 4]
call fcn.00405924
lea eax, [ebp - 8]
call fcn.00405924
ret
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x6c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416d76
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405984
ret

Function at 0x4170a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00405a08
xor eax, eax
push ebp
push 0x41714d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x102
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00405f1c
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax + 0x38], ebx
xor eax, eax
push ebp
push 0x417130
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
add eax, 0x34
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417137
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
Function at 0x41715c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov byte [ebp - 5], cl
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405a08
xor eax, eax
push ebp
push 0x4172d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 5
mov eax, dword [ebp - 4]
call fcn.00405f1c
push eax
mov eax, dword [0x41ec4c]
push eax
call sub.kernel32.dll_FindResourceW
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x4172bd
push esi
mov eax, dword [0x41ec4c]
push eax
call sub.kernel32.dll_LoadResource
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x4172bd
mov eax, 0x4172f0
call fcn.00416870
call fcn.00416864
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_LockResource
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
push eax
mov eax, dword [0x41ec4c]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], edx
mov eax, dword [edi + 0x28]
call fcn.0040390c
mov ebx, eax
mov dword [edi + 0x3c], ebx
cmp byte [ebp - 5], 0
je 0x41729f
mov eax, dword [edi + 0xc]
mov dword [edi + 0x10], eax
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
jmp 0x41725e
lea edx, [edi + 0x18]
mov eax, dword [edi + 0x10]
mov ecx, 8
call fcn.00403ab0
lea eax, [edi + 0x18]
call fcn.00416a8c
mov edx, dword [edi + 0x14]
lea eax, [edi + 0x18]
mov ecx, 8
call fcn.00403ab0
add dword [edi + 0x20], 8
adc dword [edi + 0x24], 0
add dword [edi + 0x10], 8
add dword [edi + 0x14], 8
mov eax, dword [edi + 0x28]
mov edx, dword [edi + 0x2c]
sub eax, dword [edi + 0x20]
sbb edx, dword [edi + 0x24]
cmp edx, 0
jne 0x417276
cmp eax, 8
jae 0x417226
jmp 0x417278
jge 0x417226
call fcn.00416920
mov eax, dword [edi + 0x28]
mov ecx, eax
add ecx, dword [edi + 0x3c]
dec ecx
mov dword [edi + 0x10], ecx
movzx eax, byte [ecx]
mov byte [edi + 0x30], al
mov bl, 1
movzx eax, al
mov edx, dword [edi + 0x28]
sub edx, eax
dec edx
mov dword [edi + 0x40], edx
jmp 0x4172b4
mov edx, ebx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x28]
call fcn.00403ab0
mov bl, 1
mov eax, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 8]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4172da
lea eax, [ebp - 4]
call fcn.00405924
ret