joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404167
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0
push esi
mov esi, ecx
jne 0x404260
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x404196
sub esp, 0x10
call fcn.0040446d
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x404262
cmp eax, 0xf
jne 0x4041aa
lea ecx, [esi + 0x20]
mov eax, dword [ecx]
call dword [eax]
mov eax, dword [ebp + 0x18]
and dword [eax], 0
jmp 0x40418e
cmp eax, 0x14
jne 0x4041ba
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 1
jmp 0x40418e
cmp eax, 0x201
jne 0x4041ce
push ecx
push dword [ebp + 0x14]
push ecx
push ecx
call fcn.004043ba
jmp 0x404189
cmp eax, 0x202
jne 0x4041e0
mov eax, dword [ebp + 0x18]
mov dword [eax], 1
jmp 0x40418e
cmp eax, 0x18
jne 0x404238
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DefWindowProcW]
cmp byte [0x44507c], 0
mov edi, eax
jne 0x40422d
xor ecx, ecx
mov byte [0x44507c], 1
lea eax, [ebp + 0x14]
mov dword [ebp + 0x14], ecx
push eax
push ecx
push esi
push 0x404589
push ecx
push ecx
call fcn.00417c97
add esp, 0x18
test eax, eax
je 0x40422d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
xor eax, eax
inc eax
pop edi
jmp 0x404262
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x1c], 1
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push eax
call fcn.00404907
cmp dword [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
jne 0x40418e
xor eax, eax
pop esi
pop ebp
ret 0x18
Function at 0x405959
Capabilities:
Accept command line arguments

Disassembly:
push 0xac
mov eax, 0x42f063
call fcn.0041156f
push 0x20
call fcn.00410b9e
mov dword [ebp - 0x98], eax
xor edi, edi
mov ecx, eax
mov dword [ebp - 4], edi
call fcn.004058a8
or dword [ebp - 4], 0xffffffff
mov dword [0x444c90], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040192c
xor ebx, ebx
lea eax, [ebp - 0x4c]
inc ebx
mov dword [ebp - 4], ebx
mov ecx, dword [0x444c90]
push eax
call fcn.00405be3
push edi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040195d
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], edi
mov word [ebp - 0x30], ax
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x94]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b107
mov esi, eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 3
mov ecx, dword [0x444c90]
push eax
call fcn.0040652c
push 0x43d9dc
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
call fcn.00404c69
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4c]
call fcn.00404c9f
pop ecx
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb8]
call fcn.00405902
push edi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.0040195d
push edi
push ebx
lea ecx, [ebp - 0x64]
call fcn.0040195d
push edi
push ebx
lea ecx, [ebp - 0x7c]
call fcn.0040195d
push edi
push ebx
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0xb
call fcn.0040195d
mov ecx, dword [0x444c90]
lea edx, [ebp - 0xb8]
call fcn.00405615
lea ecx, [ebp - 0xb8]
call fcn.0040593e
push edi
push ebx
lea ecx, [ebp - 0x30]
call fcn.0040195d
mov al, bl
call fcn.00411519
ret
Function at 0x407cdd
Capabilities:
Copy file

Disassembly:
push 0xb4
mov eax, 0x42f57b
call fcn.0041156f
mov dword [ebp - 0xc0], ecx
push 6
pop ecx
mov esi, 0x43da08
mov dword [ebp - 0x2c], 7
lea edi, [ebp - 0x28]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x30], ebx
rep movsd dword es:[edi], dword [esi]
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x88]
call fcn.0040192c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0040c470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x60], ebx
jne 0x407d3e
push ebx
jmp 0x407d55
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x88]
call fcn.0040bd35
pop ecx
mov bl, al
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0
call fcn.0040195d
test bl, bl
je 0x407eaa
mov dl, 1
lea ecx, [ebp - 0x58]
call fcn.0040c535
mov byte [ebp - 4], 3
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0xa0]
call fcn.0040192c
mov esi, 0x43d86c
mov byte [ebp - 4], 4
push esi
call fcn.00401124
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.00404e5c
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0xa0]
push ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.00404f00
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push ebx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x407e91
push ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 0xb9], bl
lea ecx, [ebp - 0xb8]
call fcn.004080f6
pop ecx
push dword [ebp - 0xc0]
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00406e80
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x88]
mov edx, eax
mov dword [esp], str.___cp
call fcn.00404c69
pop ecx
lea edx, [ebp - 0xb9]
mov byte [ebp - 4], 7
mov ecx, eax
call fcn.0040c29f
mov ebx, eax
lea ecx, [ebp - 0x88]
neg ebx
push 0
sbb bl, bl
push 1
inc bl
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0xa0]
call fcn.0040195d
push 0
jmp 0x407ea0
push ebx
push 1
lea ecx, [ebp - 0xa0]
call fcn.0040195d
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040195d
mov al, bl
call fcn.00411519
ret
Function at 0x40acee
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040ad8b
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x40ad81
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40ad7a
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x40ad71
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ad71
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x40ad83
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040ad8b
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40adc9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
jne 0x40adda
xor al, al
jmp 0x40ae43
mov ecx, 0x5a4d
push esi
cmp word [eax], cx
jne 0x40ae40
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x40ae40
mov edx, dword [ecx + eax + 0x98]
xor ecx, ecx
lea esi, [edx + eax]
test edx, edx
jne 0x40ae03
mov esi, ecx
test esi, esi
je 0x40ae40
lea eax, [esi + 8]
test eax, eax
je 0x40ae40
cmp byte [eax], 0x30
lea edx, [eax + 1]
jne 0x40ae32
mov al, byte [edx]
cmp al, 0x82
jne 0x40ae32
movzx ecx, byte [edx + 1]
movzx eax, byte [edx + 2]
shl ecx, 8
add ecx, 0x13
add ecx, eax
and ecx, 0xffffff8
test ecx, ecx
je 0x40ae40
mov dword [edi + 0x14], ecx
mov al, 1
mov dword [edi + 0x18], esi
jmp 0x40ae42
xor al, al
pop esi
pop edi
pop ebp
ret 4
Function at 0x40b2a4
Capabilities:
Encode data using xor

