joyce8/EMBER2024-capa huggingface dataset:
Function at 0x110b4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
test edi, edi
je 0x110b4f8
cmp dword [esi + 0x18], 0
je 0x110b4f8
lea ecx, [ecx]
mov edx, dword [esi + 0x30]
push edi
push edx
call fcn.0110cd20
add esp, 8
test eax, eax
jne 0x110b500
mov esi, dword [esi]
cmp dword [esi + 0x18], eax
jne 0x110b4e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x110b510
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 4]
test edi, edi
je 0x110b568
cmp dword [esi + 0x18], 0
je 0x110b568
lea ecx, [ecx]
mov edx, dword [esi + 0x30]
push edi
push edx
call fcn.0110cd20
add esp, 8
test eax, eax
jne 0x110b570
mov esi, dword [esi]
cmp dword [esi + 0x18], eax
jne 0x110b550
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x30]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x110b620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor ecx, ecx
test edx, edx
je 0x110b664
cmp dword [eax + 0x18], 0
je 0x110b664
mov eax, dword [eax]
inc ecx
cmp ecx, edx
jb 0x110b657
mov esp, ebp
pop ebp
ret

Function at 0x110b670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
push 0x103
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0110be60
add esp, 0xc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
cmp dword [esi + 0x18], 0
je 0x110b6fb
mov edi, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [esi + 0x30]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.0110c480
lea edx, [ebp - 0x10c]
push edx
push edi
call fcn.01104df0
add esp, 0x10
test eax, eax
jne 0x110b703
mov esi, dword [esi]
cmp dword [esi + 0x18], eax
jne 0x110b6d0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x110bb40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x110bb4e
xor eax, eax
pop ebp
ret
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x110bb4a
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x110bb4a
mov edx, dword [ebp + 8]
push esi
mov dword [edx], eax
mov esi, dword [eax + 0x3c]
add esi, eax
mov dword [edx + 4], esi
mov ecx, dword [ecx + eax + 0x78]
add ecx, eax
mov dword [edx + 8], ecx
mov eax, 1
pop esi
pop ebp
ret

Function at 0x110bb90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x110bbb4
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x110bbb4
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x110bbbc
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebp + 8]
push esi
inc edx
push edx
push eax
call fcn.0110bf90
mov ecx, dword [ebx + 0x50]
mov esi, eax
push ecx
push esi
call fcn.0110be10
mov edx, dword [ebx + 0x54]
push edx
push edi
push esi
call fcn.0110bde0
xor edx, edx
xor eax, eax
add esp, 0x1c
mov dword [ebp - 4], edx
cmp ax, word [ebx + 6]
jae 0x110bc4e
mov dword [ebp + 0xc], edx
jmp 0x110bbf9
xor edx, edx
mov ecx, dword [edi + 0x3c]
add ecx, dword [ebp + 0xc]
lea eax, [ecx + esi + 0xf8]
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jne 0x110bc10
mov dword [eax + 0x14], edx
mov edx, dword [eax + 8]
cmp ecx, edx
jbe 0x110bc26
push edx
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add edx, edi
push edx
add eax, esi
push eax
jmp 0x110bc33
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [eax + 0x14]
add ecx, edi
push ecx
add edx, esi
push edx
call fcn.0110bde0
mov eax, dword [ebp - 4]
movzx ecx, word [ebx + 6]
add dword [ebp + 0xc], 0x28
inc eax
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x110bbf7
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x110bc60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x110bc80
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x110bc80
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x110bc84
xor eax, eax
pop ebp
ret
mov eax, dword [eax + ecx + 0x2c]
add eax, ecx
pop ebp
ret

