joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424abc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439fb8
push 0x439fb0
push str.FlsGetValue
push 0x20
call fcn.00424888
mov esi, eax
add esp, 0x10
test esi, esi
je 0x424af3
push dword [ebp + 8]
mov ecx, esi
call dword [0x4351f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4268f4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426876

Function at 0x427d8a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x444108]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x427dca
cmp byte [ebx], 0xa
jne 0x427dca
or byte [eax + edi + 0x28], 4
jmp 0x427dcf
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x427ecd
mov al, byte [edx]
cmp al, 0x1a
je 0x427eaf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x427dfe
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x427e23
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x427e2d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x427de0
jmp 0x427ecd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427eaa
cmp dword [ebp - 0xc], 0
je 0x427eaa
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x444108]
test byte [eax + edi + 0x28], 0x48
je 0x427e84
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x427e6f
mov byte [esi], dl
jmp 0x427e80
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x444108]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x427ecd
cmp byte [ebp - 1], 0xa
jne 0x427e93
cmp esi, ebx
jne 0x427e93
mov byte [esi], 0xa
jmp 0x427ecc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428c7e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x427ecd
mov byte [esi], 0xd
jmp 0x427ecc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x444108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x427ec9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x427ecd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x427ed6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x444108]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x427f19
cmp word [esi], dx
jne 0x427f19
or byte [edi + eax + 0x28], 4
jmp 0x427f1e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x428071
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x428051
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x427f60
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x427f96
cmp eax, edx
jae 0x427fa2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x427f38
jmp 0x428071
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42804d
cmp dword [ebp - 0x14], 0
je 0x42804d
mov eax, dword [ebx*4 + 0x444108]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x428025
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x427fee
mov word [esi], cx
jmp 0x428021
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x444108]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x444108]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x444108]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x428071
pop ebx
cmp word [ebp - 4], bx
jne 0x428036
cmp esi, dword [ebp + 0xc]
jne 0x428036
mov word [esi], bx
jmp 0x42806e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428c7e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x428071
push 0xd
jmp 0x42806a
mov ecx, dword [ebx*4 + 0x444108]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x428068
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x428071
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428a61
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428703

Function at 0x428a6c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428892
Function at 0x42b3f5
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 0x42b492
push ebx
push esi
call fcn.0042b3be
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.00429bfa
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x42b43f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42b491
push edi
push eax
call fcn.00425c27
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x42b45f
call fcn.0042444b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42b490
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00429bfa
add esp, 0x20
test eax, eax
jne 0x42b47e
push edi
call fcn.0042444b
jmp 0x42b486
push ebx
call fcn.0042444b
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 0x431845
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004317c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4319bd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4319bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x43196c
jg 0x43189e
test eax, eax
je 0x431962
push 1
push 0x1000
call fcn.00424556
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4318c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x431959
push 0x8000
push ebx
call fcn.00421681
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4318f0
jg 0x4318eb
cmp ecx, 0x1000
jb 0x4318f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004295c9
add esp, 0x10
cmp eax, 0xffffffff
je 0x431935
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4318eb
jl 0x43191c
test ecx, ecx
jne 0x4318dd
push dword [ebp - 0xc]
push ebx
call fcn.00421681
push esi
call fcn.0042444b
add esp, 0xc
xor edi, edi
jmp 0x4319ce
cmp byte [edi + 0x24], 0
je 0x43194c
cmp dword [edi + 0x20], 5
jne 0x43194c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x431957
mov edi, dword [edi + 0x18]
jmp 0x431959
xor edi, edi
push esi
call fcn.0042444b
pop ecx
jmp 0x4319ce
test ecx, ecx
jg 0x43192e
jl 0x43196c
test eax, eax
jae 0x43192e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428c7e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x43198f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x43192e
jmp 0x4319c6
push ebx
call fcn.0042b85f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x43192e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4319ce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4319cb
mov edi, dword [edi + 0x18]
jmp 0x4319ce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00428c7e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432e70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x432e9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432e9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x406918
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406960
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004068b4
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406967
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406b68
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406bf6
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406bb3
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406be0
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406bc7
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406bd6
lea edx, [ebp - 4]
call fcn.00406a2c
test ebx, ebx
je 0x406bd6
dec ebx
jmp 0x406bb8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bfd
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c04
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404d30
add esp, 0x104
pop ebx
ret
Function at 0x406d4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x406e6d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406e57
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406da5
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406e57
cmp dword [ebp - 0xc], 0
jne 0x406dba
mov eax, dword [ebp - 4]
call fcn.00403198
mov bl, 1
jmp 0x406e57
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403420
push eax
lea eax, [ebp - 8]
push eax
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406d71
test eax, eax
jne 0x406e57
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x406e01
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x406e57
jmp 0x406e01
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
je 0x406e14
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp byte [eax + edx - 1], 0
je 0x406dfe
cmp dword [ebp - 8], 7
jne 0x406e23
cmp dword [ebp - 0xc], 0
je 0x406e23
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.004034f0
cmp dword [ebp - 8], 7
jne 0x406e4a
cmp dword [ebp - 0xc], 0
je 0x406e4a
lea eax, [ebp - 0x10]
call fcn.00403420
mov edx, dword [ebp - 0xc]
mov byte [eax + edx - 1], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e74
lea eax, [ebp - 0x10]
call fcn.00403198
ret

