joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406430
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x406496
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404748
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040301c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406480
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40649d
lea eax, [ebp - 0x10]
call fcn.004044d8
ret

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

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

Function at 0x40b2c0
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 0x40b2f9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004045c8
jmp 0x40b302
mov eax, ebx
mov edx, esi
call fcn.0040452c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b30c
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 0x40b32d
mov al, byte [esp]
jmp 0x40b32f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c8d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c938
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404748
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408128
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c93f
lea eax, [ebp - 0xc]
call fcn.004044d8
ret

Function at 0x41c5ec
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041c444
dec esi
jne 0x41c60e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x42a43c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x42a444
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x42a636
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x42a64c
mov eax, esi
call fcn.00427f34
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.0040452c
lea ecx, [ebp - 0x10]
mov edx, 0x42a660
mov eax, esi
call fcn.00427f34
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.0040452c
lea ecx, [ebp - 0x14]
mov edx, 0x42a678
mov eax, esi
call fcn.00427f34
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.0040452c
lea ecx, [ebp - 0x18]
mov edx, 0x42a694
mov eax, esi
call fcn.00427f34
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.0040452c
lea ecx, [ebp - 0x1c]
mov edx, 0x42a6b0
mov eax, esi
call fcn.00427f34
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.0040452c
lea ecx, [ebp - 0x24]
mov edx, 0x42a6c8
mov eax, esi
call fcn.00427f34
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00407d18
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00408128
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x42a6e0
mov eax, esi
call fcn.00427f34
mov eax, dword [ebp - 0x28]
call fcn.00427030
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x42a6f0
mov eax, esi
call fcn.00427f34
mov eax, dword [ebp - 0x2c]
call fcn.00427030
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x42a708
mov eax, esi
call fcn.00427f34
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00408128
inc eax
je 0x42a5d9
lea ecx, [ebp - 0x34]
mov edx, 0x42a708
mov eax, esi
call fcn.00427f34
mov eax, dword [ebp - 0x34]
call fcn.004080ec
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.004099c4
fstp qword [ebp - 0x3c]
wait
call fcn.00409d28
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x42a5f4
lea ecx, [ebp - 0x40]
mov edx, 0x42a708
mov eax, esi
call fcn.00427f34
mov eax, dword [ebp - 0x40]
call fcn.00427030
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x42a718
mov eax, esi
call fcn.00427f34
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.0040452c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a63d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004044fc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004044fc
ret
Function at 0x437054
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4370ae
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00437044
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.00425a14
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00425614
mov edx, dword [esi + 0xc]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4370b5
lea eax, [ebp - 4]
call fcn.004044d8
ret

Function at 0x43c314
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x44ba88]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x43c350
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x43c368
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x43c361
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402fe0
xor edx, edx
mov eax, 0x44bc88
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x43c3d2
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x43c386
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x43c610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x43c629
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x43c622
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x43c63b
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x43c634
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0043c204
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x43c655
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0043c314
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x43c6da
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x43c6f7
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0043c294
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x43c720
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43c738
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x43c751
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x43c74a
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x43c765
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c0fc
test bl, bl
jne 0x43c838
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x524c58
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x43c79c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x43c7b0
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c610
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x43c7e2
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x43c791
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x43c805
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x43c816
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x43c82a
jmp 0x43c8f3
cmp bl, 1
jne 0x43c8f3
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x524cb2
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x43c858
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x43c86c
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c610
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x43c89e
sub ebx, 6
inc dword [ebp - 8]
jne 0x43c84d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x43c8c5
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x43c8d6
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x43c8ea
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0043c180
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x43ce48
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x43cf43
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea edx, [ebp - 8]
mov eax, 0x43cf5c
call fcn.0043cf64
lea eax, [ebp - 8]
mov edx, edi
call fcn.004047a0
mov eax, dword [ebp - 8]
call fcn.00404998
mov esi, eax
xor edx, edx
push ebp
push 0x43cf23
push dword fs:[edx]
mov dword fs:[edx], esp
push esi
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenMutexA
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x43cec2
mov byte [ebp - 1], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43cf2d
mov eax, edi
call fcn.00404998
push eax
push 0xffffffffffffffff
push 1
call sub.kernel32.dll_OpenMutexA
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x43cef2
mov byte [ebp - 1], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43cf2d
push esi
push 0xffffffffffffffff
push 0
call fcn.004067a4
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
cmp eax, 0xb7
je 0x43cf0f
cmp eax, 5
jne 0x43cf19
mov byte [ebp - 1], 1
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43cf2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cf4a
lea eax, [ebp - 8]
call fcn.004044d8
ret

Function at 0x43cf64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43cfde
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004044d8
mov eax, dword [ebp - 4]
call fcn.00404798
mov esi, eax
test esi, esi
jle 0x43cfc8
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov bl, byte [eax + edx - 1]
xor bl, 0xa
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004046c0
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.004047a0
inc dword [ebp - 8]
dec esi
jne 0x43cfa1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cfe5
lea eax, [ebp - 0xc]
call fcn.004044d8
ret