Function at 0x110bd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x110bd20
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x110bd20
mov edx, dword [eax + 0x3c]
cmp dword [eax + edx], 0x4550
je 0x110bd24
xor eax, eax
pop ebp
ret
mov eax, dword [eax + edx + 0x28]
test eax, eax
je 0x110bd20
add eax, dword [ebp + 0xc]
pop ebp
ret
Function at 0x110ca00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
cmp esi, 0x5d
jae 0x110cc3c
push ebx
push edi
push 0x773
push eax
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov word [ebp - 3], ax
mov byte [ebp - 1], al
lea eax, [ebp - 0x793]
mov cl, 0xe7
push eax
mov dword [ebp - 0x20], 0x6c6c642e
mov dword [ebp - 0x820], 0xbee14005
mov dword [ebp - 0x81c], 0xc8066c2a
mov dword [ebp - 0x818], 0xccdfc1a9
mov dword [ebp - 0x814], 0xe245063a
mov dword [ebp - 0x810], 0x3ad226d0
mov dword [ebp - 0x80c], 0x8450707
mov dword [ebp - 0x808], 0xe0c8cb23
mov dword [ebp - 0x804], 0x4337a708
mov dword [ebp - 0x800], 0x57e44962
mov dword [ebp - 0x7fc], 0xa6aa08e7
mov dword [ebp - 0x7f8], 0x6525dcb0
mov dword [ebp - 0x7f4], 0x7b08e760
mov dword [ebp - 0x7f0], 0x1eb386be
mov dword [ebp - 0x7ec], 0x8e7a01f
mov dword [ebp - 0x7e8], 0xefa2d823
mov dword [ebp - 0x7e4], 0xe7a01f26
mov dword [ebp - 0x7e0], 0xa8fc2209
mov dword [ebp - 0x7dc], 0x4f1cc7ee
mov dword [ebp - 0x7d8], 0xef094116
mov dword [ebp - 0x7d4], 0x8ca89392
mov dword [ebp - 0x7d0], 0x4157a323
mov dword [ebp - 0x7cc], 0x9f8f1d09
mov dword [ebp - 0x7c8], 0xa3269dc3
mov dword [ebp - 0x7c4], 0x74094157
mov dword [ebp - 0x7c0], 0x507d60c3
mov dword [ebp - 0x7bc], 0x41107c91
mov dword [ebp - 0x7b8], 0x6357590b
mov dword [ebp - 0x7b4], 0x1deab58a
mov dword [ebp - 0x7b0], 0xf708ac79
mov dword [ebp - 0x7ac], 0x73ade308
mov dword [ebp - 0x7a8], 0xa1651ec6
mov dword [ebp - 0x7a4], 0xca3d06e7
mov dword [ebp - 0x7a0], 0x3ad226c4
mov dword [ebp - 0x79c], 0xb2fc3308
mov dword [ebp - 0x798], 0x615506cf
mov byte [ebp - 0x794], cl
call fcn.0110be60
add esp, 0xc
lea eax, [ebp - 0x820]
test esi, esi
je 0x110cbcc
dec esi
movzx ecx, byte [eax]
lea eax, [eax + ecx + 1]
jne 0x110cbc2
lea esi, [eax + 1]
movzx eax, byte [eax]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
call fcn.010fabf0
xor eax, eax
add esp, 0xc
cmp byte [esi], al
je 0x110cbed
inc eax
cmp byte [esi + eax], 0
jne 0x110cbe6
mov ebx, dword [ebp + 8]
inc eax
push eax
push esi
push ebx
call fcn.0110bde0
add esp, 0xc
xor edi, edi
cmp byte [ebx], 0
je 0x110cc0a
inc edi
cmp byte [edi + ebx], 0
jne 0x110cc03
xor esi, esi
cmp byte [ebp - 0x20], 0
je 0x110cc1a
inc esi
cmp byte [ebp + esi - 0x20], 0
jne 0x110cc12
test esi, esi
je 0x110cc2f
push esi
lea ecx, [ebp - 0x20]
lea eax, [edi + ebx]
push ecx
push eax
call fcn.0110be30
add esp, 0xc
add esi, edi
pop edi
mov byte [esi + ebx], 0
mov eax, 1
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402f20
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40376c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b038], 0
je 0x4037d3
cmp word [0x40b324], 0xd7b2
jne 0x403795
cmp dword [0x40b32c], 0
jbe 0x403795
mov eax, 0x40b320
call dword [0x40b33c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x403800
call fcn.00403dd8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a016], 0
jne 0x4037ef
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4046ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x404851
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004039e4
cmp si, word [0x40a798]
jb 0x404784
cmp si, word [0x40a998]
ja 0x404784
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x404784
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x40a798]
jae 0x40475e
mov edi, ebx
dec edi
jmp 0x40477f
cmp si, word [ebx*8 + 0x40a798]
jbe 0x40476e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40477f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x40a79c]
call fcn.004045fc
jmp 0x404784
cmp edi, dword [ebp - 8]
jae 0x404748
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x404833
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x404833
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00403efc
push dword [ebp - 0x160]
push 0x40486c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00403efc
push dword [ebp - 0x164]
push 0x40487c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00403efc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00404084
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404858
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00403a2c
ret
Function at 0x404a04
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404b07
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40db64
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x40db7c]
jne 0x404a50
mov eax, esi
mov edx, 0x40db7e
mov ecx, 0x55
call fcn.00403efc
push 0x40db64
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x404af1
push 0x40db64
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004039e4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x404abf
cmp byte [0x40db60], 0
je 0x404a84
mov edx, esi
mov eax, ebx
call fcn.004048e8
jmp 0x404abf
mov edx, esi
mov eax, ebx
call fcn.004046ec
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x404abf
cmp dword [esi], 0
je 0x404aa8
mov eax, esi
mov edx, 0x404b20
call fcn.00403fa4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004046ec
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00403fa4
push 0x40db64
call sub.kernel32.dll_EnterCriticalSection
mov word [0x40db7c], bx
push 0xaa
mov eax, dword [esi]
call fcn.00403e68
push eax
push 0x40db7e
call sub.kernel32.dll_lstrcpynW
push 0x40db64
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b0e
lea eax, [ebp - 4]
call fcn.004039e4
ret
Function at 0x404d3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a5c
xor eax, eax
push ebp
push 0x404f61
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x404d7c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x404d96
push 0x105
mov eax, dword [ebp - 4]
call fcn.00403e68
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x404f4b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x404f70
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x404e65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x404f70
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x404e65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x404fac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x404e65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x404fac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x404e65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x404fe0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x404e65
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x405014
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x404f4b
xor eax, eax
push ebp
push 0x404f44
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00404b48
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x404ed4
mov eax, dword [ebp - 0x10]
call fcn.00402cc0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403ec0
jmp 0x404f1f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x405054
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x404f1f
mov eax, dword [ebp - 0x10]
call fcn.00402cc0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x405054
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00403ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f4b
cmp dword [ebp - 8], 0
je 0x404f3a
mov eax, dword [ebp - 8]
call fcn.00402cdc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f68
lea eax, [ebp - 4]
call fcn.004039e4
ret
Function at 0x405244
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a5c
xor eax, eax
push ebp
push 0x405304
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00403efc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403ffc
mov eax, dword [ebx]
call fcn.0040510c
test al, al
jne 0x4052e1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00403efc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403ffc
mov eax, dword [ebx]
call fcn.0040510c
test al, al
jne 0x4052e1
mov eax, ebx
call fcn.004039e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40530b
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403a2c
lea eax, [ebp - 4]
call fcn.004039e4
ret