Function at 0x4077a8
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40c55c
mov eax, esi
mov edx, 8
test al, 1
je 0x4077c4
shr eax, 1
xor eax, 0xedb88320
jmp 0x4077c6
shr eax, 1
dec edx
jne 0x4077b7
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x4077b0
pop esi
ret

Function at 0x4077dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40c558], 0
jne 0x4077ff
call fcn.004077a8
push 1
push 0x40c558
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40782a
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40c55c]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x407805
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x408e14
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408dc8
test al, al
jne 0x408e35
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x408e81
xor eax, eax
push ebp
push 0x408e71
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403414
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e78
lea eax, [ebp - 0xc]
call fcn.00408e04
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x409188
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x409277
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00406c30
mov edx, dword [ebp - 8]
mov ecx, 0x409290
xor eax, eax
call fcn.0040907c
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x409245
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x4091a8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00408c34
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00404be4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.004071a8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x14]
mov ecx, 2
mov al, 0x60
call fcn.00408c04
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, 0x4045b0
call fcn.004057e0
call fcn.00402eb4
jmp 0x4091a8
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40927e
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.004031b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004031b8
ret

Function at 0x4092a0
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
cmp dword [0x40b07c], 2
jne 0x409307
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4092c2
xor eax, eax
jmp 0x409316
lea eax, [esp + 8]
push eax
push 0x40931c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x409307
xor eax, eax
jmp 0x409316
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret
Function at 0x409330
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40938a
inc esi
xor edi, edi
cmp edi, 1
jne 0x409356
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x409364
cmp edi, 1
jle 0x409364
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408e14
test eax, eax
jne 0x40938a
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40938a
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40938a
inc edi
dec esi
jne 0x409346
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40961c
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
push ebp
cmp dword [0x40cca4], 0
je 0x409665
mov edi, dword [0x40cddc]
dec edi
test edi, edi
jl 0x409665
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cdd8]
mov edx, dword [edx + eax]
mov eax, dword [0x40cca4]
call fcn.00404b90
test eax, eax
jne 0x409661
mov eax, esi
call fcn.004095d0
jmp 0x40972a
inc esi
dec edi
jne 0x409637
mov al, byte [0x40cdc4]
sub al, 1
jb 0x409672
je 0x40967b
jmp 0x409684
call fcn.00406f48
mov ebp, eax
jmp 0x409686
call sub.kernel32.dll_GetUserDefaultLangID
mov ebp, eax
jmp 0x409686
xor ebp, ebp
test bp, bp
je 0x409723
mov edi, dword [0x40cddc]
dec edi
test edi, edi
jl 0x4096d2
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cdd8]
lea ebx, [edx + eax]
movzx eax, bp
cmp eax, dword [ebx + 0x28]
jne 0x4096ce
cmp dword [ebx + 0x2c], 0
je 0x4096c5
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x4096ce
mov eax, esi
call fcn.004095d0
jmp 0x40972a
inc esi
dec edi
jne 0x40969d
mov edi, dword [0x40cddc]
dec edi
test edi, edi
jl 0x409723
inc edi
xor esi, esi
mov eax, esi
shl eax, 6
add eax, esi
mov edx, dword [0x40cdd8]
lea ebx, [edx + eax]
mov eax, dword [ebx + 0x28]
and eax, 0x3ff
mov edx, ebp
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40971f
cmp dword [ebx + 0x2c], 0
je 0x409716
call sub.kernel32.dll_GetACP
cmp eax, dword [ebx + 0x2c]
jne 0x40971f
mov eax, esi
call fcn.004095d0
jmp 0x40972a
inc esi
dec edi
jne 0x4096e0
xor eax, eax
call fcn.004095d0
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4097bc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40988f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4098a8
push ebx
push 0x4098b4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40983c
mov al, 0x62
call fcn.00409394
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00409790
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409845
call fcn.00409790
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409896
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409948
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099fc
jmp 0x4099f1
cmp dword [esi + 0x10], 0x1000
jne 0x4099dd
test byte [esi + 0x15], 1
jne 0x4099dd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40999c
cmp eax, 2
je 0x40999c
cmp eax, 0x10
je 0x40999c
cmp eax, 0x20
jne 0x4099b1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4099b1
mov bl, 1
xor ebp, ebp
jmp 0x4099c2
mov eax, dword [esi]
add eax, ebp
call fcn.00409940
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4099b5
test bl, bl
je 0x4099dd
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099fc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409974
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x10001150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100011cb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100011cb
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x100011c4
cmp word [eax], 1
jne 0x100011b0
mov ecx, 0xffff
cmp word [eax + 2], cx
jne 0x100011b0
mov edx, dword [ebp + 0x14]
add eax, 0x1e
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.100062aa
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
add eax, 0x16
push eax
push ecx
push edx
call fcn.100062aa
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebp
ret