joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc33c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bc4e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4bc4c8
mov dl, 1
mov eax, dword [0x434f28]
call fcn.00441620
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.0040692c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4bc4b7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00483a78
test al, al
je 0x4bc4aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4bc4f8
lea eax, [ebp - 0x394]
call fcn.0041d32c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4bc4aa
xor eax, eax
push ebp
push 0x4bc4a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4bc568
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4bc48c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407348
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4bc48c
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407348
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc4aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4bc3ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0044155c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc4ee
lea eax, [ebp - 0x3a0]
call fcn.0040692c
ret

Function at 0x4bd044
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4fb28c]
cmp byte [eax + 0xad], 0
jne 0x4bd0b6
cmp dword [0x4fb2a4], 0
jne 0x4bd076
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4f5054]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4fb2a4], eax
cmp dword [0x4fb2a0], 0
jne 0x4bd091
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4fb2a0], eax
cmp dword [0x4fb2a8], 0
jne 0x4bd0b6
push esp
push 0
push 0
mov eax, dword [0x4f5050]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4fb2a8], eax
pop edx
ret
Function at 0x4bd3cc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4bd3e3
add esp, 0xfffffff0
call fcn.004053f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00449eb0
mov eax, dword [0x4f5490]
cmp byte [eax], 0
jne 0x4bd410
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4f585c]
cmp word [eax + 2], 0
jne 0x4bd42a
mov eax, dword [0x4f585c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bf494
mov eax, dword [0x4f59b4]
cmp word [eax + 2], 0
jne 0x4bd444
mov eax, dword [0x4f59b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004bf698
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x451278]
call fcn.004577dc
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4bfc10
mov dl, 1
mov eax, dword [0x432614]
call fcn.00404e90
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x432614]
call fcn.00404e90
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x455974]
call fcn.00460c94
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4bd624
mov eax, dword [0x4f56cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00461128
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4bfef8
mov dl, 1
mov eax, dword [0x432614]
call fcn.00404e90
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4f56cc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041d154
test eax, eax
je 0x4bd555
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041cf08
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041d138
test eax, eax
je 0x4bd56d
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407348
push ebx
push 0x4bee80
call fcn.004b31dc
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4f5490]
cmp byte [eax], 0
jne 0x4bd5be
mov eax, ebx
call fcn.004bd798
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004c0124
mov eax, ebx
call fcn.004c0d54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4bd61b
call fcn.00405448
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bda64
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4bdb06
cmp dword [ebx + 0x94], 0
jne 0x4bdb00
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4bd9b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4bdb00
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4bdac6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4bdb00
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0043dab8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4bdad5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4bdd24
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4fb28c]
cmp dword [eax + 0x170], 0
je 0x4bde89
test bl, bl
jne 0x4bddd7
cmp dword [esi + 0x9c], 0
jne 0x4bddcc
mov eax, esi
call fcn.004c0ba4
push eax
push 0x4bdc30
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4bdd9d
mov eax, dword [0x4fb28c]
cmp byte [eax + 0xd3], 0
je 0x4bdd9d
mov eax, dword [esi + 0xd8]
call fcn.004082a0
mov edi, eax
cmp edi, 0
jl 0x4bdd9d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4bdd86
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4bddcc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043dab8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4bddac
inc dword [esi + 0x9c]
jmp 0x4bde89
cmp dword [esi + 0x9c], 0
jle 0x4bde89
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4bde89
cmp dword [esi + 0x44], 0
je 0x4bde34
mov eax, dword [0x4fb28c]
cmp byte [eax + 0xd3], 0
je 0x4bde34
mov eax, dword [esi + 0xd8]
call fcn.004082a0
mov edi, eax
cmp edi, 0
jl 0x4bde34
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4bde1d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4bde63
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043dab8
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4bde43
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b10b4]
call fcn.00408460
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4beacc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4beb37
cmp byte [ebx + 0xd3], 0
jne 0x4beb37
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406a94
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4beb24
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4beb44
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406cec
jmp 0x4beb44
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406cec
invalid
hlt
invalid
add esp, 0x204
pop esi
pop ebx