Function at 0x405660
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x406115
test al, 0x10
je 0x406119
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4062c8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x208
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00403efc
add esp, 0x208
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403e68
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
setne al
pop ebx
ret

Function at 0x406440
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
xor eax, eax
movzx edx, word [ebx]
sub dx, 1
jb 0x406473
sub dx, 0x20
jb 0x406463
dec dx
je 0x406469
jmp 0x40646b
test al, al
je 0x406473
jmp 0x40646b
xor al, 1
add ebx, 2
jmp 0x40644d
add ebx, 2
movzx eax, word [ebx]
dec eax
sub ax, 0x20
jb 0x406470
mov eax, esi
mov edx, ebx
call fcn.00403ec0
pop esi
pop ebx
ret
Function at 0x4065e0
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x40dd00]
mov ecx, 0x40
call fcn.00402df8
mov dword [0x40dc4c], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x40dc4c
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x40660e
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x40dc4c]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.0040648c
mov esi, eax
mov dword [ebx*4 + 0x40dc4c], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.0040648c
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x40667e
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x40662e
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4066d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x40dcf8]
sub dword [ebx + 8], eax
mov eax, dword [0x40dcf4]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0040648c
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.0040648c
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40dc50]
mov edx, edi
call fcn.004064ac
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x40dc4c]
mov edx, ebp
call fcn.004064ac
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x4066ea
mov eax, dword [0x40dc50]
sub dword [ebx + 0xc], eax
mov eax, dword [0x40dc4c]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4068b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x68], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4069ae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
xor ecx, ecx
mov edx, 0xc
call fcn.00402fa8
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00402fa8
mov dword [ebp - 0x10], 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0
mov dword [ebp - 8], 0xffffffff
mov bl, 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
cmp bl, 1
cmc
sbb eax, eax
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.00403e68
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x40696e
push 0x30
push 0x4069c0
lea edx, [ebp - 0x68]
mov eax, 0x4067e4
call fcn.004055d4
mov eax, dword [ebp - 0x68]
call fcn.00403e68
push eax
push 0
call sub.user32.dll_MessageBoxW
jmp 0x406998
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069b5
lea eax, [ebp - 0x68]
call fcn.004039e4
ret

