joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a9e
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 + 0x428ab0]
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 0x412ae1
cmp word [esi], dx
jne 0x412ae1
or byte [edi + eax + 0x28], 4
jmp 0x412ae6
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 0x412c39
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 0x412c19
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x412b28
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x412b5e
cmp eax, edx
jae 0x412b6a
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 0x412b00
jmp 0x412c39
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 0x412c15
cmp dword [ebp - 0x14], 0
je 0x412c15
mov eax, dword [ebx*4 + 0x428ab0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x412bed
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x412bb6
mov word [esi], cx
jmp 0x412be9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x428ab0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x428ab0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x428ab0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x412c39
pop ebx
cmp word [ebp - 4], bx
jne 0x412bfe
cmp esi, dword [ebp + 0xc]
jne 0x412bfe
mov word [esi], bx
jmp 0x412c36
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004134d2
add esp, 0x10
cmp word [ebp - 4], bx
je 0x412c39
push 0xd
jmp 0x412c32
mov ecx, dword [ebx*4 + 0x428ab0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412c30
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412c39
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 0x416896
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 0x416933
push ebx
push esi
call fcn.0041685f
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.004154e4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4168e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416932
push edi
push eax
call fcn.004136b1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x416900
call fcn.00410688
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416931
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004154e4
add esp, 0x20
test eax, eax
jne 0x41691f
push edi
call fcn.00410688
jmp 0x416927
push ebx
call fcn.00410688
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 0x41c500
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12c000]
push edi
or ebp, 0xffffffff
jmp 0x5d1e52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5d1e59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d1e48
mov eax, 1
add ebx, ebx
jne 0x5d1e6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5d1e7c
jne 0x5d1e9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d1e9b
dec eax
add ebx, ebx
jne 0x5d1e88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5d1e60
add ebx, ebx
jne 0x5d1e97
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5d1eed
xor ecx, ecx
sub eax, 3
jb 0x5d1eb3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5d1f22
sar eax, 1
mov ebp, eax
jmp 0x5d1ebe
add ebx, ebx
jne 0x5d1ebe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d1e8c
inc ecx
add ebx, ebx
jne 0x5d1ecc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5d1e8c
add ebx, ebx
jne 0x5d1ed9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5d1ece
jne 0x5d1eea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5d1ece
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5d1f0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5d1efe
jmp 0x5d1e4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5d1f0c
add edi, ecx
jmp 0x5d1e4e
pop esi
mov edi, esi
mov ecx, 0xb74
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5d1f2a
cmp byte [edi], 7
jne 0x5d1f2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5d1f2f
lea edi, [esi + 0x1ce000]
mov eax, dword [edi]
or eax, eax
je 0x5d1f9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d2cf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d2e08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5d1f5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d2e0c]
or eax, eax
je 0x5d1f98
mov dword [ebx], eax
add ebx, 4
jmp 0x5d1f79
call dword [esi + 0x1d2e1c]
mov ebp, dword [esi + 0x1d2e10]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5d1fd2
sub esp, 0xffffff80
jmp 0x41ecc0
Function at 0x456529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00456480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x456558
mov eax, 0xea61
jmp 0x4565d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x456568
mov eax, 0xea62
jmp 0x4565d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00456480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x456595
mov eax, 0xea62
jmp 0x4565d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4565ad
mov eax, 0xea65
jmp 0x4565d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4565c2
mov eax, 0xea66
jmp 0x4565d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4565d2
mov eax, 0xea67
jmp 0x4565d6
xor eax, eax
jmp 0x4565d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408aba
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
lea eax, [ebp + 0xc]
lea edx, [ebp + 0xc]
sub eax, edx
lea edx, [ebp + 0xc]
push ebx
push esi
cmp eax, edx
push edi
jne 0x408b1e
push 0x64
pop edi
push 0x64
lea eax, [ebp + 0xbc]
pop esi
mov ebx, dword [eax - 4]
lea edx, [eax - 4]
mov dword [eax], ebx
dec esi
mov eax, edx
jne 0x408ae1
mov eax, dword [ebp + 0xbc]
dec edi
mov dword [ebp - 0xd4], eax
jne 0x408ad8
mov dl, byte [ebp + 0xc]
test dl, dl
je 0x408b1e
lea eax, [ebp + 0xc]
cmp dl, 0x61
jl 0x408b11
cmp byte [eax], 0x7a
jle 0x408b16
mov dl, byte [eax]
mov byte [ebp - 2], dl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x408b07
mov al, byte [ecx + 0x104]
mov bl, byte [ecx + 0x105]
mov byte [ebp - 1], al
lea eax, [ebp + 0xc]
test eax, eax
jne 0x408b5c
push 3
pop esi
push 2
pop edi
mov eax, esi
mov esi, edi
cdq
idiv edi
mov eax, esi
mov dword [ebp - 8], edx
mov edi, edx
cdq
idiv edi
test edx, edx
jne 0x408b3a
push 1
pop eax
push 9
pop edx
dec edx
lea eax, [eax + eax + 2]
jne 0x408b55
and dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
jbe 0x408be2
movzx edi, byte [ebp - 1]
movzx ebx, bl
jmp 0x408b72
mov ebx, dword [ebp - 0xc]
lea eax, [edi + 1]
mov esi, 0x100
cdq
idiv esi
movzx edi, dl
mov al, byte [edi + ecx + 4]
mov byte [ebp - 1], dl
lea esi, [edi + ecx + 4]
mov byte [ebp - 3], al
movzx eax, al
add eax, ebx
mov ebx, 0x100
cdq
idiv ebx
mov ebx, dword [ebp - 8]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov byte [ebp - 2], dl
mov dl, byte [eax + ecx + 4]
lea eax, [eax + ecx + 4]
mov byte [esi], dl
mov dl, byte [ebp - 3]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add ebx, eax
movzx eax, byte [esi]
movzx edx, dl
add eax, edx
mov esi, 0x100
cdq
idiv esi
movzx eax, dl
mov al, byte [eax + ecx + 4]
xor byte [ebx], al
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x408b6f
mov bl, byte [ebp - 2]
mov al, byte [ebp - 1]
push 1
mov byte [ecx + 0x104], al
pop eax
pop edi
mov byte [ecx + 0x105], bl
pop esi
pop ebx
leave
ret 8
Function at 0x4027e4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x402c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40c010]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402c78
xor eax, eax
push ebp
push 0x402c71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402cb4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c78
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40c010]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40c010], ax
mov esp, ebp
pop ebp
ret