Function at 0x43d0bc
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43d12f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004044d8
mov dword [ebp - 8], 0x1e
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404b24
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404998
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x43d119
push ebx
mov ecx, dword [ebp - 8]
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004049f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d136
lea eax, [ebp - 4]
call fcn.004044d8
ret
Function at 0x43d13c
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd50
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044d8
xor ecx, ecx
push ebp
push 0x43d219
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push pe_nt_image_headers32
lea eax, [ebp - 0x290]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x290]
mov edx, esi
call fcn.00408718
lea eax, [ebp - 0x290]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43d20a
mov edx, dword [eax + 0xc]
test edx, edx
je 0x43d20a
mov esi, dword [edx]
test esi, esi
je 0x43d20a
push ebx
xor eax, eax
mov al, byte [esi]
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 0x2ac], 0
xor eax, eax
mov al, byte [esi + 1]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x2a4], 0
xor eax, eax
mov al, byte [esi + 2]
mov dword [ebp - 0x2a0], eax
mov byte [ebp - 0x29c], 0
xor eax, eax
mov al, byte [esi + 3]
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x294], 0
lea edx, [ebp - 0x2b0]
mov ecx, 3
mov eax, 0x43d234
call fcn.00408c8c
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43d223
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43d404
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd6c
push ebx
push esi
push edi
mov ebx, eax
mov edx, ebx
mov eax, 0x43d4a4
call fcn.0043cf64
xor edx, edx
push ebp
push 0x43d488
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x43d479
push pe_nt_image_headers32
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x294]
push eax
call sub.wsock32.dll_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.004046d0
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43d492
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43de74
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43df6e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
call fcn.00404798
cmp eax, 2
jl 0x43df53
mov eax, ebx
call fcn.004084fc
test al, al
je 0x43df53
lea ecx, [ebp - 8]
mov edx, 0x43df88
mov eax, ebx
call fcn.0043ddec
xor eax, eax
push ebp
push 0x43df49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 8]
call fcn.00404998
mov esi, eax
push esi
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43df3f
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.004085a4
mov eax, dword [ebp - 0xc]
call fcn.00404798
mov edi, eax
inc edi
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0xc]
call fcn.004049f0
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43df53
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43df75
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004044fc
ret

Function at 0x43e098
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x43e16e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
call fcn.00404798
cmp eax, 2
jl 0x43e158
xor eax, eax
push ebp
push 0x43e14e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov eax, ebx
call fcn.00404998
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x43e144
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004085a4
mov eax, dword [ebp - 8]
call fcn.00404798
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
call fcn.004049f0
push eax
push esi
call sub.kernel32.dll_WriteFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
call fcn.00404998
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e158
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43e175
lea eax, [ebp - 8]
call fcn.004044d8
ret

Function at 0x43e27c
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov eax, ebx
call fcn.004044d8
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x43e2aa
mov edx, ebx
lea eax, [esp + 4]
call fcn.004087e8
add esp, 0x18
pop ebx
ret
Function at 0x43e3b0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x42c], edx
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x14]
xor eax, eax
push ebp
push 0x43e676
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004044d8
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push 0x43e684
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e64b
xor ebx, ebx
lea eax, [ebp - 0x420]
mov edx, 0x400
call fcn.00406a60
mov dword [edi], 0x400
push 0
push 0
push 0
push 0
push edi
lea eax, [ebp - 0x420]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x43e642
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x428]
lea edx, [ebp - 0x420]
mov ecx, 0x400
call fcn.00404748
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x424]
mov edx, 0x43e6c8
call fcn.004047e4
mov eax, dword [ebp - 0x424]
call fcn.00404998
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43e41c
lea eax, [ebp - 0x420]
mov edx, 0x400
call fcn.00406a60
mov dword [edi], 0x400
push edi
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x43e704
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43e633
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x420]
mov ecx, 0x400
call fcn.00404748
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x42c]
mov ecx, dword [ebp - 0x1c]
mov edx, 0x43e718
call fcn.004047e4
mov eax, dword [ebp - 0x42c]
call fcn.00404998
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x43e633
mov dword [ebp - 0x18], 0x10114
push 0
push edi
push 4
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x170002
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x43e62d
cmp dword [ebp - 0x10], 0
jne 0x43e62d
lea eax, [ebp - 0x420]
mov edx, 0x400
call fcn.00406a60
mov dword [edi], 0x400
mov dword [ebp - 0x18], 0x1010101
push 0
push edi
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x420]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x170002
push esi
call sub.kernel32.dll_DeviceIoControl
test eax, eax
je 0x43e62d
lea eax, [ebp - 0x20]
call fcn.004044d8
mov ebx, dword [edi]
dec ebx
test ebx, ebx
jl 0x43e600
inc ebx
xor edi, edi
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
inc ebx
jmp 0x43e41c