Function at 0x4069cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x40dd54
mov esi, 0x40dd4c
mov edi, 0x40dd50
mov ebp, 0x40dd68
mov eax, 0x406ae0
call fcn.0040668c
call fcn.004065e0
mov eax, dword [0x40dd40]
push eax
call sub.kernel32.dll_LockResource
mov dword [0x40dd44], eax
mov eax, dword [0x40dd3c]
push eax
mov eax, dword [0x40dc2c]
push eax
call sub.kernel32.dll_SizeofResource
xor edx, edx
mov dword [0x40dd70], eax
mov dword [0x40dd74], edx
mov eax, dword [0x40dd70]
call fcn.00402cc0
mov dword [0x40dd48], eax
mov eax, dword [0x40dd44]
mov dword [esi], eax
mov eax, dword [0x40dd48]
mov dword [edi], eax
mov dword [ebp], 0
mov dword [ebp + 4], 0
jmp 0x406a81
mov edx, ebx
mov eax, dword [esi]
mov ecx, 0x10
call fcn.00402df8
mov eax, ebx
call fcn.004066d0
mov edx, dword [edi]
mov eax, ebx
mov ecx, 0x10
call fcn.00402df8
add dword [ebp], 0x10
adc dword [ebp + 4], 0
add dword [esi], 0x10
add dword [edi], 0x10
mov eax, dword [0x40dd70]
mov edx, dword [0x40dd74]
sub eax, dword [ebp]
sbb edx, dword [ebp + 4]
cmp edx, 0
jne 0x406a9f
cmp eax, 0x10
jae 0x406a50
jmp 0x406aa1
jge 0x406a50
call fcn.004066c4
mov eax, dword [0x40dd70]
add eax, dword [0x40dd48]
dec eax
mov dword [esi], eax
mov eax, dword [esi]
movzx eax, byte [eax]
mov byte [0x40dd7c], al
xor eax, eax
mov eax, dword [0x40dd40]
push eax
call sub.kernel32.dll_FreeResource
pop ebp
pop edi
pop esi
pop ebx
ret