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

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41973b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419759
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00419677
jmp 0x419759
mov eax, dword [esi + 0x14]
test eax, eax
je 0x419759
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00419677
test edi, edi
mov eax, edi
jne 0x419743
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4257ec]
test ecx, ecx
je 0x41980c
jmp 0x41970c
ret 8
Function at 0x4070f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push ebp
mov eax, dword [eax]
push esi
mov esi, dword [ecx]
push edi
mov edi, 0x5316ec
mov ebp, 0x10
xor eax, dword [edi]
push eax
mov ebx, eax
call fcn.00407090
add esp, 4
xor eax, esi
add edi, 4
dec ebp
mov esi, ebx
jne 0x40710a
mov ecx, dword [0x53172c]
mov edx, dword [0x531730]
xor ecx, eax
mov eax, dword [esp + 0x14]
xor edx, esi
pop edi
mov dword [eax], edx
mov edx, dword [esp + 0x14]
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret

Function at 0x407150
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push ebp
mov eax, dword [eax]
push esi
mov esi, dword [ecx]
push edi
mov edi, 0x531730
mov ebp, 0x10
xor eax, dword [edi]
push eax
mov ebx, eax
call fcn.00407090
add esp, 4
xor eax, esi
sub edi, 4
dec ebp
mov esi, ebx
jne 0x40716a
mov ecx, dword [0x5316f0]
mov edx, dword [0x5316ec]
xor ecx, eax
mov eax, dword [esp + 0x14]
xor edx, esi
pop edi
mov dword [eax], edx
mov edx, dword [esp + 0x14]
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
ret
Function at 0x42d4c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4f4678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, dword [esp + 0x34]
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
push eax
call fcn.004d2e05
xor eax, eax
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov byte [esp + 0x18], al
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.0042cdd0
test eax, eax
je 0x42d54e
lea ecx, [esp + 8]
call fcn.00429700
cmp al, 0x5e
jne 0x42d54e
lea ecx, [esp + 8]
call fcn.00429630
cmp eax, dword [edi + 0xa60]
je 0x42d58c
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x30], 0xffffffff
push ecx
call fcn.004d2e05
mov edx, dword [esp + 0x20]
push edx
call fcn.004d2e05
mov eax, dword [esp + 0x28]
push eax
call fcn.004d2e05
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea ecx, [esp + 8]
call fcn.00429630
lea ecx, [esp + 0x38]
lea edx, [esp + 8]
push ecx
push esi
push edx
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.0042d300
mov esi, eax
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], 0xffffffff
call fcn.004d2e05
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004d2e05
mov edx, dword [esp + 0x28]
push edx
call fcn.004d2e05
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x2c
ret 4
Function at 0x42f8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f47a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
push 6
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], ebx
call fcn.00429750
push 0xdcb
lea ecx, [esp + 0xc]
call fcn.00429830
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00429860
push ebx
lea ecx, [esp + 0xc]
call fcn.00429830
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push edx
call fcn.00429830
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
push eax
push ecx
lea ecx, [esp + 0x10]
call fcn.00429860
lea edx, [esp + 8]
mov ecx, esi
push edx
call fcn.0042d290
test eax, eax
je 0x42f9ce
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0042d4c0
test eax, eax
jne 0x42f9c7
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
push edx
call fcn.004d2e05
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
cmp byte [esp + 0x18], 0x65
je 0x42f9f8
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
push eax
call fcn.004d2e05
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
lea ecx, [esp + 8]
call fcn.00429880
cmp eax, 0xdcb
je 0x42fa32
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
push ecx
call fcn.004d2e05
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
lea ecx, [esp + 8]
call fcn.00429880
test eax, eax
mov dword [esp + 0x24], 0xffffffff
je 0x42fa69
mov edx, dword [esp + 0x14]
push edx
call fcn.004d2e05
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
mov eax, dword [esp + 0x14]
push eax
call fcn.004d2e05
mov ecx, dword [esp + 0x20]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x20
ret 0x14
Function at 0x4817c0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f7728
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
push 1
mov edi, ecx
push 0xffffffffffffffff
push 0
mov dword [esp + 0x1c], edi
call fcn.004815b0
push edi
lea ecx, [esp + 0x20]
call fcn.004d6e60
mov eax, dword [edi + 0xac]
mov dword [esp + 0x38], 0
test eax, eax
je 0x481819
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [0x4fd1b0]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x88]
mov edx, dword [esp + 0x44]
imul eax, dword [0x55f79c]
test edx, edx
mov dword [esp + 0x14], eax
jle 0x48190a
jmp 0x48183c
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x40]
xor esi, esi
mov ax, word [ebp]
cmp ax, 0xd
je 0x481866
mov ecx, ebp
cmp ax, 0xa
je 0x481866
cmp esi, edx
jge 0x481866
mov ax, word [ecx + 2]
add ecx, 2
inc esi
cmp ax, 0xd
jne 0x48184e
lea ecx, [esi + esi + 2]
push ecx
call fcn.004d2ddc
add esp, 4
mov ebx, eax
test esi, esi
jle 0x481890
mov ecx, ebp
mov edx, esi
sub ecx, ebx
mov di, word [ecx + eax]
mov word [eax], di
add eax, 2
dec edx
jne 0x48187f
mov edi, dword [esp + 0x10]
mov word [ebx + esi*2], 0
cmp word [ebp + esi*2], 0xd
jne 0x4818a8
inc esi
cmp word [ebp + esi*2], 0xd
jne 0x4818a8
inc esi
cmp word [ebp + esi*2], 0xa
jne 0x4818b1
inc esi
mov ebp, dword [edi + 0x58]
add edi, 0x50
push 0xffffffffffffffff
mov ecx, edi
lea edx, [ebp + 1]
push edx
call fcn.00405e20
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
push ecx
push ebx
mov dword [eax + ebp*4], ebx
mov edx, dword [esp + 0x28]
push edx
call fcn.00481990
mov ecx, dword [esp + 0x1c]
add esp, 0xc
cmp eax, dword [ecx + 0x6c]
jle 0x4818e9
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x10]
lea ecx, [eax + esi*2]
mov eax, dword [esp + 0x44]
sub eax, esi
mov dword [esp + 0x40], ecx
test eax, eax
mov dword [esp + 0x44], eax
jg 0x481838
push 2
call fcn.004d2ddc
mov ebx, eax
lea esi, [edi + 0x50]
add esp, 4
mov ecx, esi
mov word [ebx], 0
mov ebp, dword [esi + 8]
push 0xffffffffffffffff
lea edx, [ebp + 1]
push edx
call fcn.00405e20
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x18]
push ecx
mov dword [eax + ebp*4], ebx
mov edx, dword [esp + 0x24]
push edx
call dword [0x4fd1b0]
mov eax, dword [edi + 0x1c]
push 1
push 0
push eax
call dword [0x4fd618]
mov ecx, dword [edi + 0x1c]
push ecx
call dword [0x4fd64c]
mov ecx, edi
call fcn.004825b0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004d6ed2
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x48de19
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f82d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
push eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x4fd6b4]
push esi
lea ecx, [esp + 0x30]
call fcn.004d6e60
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push 1
xor ebx, ebx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x68], ebx
call fcn.0048cc00
mov dword [esp + 0x14], 0x50d5bc
mov dword [esp + 0x18], ebx
mov byte [esp + 0x5c], 1
call fcn.004e928c
mov eax, dword [eax + 0xc]
push 0x7e3
push eax
call dword [0x4fd5bc]
push eax
lea ecx, [esp + 0x18]
call fcn.004d4a9e
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call dword [0x4fd5c0]
push eax
call fcn.004d4a6b
mov edi, eax
push edi
call fcn.004143f0
mov eax, dword [0x55f3fc]
mov edx, dword [edi + 4]
push edx
mov ecx, dword [eax + 0xd70]
mov edx, dword [eax + 0xd6c]
push ecx
push edx
call fcn.004a1790
mov ecx, dword [esi + 0x1c]
add esp, 0x10
lea eax, [esp + 0xc]
mov dword [esp + 0x10], ebx
push eax
push ecx
mov dword [esp + 0x14], ebx
call dword [0x4fd584]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x40], 0x14
lea edx, [eax + 0x15]
push edx
lea edx, [ecx + 0x19]
push edx
push eax
lea eax, [esp + 0x50]
push ecx
push eax
call dword [0x4fd640]
mov edx, dword [0x55f3fc]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edx + 0x1c]
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
push 0x42
mov eax, dword [edi + 4]
push eax
call dword [0x4fd5d0]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ebx
push ecx
push edx
mov ecx, esi
call fcn.0048cc00
mov dword [esp + 0x14], 0x50d5bc
lea ecx, [esp + 0x14]
mov byte [esp + 0x5c], 2
call fcn.004d4af5
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004d6ed2
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret

Function at 0x492640
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f86b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 4]
push eax
push ecx
mov ecx, esi
call fcn.004918d0
push 0xffffffffffffffff
lea edx, [esp + 8]
push 0xffffffffffffffff
push edx
call dword [0x4fd620]
push esi
lea ecx, [esp + 0x18]
call fcn.004d6e60
mov eax, dword [0x55ebfc]
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x34], 0
call fcn.004d6887
mov ecx, dword [0x55ebe8]
push ecx
lea ecx, [esp + 0x18]
call fcn.004d67a0
mov edx, dword [0x55ec08]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [0x4fd1b0]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x18]
push 0
push str._printto___s___s___s___s___
push 0x64
lea edx, [esp + 0x10]
push ecx
push edx
push eax
call fcn.00436070
add esp, 0x18
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004d6ed2
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret 8
Function at 0x4ab630
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fa650
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x28]
call fcn.004d650f
push 0
push 0
push 0
push 0x52527c
mov dword [esp + 0x50], 0
call dword [0x4fd164]
push eax
lea ecx, [esp + 0x2c]
call fcn.004d65c6
mov eax, dword [0x55ec08]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call dword [0x4fd1b0]
mov edx, dword [0x52c200]
mov dword [esp + 0xc], edx
push 0x4e32
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 1
call fcn.004d35df
mov eax, dword [esp + 0xc]
mov ebp, dword [0x4fd1e8]
lea edx, [esp + 0x10]
mov ecx, dword [eax - 8]
push edx
push ecx
push eax
mov eax, dword [esp + 0x3c]
push eax
call ebp
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
push 0x26
lea ecx, [esp + 0x10]
call fcn.004d34ee
cmp eax, 0xffffffff
je 0x4ab6f5
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x10]
push edx
push 1
push 0x52538c
push eax
call ebp
sub edi, dword [esp + 0x10]
mov edx, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0xe
mov ecx, esi
call dword [edx + 0xe0]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub edx, ecx
push 0x114
push edx
lea edx, [edi + 5]
add eax, 8
push edx
lea ebp, [esi + 0x16c]
push ecx
push eax
push 0
mov ecx, ebp
mov dword [esp + 0x30], eax
call fcn.004d2c16
mov eax, dword [esp + 0xc]
mov ecx, ebp
push eax
call fcn.004d2b20
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0x115
push 0
lea eax, [ecx + edi + 5]
push 0
push edx
push eax
push 0
lea ecx, [esi + 0xec]
mov dword [esp + 0x30], eax
call fcn.004d2c16
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call fcn.004d309b
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0xffffffff
call fcn.004d6644
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x10c9c19
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x820]
mov dword [esi], 0x1040b10
call fcn.010825a4
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
and dword [esi + 0x1c], 0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x20], eax
shl eax, 8
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], 0x100
xor ecx, ecx
lea eax, [esi + 0x34]
and dword [eax], 0
inc ecx
add eax, 4
cmp ecx, dword [esi + 0x24]
jb 0x10c9c66
xor eax, eax
lea edi, [esi + 0x434]
mov ecx, 0xfb
rep stosd dword es:[edi], eax
and dword [esi + 0x30], eax
and dword [esi + 0x2c], eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x5ae268
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + eax]
or eax, 0xffffffff
cmp dword [0x582b70], 0
jne 0x5ae2df
lea ecx, [edi - 3]
cmp esi, ecx
jae 0x5ae2df
push ebx
xor eax, dword [esi]
xor edx, edx
xor ebx, ebx
add esi, 4
mov dword [ebp + 8], eax
mov bl, ah
mov dl, byte [ebp + 0xa]
mov edx, dword [edx*4 + 0x582b70]
xor edx, dword [ebx*4 + 0x582f70]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor edx, dword [ebx*4 + 0x582770]
xor edx, dword [eax*4 + 0x583370]
cmp esi, ecx
mov eax, edx
jb 0x5ae28a
pop ebx
jmp 0x5ae2df
movzx ecx, byte [esi]
movzx edx, al
xor ecx, edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x582770]
xor eax, ecx
inc esi
cmp esi, edi
jb 0x5ae2ca
pop edi
pop esi
pop ebp
ret