Function at 0x4c030c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c037a
mov eax, esi
call fcn.0047da24
test al, al
je 0x4c037a
mov eax, dword [ebx + 0x84]
call fcn.0047d678
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c037a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c036e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047d678
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004745f4
jmp 0x4c037a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c0144
pop esi
pop ebx
ret
Function at 0x4d233c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4d2464
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004d2228
mov eax, dword [esi]
call fcn.00408298
add eax, 0x28
push eax
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416074]
call fcn.00408460
add esp, 4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov ecx, 0x1c
call fcn.00404550
mov ebx, 0x1c
mov eax, dword [ebp - 4]
lea edx, [eax + ebx]
lea eax, [ebp - 0x2c]
mov ecx, 0x1c
call fcn.00404550
add ebx, 0x1c
mov eax, dword [esi]
call fcn.00408298
mov dword [ebp - 0xc], eax
mov eax, dword [0x4f5b04]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [ebp - 4]
mov ecx, ebx
call fcn.004c2618
add ebx, 4
mov eax, dword [ebp - 4]
add eax, ebx
xor ecx, ecx
mov edx, 3
call fcn.004048a4
add ebx, 3
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0x3a
inc ebx
mov eax, dword [esi]
mov byte [eax + 2], 0
mov eax, dword [esi]
mov byte [eax + 3], 0
push ebx
mov eax, dword [esi]
call fcn.00408298
push eax
lea ecx, [ebp - 4]
mov eax, dword [esi]
xor edx, edx
call fcn.004c2508
mov edx, dword [ebp - 4]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x94]
mov ebx, eax
mov eax, ebx
call fcn.004c2420
mov edx, esi
mov ecx, dword [ebp + 0x10]
call fcn.004c2610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d246b
lea eax, [ebp - 4]
mov edx, dword [0x416074]
call fcn.0040846c
ret
Function at 0x4070c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x464f5b
mov eax, dword fs:[0]
push eax
mov eax, 0x1014
call fcn.0043afd0
mov eax, dword [0x47e768]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47e768]
xor eax, esp
push eax
lea eax, [esp + 0x1028]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x13c]
push 0x46fa40
xor ebx, ebx
mov eax, ebp
call fcn.00402c20
lea eax, [esi + 0x138]
push 0x46fa40
mov dword [esp + 0x24], eax
call fcn.00402c20
mov eax, dword [0x480978]
mov edx, dword [eax + 0xc]
mov ecx, 0x480978
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
push 0x800
lea eax, [esp + 0x28]
push ebx
push eax
mov dword [esp + 0x103c], ebx
call fcn.0043a5e0
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x130]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [esi + 0xfc]
push ecx
mov ebx, 1
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0x800
call dword [0x467368]
test eax, eax
je 0x4071c6
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4072b1
cmp dword [esp + 0x18], ebx
jne 0x407198
cmp word [esp + 0x24], 0
je 0x407198
mov ebx, dword [0x467394]
lea ecx, [esp + 0x24]
push ecx
call ebx
test eax, eax
jne 0x407202
lea eax, [edi - 0x10]
mov dword [esp + 0x1030], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4071b3
lea edx, [esp + 0x24]
lea edi, [esp + 0x14]
call fcn.00402b60
mov ecx, dword [esi + 0x11c]
mov edi, dword [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [0x467398]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x40725c
mov ecx, dword [esi + 0x118]
push ecx
push edi
lea edx, [esp + 0x2c]
push edx
call dword [0x467398]
lea eax, [esp + 0x24]
push eax
call ebx
test eax, eax
jne 0x40725c
lea ecx, [esp + 0x14]
call fcn.00402b40
xor eax, eax
jmp 0x4072b1
push 0x800
lea ecx, [esp + 0x828]
push 0
push ecx
call fcn.0043a5e0
add esp, 0xc
mov ecx, 0x400
lea edi, [esp + 0x824]
lea esi, [esp + 0x24]
call fcn.0040d340
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x14]
call fcn.00402bc0
lea edx, [esp + 0x824]
mov edi, ebp
call fcn.00402b60
lea ecx, [esp + 0x14]
call fcn.00402b40
mov eax, 1
mov ecx, dword [esp + 0x1028]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.0043a5cc
add esp, 0x1020
ret
Function at 0x413e00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x47e768]
xor eax, esp
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push esi
mov dword [edi + 0xc], eax
cmp ecx, eax
jne 0x413e36
pop esi
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.0043a5cc
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
push ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00414870
add esp, 4
mov eax, esi
call fcn.00414980
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x74]
pop esi
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
xor ecx, esp
mov eax, 1
call fcn.0043a5cc
mov esp, ebp
pop ebp
ret
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x431005
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..3ean
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x616011b3
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..7LWLf
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44011c5f
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x100010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x100010de
mov eax, dword [0x1000f08b]
shl eax, 2
mov dword [0x1000f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.100058d4
pop edx
call fcn.10004c70
call fcn.100058d8
push 0
call fcn.10006bc4
pop ecx
push 0x1000f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x1000f093], eax
push 0
jmp fcn.1000a998

Function at 0x10001430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x1004f37c]
mov edx, dword [0x1004f384]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1004f380]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x1004f388]
mov dword [0x1005367c], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001574
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x100014df
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x10001576
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.10005d8c
add esp, 0xc
test eax, eax
je 0x100014f9
xor eax, eax
jmp 0x10001576
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x10001522
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x10001576
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x1004f378], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x1004f378]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x1000156d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x10001576
mov eax, 1
jmp 0x10001576
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
mov ax, word [0x1004f38c]
lea edx, [ebp - 0x210]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov word [ebp - 6], ax
push 0x208
push edx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x2e
lea ecx, [ebp - 0x210]
push ecx
call fcn.10005d85
add esp, 8
mov byte [eax], 0
push str._useid_
lea eax, [ebp - 0x210]
push eax
call fcn.10005c78
add esp, 8
push esi
lea edx, [ebp - 0x210]
push edx
call fcn.10005c78
add esp, 8
push str..txt
lea ecx, [ebp - 0x210]
push ecx
call fcn.10005c78
add esp, 8
lea eax, [ebp - 0x210]
push 0
push 0
push 2
push 0
push 3
push 0x40000000
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000168d
push 0
lea eax, [ebp - 4]
push eax
push 0x1004f483
call sub.KERNEL32.DLL_lstrlenA
push eax
push 0x1004f47a
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call sub.KERNEL32.DLL_lstrlenA
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
lea ecx, [ebp - 4]
push 0
push ecx
lea eax, [ebp - 6]
push 2
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_lstrlenA
push eax
mov eax, dword [ebp + 8]
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
lea edx, [ebp - 4]
push 0
push edx
lea ecx, [ebp - 6]
Function at 0x100034ec
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x10003520
mov edx, dword [eax + 8]
test edx, edx
jne 0x1000350f
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x1000351c
add edx, esi
cmp ebx, edx
jb 0x1000352d
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x10003505
xor eax, eax
pop esi
pop ebx
pop ebp
ret