Function at 0x403700
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40d044], 0
je 0x403761
cmp word [0x40d218], 0xd7b2
jne 0x403729
cmp dword [0x40d220], 0
jbe 0x403729
mov eax, 0x40d214
call dword [0x40d230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40c050
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403788
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40c01c], 0
jne 0x40377d
push 0
push 0x40c070
push 0x40c050
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404330
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404560
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4043b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404560
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4043b3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40457c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40443c
xor eax, eax
push ebp
push 0x404435
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404178
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40441a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x40459c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40441a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40443c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404556
cmp byte [ebp - 0xd], 0
jne 0x404483
cmp byte [ebp - 0x12], 0
je 0x404556
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x40449c
dec ebx
cmp byte [ebx], 0x2e
je 0x4044ab
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40449b
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404556
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4044e8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404556
cmp byte [ebp - 0xd], 0
je 0x404556
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404556
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40676c
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_1
test eax, eax
jle 0x4067a5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040396c
jmp 0x4067ae
mov eax, ebx
mov edx, esi
call fcn.004038d0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4067b8
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_1
test eax, eax
jle 0x4067d9
mov al, byte [esp]
jmp 0x4067db
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4078fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407960
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ac0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405a48
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407967
lea eax, [ebp - 0xc]
call fcn.0040387c
ret

