joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140f8f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x140f9b8
nop dword [eax]
cmp edi, dword [0x458c684]
jb 0x140f938
cmp edi, dword [0x458c688]
ja 0x140f938
sub edi, 0x8000000
jmp 0x140f9b0
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x140f9b8
cmp dword [ebp - 0xc], 0x10000
jne 0x140f99b
cmp dword [ebp - 0x10], 0x10000
jb 0x140f99b
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x140fa6a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x140f9b8
sub edi, 0x10000
jmp 0x140f9b0
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x140f920
movzx eax, si
test eax, eax
je 0x140f9c7
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x140fa68
cmp esi, dword [0x458c684]
jb 0x140f9ea
cmp esi, dword [0x458c688]
ja 0x140f9ea
add esi, 0x8000000
jmp 0x140fa60
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x140fa68
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x140fa4b
cmp ecx, 0x10000
jb 0x140fa4b
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x140fa6a
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x140fa68
add esi, 0x10000
jmp 0x140fa60
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x140fa60
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x140f9d2
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x140fd90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458a880
push 0x1426840
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x140fe33
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x140fe33
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x140fe33
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x140fe33
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1410390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x45b9fd4], eax
je 0x14103ac
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x45b9fd8]
test eax, eax
jne 0x14104c6
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x14103cb
lea eax, [ebx + 0x57]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x14103e8
cmp dword [edi], 0
jne 0x14103f5
mov dword [0x45b9fd8], 6
mov dword [0x45b9fdc], edi
pop edi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push 0x457d778
push 0x18
call fcn.0142362e
mov esi, eax
add esp, 8
test esi, esi
jne 0x1410413
lea ebx, [eax + 8]
jmp 0x14104a6
push 0
push dword [edi]
call fcn.01410300
push 0
push ebx
mov dword [ebp + 0xc], eax
call fcn.01410300
mov ebx, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [ebx + 0x36]
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x1410498
cmp ecx, 0x1e
ja 0x1410498
cmp dword [ebx + 0x44], edx
jne 0x1410498
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1410467
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x14104a6
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 4], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x45b9fe4]
mov dword [esi], eax
xor eax, eax
mov dword [0x45b9fe4], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x45b9fcc], 0
mov ebx, 9
jne 0x14104b0
mov dword [0x45b9fd8], ebx
test esi, esi
je 0x14104bb
push 0x18
push esi
call fcn.01423338
add esp, 8
pop esi
mov dword [0x45b9fdc], edi
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x14104d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x45b9fd4], 0
jne 0x1410547
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x45b9fd4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1410547
push esi
mov esi, dword [0x45b9fc4]
mov dword [0x45b9fe4], eax
mov dword [0x45b9fe0], eax
mov dword [0x45b9fdc], eax
test esi, esi
je 0x141052c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1410538
mov esi, dword [esi + 4]
test esi, esi
jne 0x1410510
xor eax, eax
mov dword [0x45b9fd8], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x45b9fd8], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x14352a1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4581300
push 0x45812f8
push str.FlsAlloc
push 0x1e
call fcn.0143516b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14352d5
push dword [ebp + 8]
mov ecx, esi
call dword [0x44461dc]
call esi
jmp 0x14352db
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x143531f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4581310
push 0x4581308
push str.FlsGetValue
push 0x20
call fcn.0143516b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1435356
push dword [ebp + 8]
mov ecx, esi
call dword [0x44461dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14366d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.01436542
Function at 0x1439a76
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 0x1439b13
push ebx
push esi
call fcn.01439a3f
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.01439988
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1439ac0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1439b12
push edi
push eax
call fcn.01436aa8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1439ae0
call fcn.01434e90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1439b11
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01439988
add esp, 0x20
test eax, eax
jne 0x1439aff
push edi
call fcn.01434e90
jmp 0x1439b07
push ebx
call fcn.01434e90
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 0x143fc6c
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 + 0x45bb040]
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 0x143fcac
cmp byte [ebx], 0xa
jne 0x143fcac
or byte [eax + edi + 0x28], 4
jmp 0x143fcb1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x143fdaf
mov al, byte [edx]
cmp al, 0x1a
je 0x143fd91
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x143fce0
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x143fd05
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x143fd0f
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 0x143fcc2
jmp 0x143fdaf
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 0x143fd8c
cmp dword [ebp - 0xc], 0
je 0x143fd8c
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x45bb040]
test byte [eax + edi + 0x28], 0x48
je 0x143fd66
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x143fd51
mov byte [esi], dl
jmp 0x143fd62
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x45bb040]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x143fdaf
cmp byte [ebp - 1], 0xa
jne 0x143fd75
cmp esi, ebx
jne 0x143fd75
mov byte [esi], 0xa
jmp 0x143fdae
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01443537
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x143fdaf
mov byte [esi], 0xd
jmp 0x143fdae
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x45bb040]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x143fdab
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x143fdaf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x143fdb8
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 + 0x45bb040]
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 0x143fdfb
cmp word [esi], dx
jne 0x143fdfb
or byte [edi + eax + 0x28], 4
jmp 0x143fe00
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 0x143ff53
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 0x143ff33
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x143fe42
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x143fe78
cmp eax, edx
jae 0x143fe84
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 0x143fe1a
jmp 0x143ff53
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 0x143ff2f
cmp dword [ebp - 0x14], 0
je 0x143ff2f
mov eax, dword [ebx*4 + 0x45bb040]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x143ff07
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x143fed0
mov word [esi], cx
jmp 0x143ff03
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x45bb040]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x45bb040]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x45bb040]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x143ff53
pop ebx
cmp word [ebp - 4], bx
jne 0x143ff18
cmp esi, dword [ebp + 0xc]
jne 0x143ff18
mov word [esi], bx
jmp 0x143ff50
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01443537
add esp, 0x10
cmp word [ebp - 4], bx
je 0x143ff53
push 0xd
jmp 0x143ff4c
mov ecx, dword [ebx*4 + 0x45bb040]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x143ff4a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x143ff53
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 0x1443b42
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.01443abe
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1443cba
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1443cba
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1443c69
jg 0x1443b9b
test eax, eax
je 0x1443c5f
push 1
push 0x1000
call fcn.01434e33
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1443bc1
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1443c56
push 0x8000
push ebx
call fcn.01432238
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 0x1443bed
jg 0x1443be8
cmp ecx, 0x1000
jb 0x1443bed
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0143fa6c
add esp, 0x10
cmp eax, 0xffffffff
je 0x1443c32
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 0x1443be8
jl 0x1443c19
test ecx, ecx
jne 0x1443bda
push dword [ebp - 0xc]
push ebx
call fcn.01432238
push esi
call fcn.01434e90
add esp, 0xc
xor edi, edi
jmp 0x1443ccb
cmp byte [edi + 0x24], 0
je 0x1443c49
cmp dword [edi + 0x20], 5
jne 0x1443c49
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1443c54
mov edi, dword [edi + 0x18]
jmp 0x1443c56
xor edi, edi
push esi
call fcn.01434e90
pop ecx
jmp 0x1443ccb
test ecx, ecx
jg 0x1443c2b
jl 0x1443c69
test eax, eax
jae 0x1443c2b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01443537
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1443c8c
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1443c2b
jmp 0x1443cc3
push ebx
call fcn.0143a463
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1443c2b
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 0x1443ccb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1443cc8
mov edi, dword [edi + 0x18]
jmp 0x1443ccb
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.01443537
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e090]
jne 0x401abf
repz ret
jmp fcn.00402aa8