Disassembly:
push 0x844
mov eax, 0x42fb30
call fcn.0041156f
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x840], eax
mov edi, 0xff
mov ecx, esi
mov dword [ebp - 0x850], esi
lea eax, [ebp - 0x844]
mov dword [ebp - 0x84c], ecx
mov dword [ebp - 0x848], edi
mov dword [ebp - 0x844], 0x4fd7e7d
mov dword [ebp - 0x824], esi
mov dword [ebp - 0x830], eax
push 0x20
pop ebx
or eax, 0xffffffff
shr eax, 1
dec ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x828], eax
cmp eax, 0x7ffffffd
ja 0x40b2f9
mov dword [ebp - 0x834], eax
add edi, 0x80000000
lea eax, [ecx - 0x80000000]
mov dword [ebp - 0x838], ebx
sub edi, eax
mov dword [ebp - 0x83c], eax
cmp edi, 0xffffffff
jne 0x40b35e
mov edi, esi
mov dword [ebp - 0x818], esi
lea ecx, [ebp - 0x830]
call fcn.0040b669
lea ecx, [ebx - 1]
add esi, ebx
shl edi, cl
add edi, edi
or edi, eax
cmp esi, 0x20
jb 0x40b33c
xor esi, esi
jmp 0x40b406
lea eax, [edi + 1]
mov dword [ebp - 0x818], eax
mov dword [ebp - 0x814], esi
mov eax, esi
mov dword [ebp - 0x820], eax
test edi, edi
je 0x40b3c9
mov esi, dword [ebp - 0x834]
lea eax, [ebx - 1]
mov ebx, dword [ebp - 0x814]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x830]
call fcn.0040b669
mov ecx, dword [ebp - 0x81c]
shl ebx, cl
add ebx, ebx
or ebx, eax
mov eax, dword [ebp - 0x820]
shl eax, cl
add eax, eax
or eax, esi
mov dword [ebp - 0x820], eax
cmp eax, edi
jb 0x40b38e
mov dword [ebp - 0x814], ebx
xor esi, esi
mov ebx, dword [ebp - 0x838]
xor edx, edx
lea ecx, [edi + 1]
div ecx
mov ecx, eax
mov dword [ebp - 0x81c], edx
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
cmp eax, ecx
jb 0x40b3f6
cmp dword [ebp - 0x81c], edi
jne 0x40b367
mov eax, dword [ebp - 0x814]
xor edx, edx
div dword [ebp - 0x818]
mov edi, edx
mov ecx, dword [ebp - 0x824]
mov eax, dword [ebp - 0x83c]
add eax, edi
add eax, 0x80000000
mov byte [ebp + ecx - 0x810], al
inc ecx
mov dword [ebp - 0x824], ecx
cmp ecx, 0x800
jge 0x40b440
mov edi, dword [ebp - 0x848]
mov ecx, dword [ebp - 0x84c]
jmp 0x40b2f3
push 0x800
lea ecx, [ebp - 0x830]
call fcn.0040b4f9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov edi, dword [ebp - 0x830]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
cmp eax, 0x800
jne 0x40b489
lea ebx, [ebp - 0x810]
sub ebx, edi
mov eax, dword [ecx]
lea edx, [edi + esi]
mov cl, byte [ebx + edx]
xor cl, byte [eax + esi]
inc esi
mov byte [edx], cl
mov ecx, dword [ebp + 0xc]
cmp esi, 0x800
jl 0x40b470
mov ecx, dword [ebp - 0x840]
push edi
call fcn.00409191
lea ecx, [ebp - 0x830]
call fcn.0040b591
mov eax, dword [ebp - 0x840]
call fcn.00411519
ret 8
Function at 0x40b793
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x42fb60
call fcn.0041153b
mov ebx, ecx
and dword [ebp - 0x18], 0
cmp dword [ebx], 0
je 0x40b870
cmp dword [ebx], 0xffffffff
je 0x40b870
push 0x40
pop esi
push esi
lea ecx, [ebp - 0x24]
call fcn.0040b952
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x40b7d4
mov ecx, dword [eax]
jmp 0x40b7d6
mov ecx, eax
mov edi, dword [ebp - 0x24]
lea eax, [esi + esi]
mov dword [ebp - 0x14], eax
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b82a
cmp dword [ebp - 0x10], 1
je 0x40b809
cmp dword [ebp - 0x10], 2
je 0x40b809
push 0xd
pop eax
jmp 0x40b82a
test edi, edi
je 0x40b828
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40b823
test al, 1
jne 0x40b804
shr eax, 1
cmp word [edi + eax*2 - 2], si
je 0x40b828
jmp 0x40b804
xor eax, eax
mov word [edi], ax
mov eax, esi
mov dword [ebx + 0xc], eax
cmp eax, 0xea
jne 0x40b847
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
sub esi, edi
and esi, 0xfffffffe
push esi
call fcn.0040b8f1
jmp 0x40b7c7
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0xc], esi
je 0x40b868
push dword [ebp + 0x10]
call fcn.00404370
lea ecx, [ebp - 0x24]
call fcn.0040b98b
jmp 0x40b87b
push edi
call fcn.0040192c
jmp 0x40b85e
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
call fcn.00404370
mov eax, dword [ebp + 8]
call fcn.00411504
ret 0xc

