joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475bb9
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.00475b35
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x475d31
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x475d31
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x475ce0
jg 0x475c12
test eax, eax
je 0x475cd6
push 1
push 0x1000
call fcn.00467b2b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x475c38
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x475ccd
push 0x8000
push ebx
call fcn.004665b4
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 0x475c64
jg 0x475c5f
cmp ecx, 0x1000
jb 0x475c64
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00474b53
add esp, 0x10
cmp eax, 0xffffffff
je 0x475ca9
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 0x475c5f
jl 0x475c90
test ecx, ecx
jne 0x475c51
push dword [ebp - 0xc]
push ebx
call fcn.004665b4
push esi
call fcn.00467040
add esp, 0xc
xor edi, edi
jmp 0x475d42
cmp byte [edi + 0x24], 0
je 0x475cc0
cmp dword [edi + 0x20], 5
jne 0x475cc0
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x475ccb
mov edi, dword [edi + 0x18]
jmp 0x475ccd
xor edi, edi
push esi
call fcn.00467040
pop ecx
jmp 0x475d42
test ecx, ecx
jg 0x475ca2
jl 0x475ce0
test eax, eax
jae 0x475ca2
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00475ad7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x475d03
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x475ca2
jmp 0x475d3a
push ebx
call fcn.00470ebd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x475ca2
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 0x475d42
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x475d3f
mov edi, dword [edi + 0x18]
jmp 0x475d42
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00475ad7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x475d5c
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 + 0x4adca8]
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 0x475d9c
cmp byte [ebx], 0xa
jne 0x475d9c
or byte [eax + edi + 0x28], 4
jmp 0x475da1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x475e9f
mov al, byte [edx]
cmp al, 0x1a
je 0x475e81
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x475dd0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x475df5
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x475dff
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 0x475db2
jmp 0x475e9f
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 0x475e7c
cmp dword [ebp - 0xc], 0
je 0x475e7c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4adca8]
test byte [eax + edi + 0x28], 0x48
je 0x475e56
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x475e41
mov byte [esi], dl
jmp 0x475e52
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4adca8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x475e9f
cmp byte [ebp - 1], 0xa
jne 0x475e65
cmp esi, ebx
jne 0x475e65
mov byte [esi], 0xa
jmp 0x475e9e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00475ad7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x475e9f
mov byte [esi], 0xd
jmp 0x475e9e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4adca8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x475e9b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x475e9f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x475ea8
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 + 0x4adca8]
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 0x475eeb
cmp word [esi], dx
jne 0x475eeb
or byte [edi + eax + 0x28], 4
jmp 0x475ef0
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 0x476043
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 0x476023
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x475f32
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x475f68
cmp eax, edx
jae 0x475f74
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 0x475f0a
jmp 0x476043
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 0x47601f
cmp dword [ebp - 0x14], 0
je 0x47601f
mov eax, dword [ebx*4 + 0x4adca8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x475ff7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x475fc0
mov word [esi], cx
jmp 0x475ff3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4adca8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4adca8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4adca8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x476043
pop ebx
cmp word [ebp - 4], bx
jne 0x476008
cmp esi, dword [ebp + 0xc]
jne 0x476008
mov word [esi], bx
jmp 0x476040
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00475ad7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x476043
push 0xd
jmp 0x47603c
mov ecx, dword [ebx*4 + 0x4adca8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x47603a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x476043
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 0x476b70
Capabilities:
Parse pe header

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

Function at 0x50c5f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x50c60a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50c611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c600
mov eax, 1
add ebx, ebx
jne 0x50c623
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50c618
jne 0x50c634
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c618
xor ecx, ecx
sub eax, 3
jb 0x50c648
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50c6ba
mov ebp, eax
add ebx, ebx
jne 0x50c653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50c660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50c684
inc ecx
add ebx, ebx
jne 0x50c670
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50c665
jne 0x50c681
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c665
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50c6a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50c695
jmp 0x50c606
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50c6a4
add edi, ecx
jmp 0x50c606
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50c703
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50c6c1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50c6fd
mov dword [ebx], eax
add ebx, 4
jmp 0x50c6de
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50c737
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40d578
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a428]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408d2c
mov dword [ebp - 0x14], eax
cmp dword [0x8199d8], esi
jne 0x40d66b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d5f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d74b
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d74b
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d74b
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x8199d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x8199dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x8199e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8199e8], eax
test eax, eax
je 0x40d668
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x8199e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d690
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d683
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push 4
pop eax
jmp 0x40d74d
cmp dword [ebp - 0x14], esi
je 0x40d6a5
push dword [0x8199d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d68a
mov eax, dword [0x8199e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d703
cmp dword [0x8199e8], edi
je 0x40d703
push eax
call ebx
push dword [0x8199e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d703
test eax, eax
je 0x40d703
call ecx
test eax, eax
je 0x40d6f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d6f8
test byte [ebp - 8], 1
jne 0x40d703
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d733
mov eax, dword [0x8199dc]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
call eax
mov esi, eax
test esi, esi
je 0x40d730
mov eax, dword [0x8199e0]
cmp eax, edi
je 0x40d730
push eax
call ebx
test eax, eax
je 0x40d730
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x8199d8]
call ebx
test eax, eax
je 0x40d74b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d74d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040e0
mov esp, ebp
pop ebp
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000cd63
pop dword [ebp - 0x18]
mov eax, 0xe4b2dda
add eax, 0x1b59f89
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x3a913
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x6d98aa6a
sub ecx, 0x6d985c2f
xor ebx, ebx
add ebx, eax
mov esi, 0xeff57d1
sub esi, 0xfefdd1d1
add esi, dword [ebp - 0x18]
mov edx, 0xab261bca
xor dword [ebp - 0xc], 0xebabf4f2
mov edi, dword [esi]
add dword [ebp - 0x10], 0x51621442
xor edi, edx
xor dword [ebp - 0xc], edx
mov dword [ebx], edi
xor dword [ebp - 0x10], edx
add ebx, 0xdb32ceb7
sub ebx, 0xdb32ceb3
add esi, 4
loop 0x1000cdb9
add eax, 0xbb5fc6bb
add eax, 0x44a16504
mov ebx, eax
add eax, 5
mov ecx, 0xedec1228
sub ecx, 0xddec1228
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x4a433c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4a4344
push ecx
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a44b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004aab1c
cmp eax, 2
je 0x4a448f
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00408ff8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00408730
mov eax, dword [ebp - 0xc]
mov edx, 0x4a44c8
call fcn.0040493c
je 0x4a43a5
lea eax, [ebp - 8]
mov ecx, 0x4a44c8
mov edx, esi
call fcn.00404844
jmp 0x4a43af
lea eax, [ebp - 8]
mov edx, esi
call fcn.004045c8
cmp word [ebx + 0xb2], 0
je 0x4a43f4
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x18]
mov eax, dword [0x4b1054]
call fcn.00406860
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x20]
xor ecx, ecx
pop eax
call fcn.00409828
mov ecx, dword [ebp - 0x14]
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x418840]
call fcn.0041cfb8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x46b1e8]
call fcn.0046b90c
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004a1b7c
lea eax, [ebx + 0xa0]
call fcn.004677b4
lea eax, [ebp - 4]
call fcn.004677b4
cmp byte [ebx + 0xa4], 0
je 0x4a4467
push 1
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004049f0
push eax
push 0x4a44d0
mov eax, dword [0x4b0f08]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
cmp word [ebx + 0xb2], 0
je 0x4a448f
lea edx, [ebp - 0x24]
mov eax, dword [0x4b0e54]
call fcn.00406860
mov ecx, dword [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebx + 0xb4]
call dword [ebx + 0xb0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a44b9
lea eax, [ebp - 0x24]
call fcn.00404530
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404554
ret

Function at 0x4ac37c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x4ac441
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004ac150
test al, al
je 0x4ac397
push 0xa
push 0
push 0
lea edx, [ebp - 8]
mov eax, 0x4ac458
call fcn.004ab05c
push dword [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, 0x4ac4b8
call fcn.004ab05c
push dword [ebp - 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [0x4b0f08]
mov eax, dword [eax]
call fcn.00465c00
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004ac2f4
push dword [ebp - 0x10]
push 0x4ac4dc
lea edx, [ebp - 0x1c]
mov eax, dword [0x4b0f08]
mov eax, dword [eax]
call fcn.00465168
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call fcn.004ac2f4
push dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 5
call fcn.004048b8
mov eax, dword [ebp - 4]
call fcn.004049f0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac448
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404554
ret
Function at 0x402a24
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040dc
test esi, esi
jne 0x402a5a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041cc
jmp 0x402a78
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402938
mov edi, eax
test esi, esi
je 0x402a78
cmp dword [ebx], 0
je 0x402a78
dec esi
jmp 0x402a61
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403138
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x488020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031d0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031b0
xor eax, eax
push ebp
push 0x4031a9
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 0x4031ec
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 0x4031b0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x488020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x488020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403edc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48a04c], 0
je 0x403f3d
cmp word [0x48a220], 0xd7b2
jne 0x403f05
cmp dword [0x48a228], 0
jbe 0x403f05
mov eax, 0x48a21c
call dword [0x48a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48806c
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 0x403f64
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x488030], 0
jne 0x403f59
push 0
push 0x488064
push 0x48806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026fc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404058
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40601c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406082
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040434c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cf0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40606c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406089
lea eax, [ebp - 0x10]
call fcn.004040dc
ret

Function at 0x40b79c
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 0x40b7d5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041cc
jmp 0x40b7de
mov eax, ebx
mov edx, esi
call fcn.00404130
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40be90
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bd08
mov eax, dword [0x489d68]
cmp byte [eax], 0
je 0x40bf0c
mov eax, dword [0x4899e4]
call fcn.00402b5c
call fcn.00402864
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408dec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bf54
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bf42
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x489950]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48a668]
call fcn.00405530
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret