joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455190
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ad913
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a0b2d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a61c5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a7724
test eax, eax
je 0x4552ac
mov ecx, dword [esp + 0x3c]
call fcn.004a61f2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x455270
push edi
mov ecx, esi
call fcn.004a3857
mov ecx, esi
call fcn.00455450
cmp dword [esp + 0x38], 1
jne 0x4552a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a3992
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4574c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4574f3
push esi
call fcn.00465740
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4574ec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x457579
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457562
mov eax, dword [esi + 8]
test eax, eax
je 0x457517
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45755e
cmp eax, 2
je 0x457562
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45750a
cmp eax, 3
je 0x45753d
cmp eax, 1
jne 0x45750a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45750a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45750a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004575a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x457588
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004575a0
add esp, 4
pop esi
ret

Function at 0x457e10
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x457e31
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x457e31
mov eax, dword [eax + 0x44]
test eax, eax
je 0x457e31
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x472530
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4725d3
test eax, eax
jbe 0x4725d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4725d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x47257e
xor esi, esi
jmp 0x472584
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4725af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00414870
add esi, eax
push esi
mov ebx, esi
call fcn.00414870
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x472590
pop ebp
test edi, edi
pop edi
jne 0x4725d3
test ebx, ebx
je 0x4725d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048f8e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4726f5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47280d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47280d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a0f7f
mov esi, eax
test esi, esi
je 0x47280d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47280d
mov ecx, esi
call fcn.00472680
cmp edi, eax
jge 0x47280d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x472793
mov dword [esp + 0x34], 1
jmp 0x4727ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47280d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00471c80
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4796c0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x584474]
xor edx, edx
cmp eax, edx
jne 0x4796e6
xor eax, eax
mov byte [eax + 0x584374], al
inc eax
cmp eax, 0x100
jl 0x4796ce
mov dword [0x584474], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x584374
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x479777
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47974a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x479718
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4797f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x479843
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47982a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4801d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ae01e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00480af0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x52f3f4
call fcn.0049f295
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x480263
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049f295
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x48025c
push 0
mov ecx, eax
call fcn.00477300
mov dword [esi + 0xc], eax
jmp 0x480265
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x480265
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4a1922
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a195a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049f9af
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049f987
jmp 0x4a1966
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a3014
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a3056
call fcn.004a8b14
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a3056
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a304d
xor eax, eax
jmp 0x4a305e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a3064
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a9044
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 0x4a9072
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a9090
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a8faa
jmp 0x4a9090
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9090
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a8faa
test edi, edi
mov eax, edi
jne 0x4a907a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10044eec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x10044efb
pop dword [ebp - 0x10]
mov eax, 0x5d3f74a6
add eax, 0xb2c4da55
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xbd4b63d3
sub dword [ebp - 0x20], 0x6ef91e88
mov dword [ebp - 0x1c], 0xc598029e
add dword [ebp - 0x1c], 0x6c9b49a7
mov dword [ebp - 0x18], 0x1ec43979
add dword [ebp - 0x18], 0x2d880ab5
mov dword [ebp - 0x14], 0xf1267565
add dword [ebp - 0x14], 0xed98a9b
lea eax, [ebp - 0x20]
push eax
mov eax, 0xebfc8123
sub eax, 0xdbfc6e9b
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0xb3fc39ce
add dword [ebp - 0x20], 0xc0762f88
mov dword [ebp - 0x1c], 0x616953ce
sub dword [ebp - 0x1c], 0x1ffcf259
mov dword [ebp - 0x18], 0x2b364fd2
add dword [ebp - 0x18], 0x38391c9a
mov dword [ebp - 0x14], 0x920625a3
add dword [ebp - 0x14], 0x6df9da5d
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x4c6ca
push 0
call eax
mov ecx, 0x52c1
xor edi, edi
add edi, eax
mov esi, 0x100d2400
add esi, dword [ebp - 0x10]
mov ebx, 0xc900fd35
mov dword [ebp - 4], 0xa201a2c1
mov edx, dword [esi]
add dword [ebp - 0xc], edi
add edx, ebx
xor dword [ebp - 8], eax
mov dword [edi], edx
add dword [ebp - 4], 0x5f43fee5
add edi, 0x5a1c711
sub edi, 0x5a1c70d
add esi, 0x2135dfe
sub esi, 0x2135dfa
loop 0x10045008
add eax, 0x5c26e8cc
sub eax, 0x5c25aaf5
mov ebx, eax
add eax, 0xd9b1b62b
sub eax, 0xd9b1b626
mov ecx, 0xea242696
sub ecx, 0xda242696
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x10045462
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10099c08]
jne 0x10046509
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1009c280], eax
mov dword [0x1009c27c], ecx
mov dword [0x1009c278], edx
mov dword [0x1009c274], ebx
mov dword [0x1009c270], esi
mov dword [0x1009c26c], edi
mov word [0x1009c298], ss
mov word [0x1009c28c], cs
mov word [0x1009c268], ds
mov word [0x1009c264], es
mov word [0x1009c260], fs
mov word [0x1009c25c], gs
pushfd
pop dword [0x1009c290]
mov eax, dword [ebp]
mov dword [0x1009c284], eax
mov eax, dword [ebp + 4]
mov dword [0x1009c288], eax
lea eax, [ebp + 8]
mov dword [0x1009c294], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1009c1d0], 0x10001
mov eax, dword [0x1009c288]
mov dword [0x1009c184], eax
mov dword [0x1009c178], 0xc0000409
mov dword [0x1009c17c], 1
mov eax, dword [0x10099c08]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10099c0c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1009c1c8], eax
push 1
call fcn.1004d289
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10010f4c
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1009c1c8], 0
jne 0x100465f5
push 1
call fcn.1004d289
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x5b7644
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.005b77f4
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x5b7742
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x5b76e5
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x5b7728
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x5b76fc
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5b7717
test al, 0x40
je 0x5b770e
mov ecx, dword [edi + 0x20]
jmp 0x5b7715
test al, 0x80
je 0x5b7728
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x5b7728
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x5b76b4
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x424bfc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004248ad

Function at 0x424c07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424a37
Function at 0x4014be
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x128
mov esi, eax
lea eax, [ebp - 0x10]
mov ebx, edx
push eax
mov eax, dword [0x424c68]
or eax, 8
mov dword [ebp - 0x120], ecx
push eax
push 0
push edx
push esi
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x401589
jmp 0x401527
cmp dword [ebp - 0x120], 0
je 0x401515
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, 1
add esp, 0xc
jmp 0x401589
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, edi
call fcn.004014be
test eax, eax
jne 0x401541
jmp 0x40152d
lea edi, [ebp - 0x115]
push 0x105
push edi
push 0
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegEnumKeyA
test eax, eax
je 0x4014f7
sub esp, 0xc
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
push 2
call fcn.004060ef
add esp, 0xc
test eax, eax
je 0x401568
push 0
push dword [0x424c68]
push ebx
push esi
call eax
jmp 0x401589
mov eax, 1
cmp dword [0x424c68], 0
jne 0x401589
push edi
push edi
push ebx
push esi
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
pop ebx
setne al
pop esi
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40312c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0
push eax
push ebx
push dword [ebp + 8]
push dword [0x40900c]
call sub.KERNEL32.dll_ReadFile
xor edx, edx
add esp, 0xc
test eax, eax
je 0x40315c
xor edx, edx
cmp dword [ebp - 8], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8

Function at 0x403232
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
sub ebx, dword [0x414c70]
mov edi, eax
add ebx, dword [0x414c80]
call sub.KERNEL32.dll_GetTickCount
add eax, 0x1f4
test ebx, ebx
mov dword [0x424ce8], eax
jle 0x4033bf
sub esp, 0xc
push dword [0x414c90]
call fcn.00403110
add esp, 0xc
push 0
push 0
push dword [0x414c70]
push dword [0x409010]
call sub.KERNEL32.dll_SetFilePointer
mov dword [0x414cb0], ebx
mov dword [0x414cc0], 0
mov esi, dword [0x414ca0]
sub esi, dword [0x414c90]
cmp esi, 0x4000
jle 0x4032b1
mov esi, 0x4000
push eax
push eax
push esi
push 0x414d60
call fcn.0040312c
pop ecx
test eax, eax
pop ebx
jne 0x4032cc
or eax, 0xffffffff
jmp 0x4033dc
add dword [0x414c90], esi
mov dword [0x414ce8], 0x414d60
mov dword [0x414cec], esi
cmp dword [0x424c98], 0
je 0x40331b
cmp dword [0x424c58], 0
jne 0x40331b
mov edx, edi
sub esp, 0xc
sub edx, dword [0x414c70]
mov eax, dword [0x414cb0]
add edx, dword [0x414c80]
push 0
sub eax, edx
mov dword [0x414cc0], eax
call fcn.00403187
add esp, 0x10
mov ecx, 0x414cd0
mov dword [0x414cf0], 0x418d60
mov dword [0x414cf4], 0x8000
call fcn.00406e8d
test eax, eax
js 0x4033d0
mov eax, dword [0x414cf0]
mov ebx, eax
sub ebx, 0x418d60
je 0x40338a
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push 0x418d60
push dword [0x409010]
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x4033d7
cmp ebx, dword [ebp - 0x10]
jne 0x4033d7
add dword [0x414c70], ebx
cmp dword [0x414cec], 0
je 0x403397
jmp 0x4032e2
cmp dword [0x414cec], 0
jne 0x4033d0
test esi, esi
je 0x4033d0
mov edx, dword [0x414c80]
mov eax, edx
sub eax, dword [0x414c70]
add eax, edi
test eax, eax
jg 0x403298
push 0
push 0
push edx
push dword [0x409010]
call sub.KERNEL32.dll_SetFilePointer
sub esp, 0xc
push 1
call fcn.00403187
xor eax, eax
add esp, 0x10
jmp 0x4033dc
mov eax, 0xfffffffd
jmp 0x4033dc
mov eax, 0xfffffffe
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4033e4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
test eax, eax
js 0x403412
add eax, dword [0x424ce0]
push 0
push 0
push eax
push dword [0x409010]
mov dword [0x414c80], eax
call sub.KERNEL32.dll_SetFilePointer
mov eax, 4
call fcn.00403232
mov ebx, eax
test eax, eax
js 0x403524
sub esp, 0xc
lea eax, [ebp - 0x14]
lea esi, [ebp - 0x10]
push 0
push esi
push 4
push eax
push dword [0x409010]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403518
cmp dword [ebp - 0x10], 4
jne 0x403518
mov eax, dword [ebp - 0x14]
add dword [0x414c80], 4
call fcn.00403232
mov ebx, eax
test eax, eax
js 0x403524
test edi, edi
je 0x4034d8
jmp 0x4034e4
mov esi, eax
cmp eax, 0x4000
jle 0x403482
mov esi, 0x4000
sub esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push esi
push 0x414d60
push dword [0x409010]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403518
cmp esi, dword [ebp - 0x10]
jne 0x403518
sub esp, 0xc
push 0
push edi
push esi
push 0x414d60
push dword [ebp + 0xc]
call sub.KERNEL32.dll_WriteFile
add esp, 0xc
test eax, eax
je 0x40351f
cmp dword [ebp - 0x18], esi
jne 0x40351f
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0x14], eax
add ebx, eax
add dword [0x414c80], eax
jmp 0x4034db
lea edi, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test eax, eax
jg 0x403474
jmp 0x403524
sub esp, 0xc
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x14]
push 0
push eax
mov eax, dword [ebp + 0x14]
cmp eax, edx
jle 0x4034f9
mov eax, edx
push eax
push edi
push dword [0x409010]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
je 0x403518
mov ebx, dword [ebp - 0x10]
add dword [0x414c80], ebx
jmp 0x403524
mov ebx, 0xfffffffd
jmp 0x403524
mov ebx, 0xfffffffe
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
Function at 0x403930
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x42e400
call fcn.00406206
push 0x42e400
call fcn.00405fbc
xor edx, edx
add esp, 0xc
test eax, eax
je 0x403983
sub esp, 0xc
push 0x42e400
call fcn.00406303
sub esp, 0xc
push 0
push 0x42e400
call sub.KERNEL32.dll_CreateDirectoryA
push 0x42e400
push 0x42e000
call fcn.004066b2
mov edx, eax
add esp, 0x18
mov eax, edx
leave
ret
Function at 0x406377
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 0x14]
lea edx, [ebp - 8]
mov byte [ebx], 0
push edx
cmp dword [ebp + 0x18], 1
sbb eax, eax
xor al, al
add eax, 0x20119
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
add esp, 0xc
test eax, eax
jne 0x4063f0
push eax
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegQueryValueExA
pop edx
test eax, eax
pop ecx
jne 0x4063d8
mov eax, dword [ebp - 0x10]
dec eax
cmp eax, 1
jbe 0x4063db
mov byte [ebx], 0
mov byte [ebx + 0x3ff], 0
sub esp, 0xc
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret 0x14