Function at 0x4086d8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40875b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40873e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.00408654
mov eax, dword [ebp - 0xc]
call fcn.00403ce4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408745
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x4087e0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
xor eax, eax
mov dl, byte [ebx]
sub dl, 1
jb 0x40880c
sub dl, 0x1f
je 0x408804
sub dl, 2
je 0x408800
jmp 0x408808
xor al, 1
jmp 0x408808
test al, al
je 0x40880c
inc ebx
jmp 0x4087ed
inc ebx
cmp byte [ebx], 0x20
je 0x40880b
mov eax, esi
mov edx, ebx
call fcn.00403a54
pop esi
pop ebx
ret

Function at 0x4089f8
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.00405c70
add esp, 0x104
pop ebx
ret
Function at 0x408b3c
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 0x408be5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
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_1
test eax, eax
jne 0x408bcf
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
je 0x408b88
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x408bcf
cmp dword [ebp - 0xc], 2
jae 0x408b9a
mov eax, dword [ebp - 4]
call fcn.0040387c
mov bl, 1
jmp 0x408bcf
mov edx, dword [ebp - 0xc]
dec edx
lea eax, [ebp - 0x10]
call fcn.00403dd8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.00403d34
push eax
push 0
push 0
push edi
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x408bcf
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.004038d0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408bec
lea eax, [ebp - 0x10]
call fcn.0040387c
ret

Function at 0x409400
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40d884
mov eax, esi
mov edx, 8
test al, 1
je 0x40941c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40941e
shr eax, 1
dec edx
jne 0x40940f
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409408
pop esi
ret

Function at 0x409434
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40d880], 0
jne 0x409457
call fcn.00409400
push 1
push 0x40d880
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x409483
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40d884]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40945d
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ab44
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov esi, eax
cmp edi, 0x50
jbe 0x40ab66
mov eax, esi
mov edx, dword [0x40c474]
mov ecx, 0x40
call fcn.00402754
je 0x40ab6b
call fcn.0040aadc
mov eax, esi
add eax, 0x40
mov ebx, eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
not edx
cmp eax, edx
jne 0x40ab8a
cmp edi, eax
jne 0x40ab8a
cmp dword [ebx], 0xcc
je 0x40ab8f
call fcn.0040aadc
mov eax, ebx
add eax, 0x10
mov ebp, eax
add esi, dword [ebx + 4]
mov dword [esp], esi
mov edx, dword [esp]
sub edx, ebp
mov eax, ebp
call fcn.0040948c
cmp eax, dword [ebx + 0xc]
jne 0x40abb6
mov eax, dword [esp]
cmp byte [eax - 1], 0
je 0x40abbb
call fcn.0040aadc
mov bl, 0xcc
mov esi, 0x40dc98
cmp ebp, dword [esp]
jb 0x40abcc
call fcn.0040aadc
mov eax, ebp
call fcn.00405bb0
mov edi, eax
mov eax, esi
mov ecx, edi
mov edx, ebp
call fcn.0040396c
inc edi
add ebp, edi
add esi, 4
dec bl
jne 0x40abc2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b2d8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
lea ebx, [ebp - 0x78]
xor eax, eax
push ebp
push 0x40b3ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40b3e0
push esi
push 0x40b3ec
push edi
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403bac
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x44
call fcn.004027c4
mov dword [ebp - 0x4c], 0x44
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403ce4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40b35c
mov al, 0x62
call fcn.0040af2c
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x40b373
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x40b367
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x5c]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40b373
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x5c]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b3d1
lea eax, [ebp - 8]
call fcn.0040387c
ret

Function at 0x40b484
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40b48c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40b576
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00408a24
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
mov edx, 0x40b58c
call fcn.0040ace0
push 0
mov eax, dword [ebp - 4]
call fcn.00403ce4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40b544
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40b4a6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040aa9c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00405a14
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00408ddc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040aa6c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x404ee4]
call fcn.00406f80
call fcn.004032dc
jmp 0x40b4a6
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004038d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b57d
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.004038a0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004038a0
ret