Function at 0x5afb87
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x238], 0
je 0x5afc4c
push edi
lea edi, [esi + 0x23c]
cmp dword [edi], 0
jne 0x5afbb5
push dword [esi + 0x244]
call dword [esi + 0x240]
mov dword [edi], 1
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
mov dword [esi + 0x1d8], eax
mov edx, dword [esp + 0x14]
movzx eax, byte [edi]
movzx ecx, byte [edi + 1]
shl eax, 8
add eax, ecx
push ebx
mov dword [esi + 0x1dc], eax
xor ebx, ebx
movzx eax, byte [edi + 3]
movzx ecx, byte [edi + 4]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 6]
shl eax, 8
add eax, ecx
movzx ecx, byte [edi + 7]
shl eax, 8
add eax, ecx
xor ecx, ecx
mov dword [esi + 0x1e0], eax
mov eax, dword [esi + 0x1fc]
sub edx, eax
push ecx
sbb ebx, ecx
push 0x2d
push ebx
push edx
call 0x674440
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1e4], eax
test ecx, ecx
pop ebx
je 0x5afc4b
push 0x10
lea eax, [esi + 0x1d8]
push 0
push eax
call fcn.005b0ebb
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
add eax, 0xfffffff8
add edi, 8
push eax
push 1
push edi
call fcn.005b0ebb
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x5b277f
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x218], 0
je 0x5b282c
push edi
lea edi, [esi + 0x21c]
cmp dword [edi], 0
jne 0x5b27ad
push dword [esi + 0x224]
call dword [esi + 0x220]
mov dword [edi], 1
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
lea eax, [esi + 0x194]
mov dword [eax], ecx
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x198], ecx
movzx ecx, byte [edi + 3]
movzx edx, byte [edi + 4]
shl ecx, 8
add ecx, edx
movzx edx, byte [edi + 6]
shl ecx, 8
add ecx, edx
movzx edx, byte [edi + 7]
shl ecx, 8
add ecx, edx
mov dword [esi + 0x19c], ecx
mov ecx, dword [esp + 0x14]
sub ecx, dword [esi + 0x1f0]
mov dword [esi + 0x1a0], ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x5b282b
push 0x10
push 0
push eax
call fcn.005b40d6
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x18]
add eax, 0xfffffff8
add edi, 8
push eax
push 1
push edi
call fcn.005b40d6
pop edi
xor eax, eax
pop esi
ret 0x10
Function at 0x403380
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.00405170
test esi, esi
jne 0x4033b6
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.00405260
jmp 0x4033d4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403224
mov edi, eax
test esi, esi
je 0x4033d4
cmp dword [ebx], 0
je 0x4033d4
dec esi
jmp 0x4033bd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x404088
Capabilities:
Query or enumerate registry value

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

Function at 0x404f3c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49f04c], 0
je 0x404f9d
cmp word [0x49f220], 0xd7b2
jne 0x404f65
cmp dword [0x49f228], 0
jbe 0x404f65
mov eax, 0x49f21c
call dword [0x49f238]
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 0x404fc4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49c02c], 0
jne 0x404fb9
push 0
push 0x49c784
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4050f4
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 [0x49c034], 0
je 0x40511a
mov edx, esi
mov eax, ebx
call dword [0x49c034]
jmp 0x405129
mov eax, 8
call fcn.00402f28
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4050bc
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 0x409740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409792
test eax, edx
je 0x409795
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409755
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 0x40977b
add ecx, 4
js 0x40976b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409778
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 0x4097a1
test edx, edx
jne 0x409748
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405600
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a30e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40a32f
cmp ebx, 3
je 0x40a32f
cmp ebx, 0x7b
je 0x40a32f
mov eax, esi
call fcn.0040a2b0
test al, al
jne 0x40a333
xor eax, eax
jmp 0x40a335
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405600
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a351
test al, 0x10
jne 0x40a355
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d1dc
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 0x40d215
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405260
jmp 0x40d21e
mov eax, ebx
mov edx, esi
call fcn.004051c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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