Function at 0x40b886
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b8ec
cmp dword [edi], 0xffffffff
je 0x40b8ec
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x40b8a1
mov ecx, dword [ecx]
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x40b8ad
mov esi, dword [esi]
test ecx, ecx
jne 0x40b8b6
push 0xd
pop eax
jmp 0x40b8e8
and dword [ebp + 0xc], 0
mov edx, ecx
push ebx
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, word [ebp + 0xc]
jne 0x40b8c0
sub edx, ebx
sar edx, 1
lea eax, [edx*2 + 2]
push eax
push ecx
push 1
xor eax, eax
push eax
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov dword [edi + 0xc], eax
pop esi
pop edi
pop ebp
ret 8

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x40bc1e
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bc31
shr eax, 4
and eax, 1
ret
xor al, al
ret
Function at 0x40bc34
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x42ef1c
call fcn.0041156f
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x40bc4c
mov edi, dword [esi]
jmp 0x40bc4e
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bc61
shr al, 4
and al, 1
jmp 0x40bcdf
push ecx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0040c6bc
pop ecx
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x40bc7b
mov eax, dword [esi]
jmp 0x40bc7d
mov eax, esi
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push dword [esi + 0x10]
cmovae ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
push eax
call fcn.00404d42
pop ecx
pop ecx
test eax, eax
je 0x40bccf
lea ecx, [ebp - 0x28]
call fcn.0040bc34
test al, al
je 0x40bccf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40bccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40bccf
mov ecx, esi
call fcn.0040bc16
test al, al
je 0x40bccf
mov bl, 1
jmp 0x40bcd1
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov al, bl
call fcn.00411519
ret
Function at 0x40bd35
Capabilities:
Create directory

Disassembly:
push 0x50
mov eax, 0x42fba3
call fcn.0041156f
mov eax, edx
mov dword [ebp - 0x5c], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
xor ecx, ecx
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
and dword [ebp - 4], ecx
xor esi, esi
and dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
push 0xffffffffffffffff
push ecx
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401ace
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0040d237
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00404f00
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040195d
push 0x5f
lea ecx, [ebp - 0x40]
call fcn.004067ed
mov edx, 0x7fff
call fcn.0040d290
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0040d237
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00404f00
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040195d
push ebx
lea ecx, [ebp - 0x58]
call fcn.00404370
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00404f00
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x40be1f
push 0xffffffffffffffff
push 0
push eax
call fcn.00401ace
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.0040195d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40be66
push eax
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], al
call fcn.0040195d
mov eax, dword [ebp - 0x5c]
inc esi
cmp esi, 0x32
jl 0x40bd61
xor bl, bl
jmp 0x40be87
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x40be79
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00401ace
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040195d
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov al, bl
call fcn.00411519
ret
Function at 0x40c29f
Capabilities:
Create process on windows