Function at 0x409c2e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004065a0
and dword [ebp - 4], 0
cmp dword [0x481f78], 0
mov ebx, eax
jne 0x409cdf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409d90
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409d90
push eax
call fcn.0040652e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x481f78], eax
call esi
push eax
call fcn.0040652e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x481f7c], eax
call esi
push eax
call fcn.0040652e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x481f80], eax
call esi
push eax
call fcn.0040652e
pop ecx
mov dword [0x481f88], eax
test eax, eax
je 0x409cdf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040652e
pop ecx
mov dword [0x481f84], eax
mov eax, dword [0x481f84]
cmp eax, ebx
je 0x409d37
cmp dword [0x481f88], ebx
je 0x409d37
push eax
call fcn.004065a9
push dword [0x481f88]
mov esi, eax
call fcn.004065a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409d37
test edi, edi
je 0x409d37
call esi
test eax, eax
je 0x409d2e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409d2e
test byte [ebp - 0xc], 1
jne 0x409d37
or dword [ebp + 0x10], 0x200000
jmp 0x409d70
mov eax, dword [0x481f7c]
cmp eax, ebx
je 0x409d70
push eax
call fcn.004065a9
pop ecx
test eax, eax
je 0x409d70
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409d70
mov eax, dword [0x481f80]
cmp eax, ebx
je 0x409d70
push eax
call fcn.004065a9
pop ecx
test eax, eax
je 0x409d70
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x481f78]
call fcn.004065a9
pop ecx
test eax, eax
je 0x409d90
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409d92
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403274
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.00404b44
test esi, esi
jne 0x4032aa
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.00404c34
jmp 0x4032c8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403178
mov edi, eax
test esi, esi
je 0x4032c8
cmp dword [ebx], 0
je 0x4032c8
dec esi
jmp 0x4032b1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403a14
Capabilities:
Query or enumerate registry value

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

Function at 0x4048f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a1048], 0
je 0x404951
cmp word [0x4a121c], 0xd7b2
jne 0x404919
cmp dword [0x4a1224], 0
jbe 0x404919
mov eax, 0x4a1218
call dword [0x4a1234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404978
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49e02c], 0
jne 0x40496d
push 0
push 0x49e758
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ac8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x49e030], 0
je 0x404aee
mov edx, esi
mov eax, ebx
call dword [0x49e030]
jmp 0x404afd
mov eax, 8
call fcn.00402e88
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4a1049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404a90
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408b50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408ba2
test eax, edx
je 0x408ba5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408b65
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408b8b
add ecx, 4
js 0x408b7b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408b88
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408bb1
test edx, edx
jne 0x408b58
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404fd4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4095ea
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40960b
cmp ebx, 3
je 0x40960b
cmp ebx, 0x7b
je 0x40960b
mov eax, esi
call fcn.0040958c
test al, al
jne 0x40960f
xor eax, eax
jmp 0x409611
mov al, 1
pop esi
pop ebx
ret

Function at 0x40ca7c
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 0x40cab5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404c34
jmp 0x40cabe
mov eax, ebx
mov edx, esi
call fcn.00404b98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cac8
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 0x40caea
movzx eax, byte [esp]
jmp 0x40caec
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d17c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cff4
mov eax, dword [0x4a01ac]
cmp byte [eax], 0
je 0x40d1f8
mov eax, dword [0x49fe58]
call fcn.0040338c
call fcn.00402fe4
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.00409980
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 0x40d240
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d22e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x49fdd4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a37f4]
call fcn.00405f20
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