Disassembly:
push 0x7c
mov eax, 0x42fc54
call fcn.0041156f
mov edi, edx
mov esi, ecx
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.00413ef0
add esp, 0xc
mov dword [ebp - 0x88], 0x44
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], ebx
push esi
lea ecx, [ebp - 0x28]
movups xmmword [ebp - 0x3c], xmm0
call fcn.00404370
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x88]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40c325
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x2c], esi
jmp 0x40c328
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x40c34f
cmp byte [edi], 0
je 0x40c34f
call fcn.0040bb05
push ecx
push dword [ebp - 0x3c]
call fcn.0040bac3
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [ebp - 0x2c]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, esi
call fcn.00411519
ret

Function at 0x40c362
Capabilities:
Create process on windows

Disassembly:
push 0x74
mov eax, 0x42fc84
call fcn.0041156f
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push 0x40
push 0
push eax
call fcn.00413ef0
add esp, 0xc
mov dword [ebp - 0x80], 0x44
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push 1
mov edx, edi
movups xmmword [ebp - 0x38], xmm0
call fcn.00405712
and dword [ebp - 4], 0
mov dword [esp], 0x43d9dc
call fcn.00401124
pop ecx
push eax
push 0x43d9dc
lea ecx, [ebp - 0x28]
call fcn.00404e5c
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x28]
call fcn.00404f00
xor edx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, edx
cmovae eax, dword [ebp - 0x28]
cmp dword [edi + 0x14], 8
jb 0x40c3ec
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x80]
push ecx
push edx
push edx
push edx
push edx
push edx
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40c412
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40c432
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x40c432
call fcn.0040bb05
push ecx
push dword [ebp - 0x38]
call fcn.0040bac3
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
mov eax, esi
call fcn.00411519
ret
Function at 0x40c9db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 0xc]
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40ca80
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x40ca14
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40ca80
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x40ca2b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40ca7f
push edi
lea ecx, [ebp - 0xc]
call fcn.0040b4f9
push edi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.00413970
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
add esp, 0xc
cmp ecx, eax
je 0x40ca63
mov eax, dword [ecx]
mov dword [ecx], edi
mov edi, eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ebx, dword [ecx + 8]
mov eax, dword [ebp - 4]
mov dword [ecx + 8], eax
jmp 0x40ca66
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40ca7f
push 1
sub ebx, edi
push ebx
push edi
call fcn.004011e6
add esp, 0xc
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40cf8b
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push 0x4c
mov eax, 0x42fe4f
call fcn.0041156f
mov bl, cl
lea ecx, [ebp - 0x28]
call fcn.0040c470
and dword [ebp - 4], 0
mov esi, str.amigotmp_
push esi
call fcn.00401124
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00404e5c
mov edx, 0x7fff
call fcn.0040d290
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.0040d237
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00404f00
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.0040195d
push 8
pop edi
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d019
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dl, 1
lea ecx, [ebp - 0x40]
call fcn.0040c535
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], edi
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push 0
test eax, eax
je 0x40d05d
cmp dword [ebp - 0x2c], edi
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
jmp 0x40d067
cmp dword [ebp - 0x14], edi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
test bl, bl
je 0x40d095
push ecx
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x58]
call fcn.0040c6bc
pop ecx
cmp dword [eax + 0x14], edi
jb 0x40d082
mov eax, dword [eax]
push 4
push 0
push eax
call esi
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.0040195d
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040195d
call fcn.00411519
ret
Function at 0x40d290
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42feca
mov eax, dword fs:[0]
push eax
mov eax, 0x13a4
call fcn.00411cf0
mov eax, dword [0x443070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
push 0x43db34
lea ecx, [ebp - 0x28]
call fcn.00409191
and dword [ebp - 4], 0
call fcn.004100fa
xor esi, esi
lea ecx, [ebp - 0x28]
push 0
inc esi
or ebx, 0xffffffff
push esi
mov dword [ebp - 4], ebx
call fcn.00409ee8
call fcn.004100fa
mov dword [ebp - 0x2c], ebx
mov edx, 0x270
mov dword [ebp - 0x13ac], eax
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, esi
mov dword [ebp + esi*4 - 0x13ac], eax
inc esi
cmp esi, edx
jl 0x40d301
mov dword [ebp - 0x13b0], edx
lea eax, [ebp - 0x13b0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], ebx
cmp edi, ebx
jne 0x40d34a
lea ecx, [ebp - 0x13b0]
call fcn.0040d4be
cmp eax, ebx
ja 0x40d339
jmp 0x40d356
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040d44e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410b8d
mov esp, ebp
pop ebp
ret

Function at 0x40d4be
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x40d506
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40d4ce
jmp 0x40d513
cmp dword [esi], 0x4e0
jb 0x40d513
call fcn.0040d54d
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret