joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439356
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 3
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x118], 0
jmp 0x439395
mov eax, dword [ebp - 0x118]
add eax, 1
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x10]
jae 0x4394aa
cmp dword [ebp - 0x118], 3
jge 0x4394aa
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x11c], 0
jmp 0x4393d3
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x10c]
jae 0x4393f7
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + ecx*4 - 0x108]
cmp edx, dword [ebp + 8]
jne 0x4393f5
jmp 0x4393f7
jmp 0x4393c4
mov eax, dword [ebp - 0x11c]
cmp eax, dword [ebp - 0x10c]
jne 0x43942d
cmp dword [ebp - 0x10c], 0x40
jae 0x43942d
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x108], edx
mov eax, dword [ebp - 0x10c]
add eax, 1
mov dword [ebp - 0x10c], eax
xor ecx, ecx
test ecx, ecx
jne 0x4393b8
lea edx, [ebp - 0x114]
push edx
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_select]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43945d
jmp 0x439386
cmp dword [ebp - 8], 0xffffffff
jne 0x439465
jmp 0x4394aa
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x4394a5
push 0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4394a5
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x439386
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x439ed0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x439ee9
cmp dword [ebp + 8], 4
jne 0x439eed
xor eax, eax
jmp 0x439f20
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x439f1d
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x439f26
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x230], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x43a0a2
mov dword [ebp - 0x23c], 0
cmp dword [ebp + 0xc], 0
je 0x439ff6
mov edx, dword [ebp - 0x228]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x439ff4
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
mov ecx, dword [ebp - 0x240]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jbe 0x439fe7
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402b10
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43a014
lea edx, [ebp - 0x20c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00402b10
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x43a084
mov ecx, dword [ebp - 0x228]
push ecx
call fcn.00439ed0
test eax, eax
jne 0x43a039
mov dword [ebp - 0x238], 0
jmp 0x43a0a2
mov dword [ebp - 0x244], 0
jmp 0x43a054
mov edx, dword [ebp - 0x244]
add edx, 1
mov dword [ebp - 0x244], edx
cmp dword [ebp - 0x244], 0x32
jae 0x43a082
mov eax, dword [ebp + 8]
push eax
call dword [0x542978]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
je 0x43a078
jmp 0x43a082
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43a045
jmp 0x43a0a2
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 0x234]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x108], eax
jmp 0x439f6b
cmp dword [ebp - 0x234], 0
je 0x43a0c2
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x234], 0
mov eax, dword [ebp - 0x238]
mov esp, ebp
pop ebp
ret
Function at 0x43a0cc
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov eax, dword [0x4e0cec]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x4e0cf0]
mov dword [ebp - 0x104], ecx
mov dx, word [0x4e0cf4]
mov word [ebp - 0x100], dx
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0xfe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43a169
lea ecx, [ebp - 0x114]
push ecx
push 4
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x43a169
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0043adb0
add esp, 0xc
test eax, eax
jne 0x43a1a1
mov eax, dword [ebp + 8]
push eax
call fcn.00439ed0
test eax, eax
je 0x43a1a1
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x43a1b6
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
mov eax, dword [str._unknown_]
mov dword [ebp - 0x110], eax
mov ecx, dword [0x4e0cfc]
mov dword [ebp - 0x10c], ecx
mov dx, word [0x4e0d00]
mov word [ebp - 0x108], dx
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x106]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x43a253
lea ecx, [ebp - 0x11c]
push ecx
push 4
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x43a253
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [ebp - 0x110]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push edx
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x43a2ba
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax - 0x110]
sub ecx, dword [ebp - 0xc]
push ecx
call fcn.0043adb0
add esp, 0xc
test eax, eax
jne 0x43a2ba
mov edx, dword [ebp + 8]
push edx
call fcn.00439ed0
test eax, eax
je 0x43a2ba
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43a2cf
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x43a306
xor eax, eax
jmp 0x43a37e
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x43a330
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x43a378
mov edx, dword [ebp - 0x1008]
cmp dword [ebp + edx*4 - 0x1000], 0
je 0x43a376
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp + ecx*4 - 0x1000]
push edx
call fcn.0043a0cc
add esp, 8
mov ecx, dword [ebp - 0x100c]
add ecx, eax
mov dword [ebp - 0x100c], ecx
jmp 0x43a321
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret

Function at 0x43a382
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x43a3b9
xor eax, eax
jmp 0x43a431
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x43a3e3
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x43a42b
mov edx, dword [ebp - 0x1008]
cmp dword [ebp + edx*4 - 0x1000], 0
je 0x43a429
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp + ecx*4 - 0x1000]
push edx
call fcn.0043a1b6
add esp, 8
mov ecx, dword [ebp - 0x100c]
add ecx, eax
mov dword [ebp - 0x100c], ecx
jmp 0x43a3d4
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret
Function at 0x43a435
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1330
call sub.ntdll.dll__chkstk
push edi
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43a472
mov eax, dword [ebp - 0x1014]
jmp 0x43a658
lea ecx, [ebp - 4]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x43a642
mov dword [ebp - 0xc], 0
jmp 0x43a4a5
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
shr edx, 2
cmp dword [ebp - 0xc], edx
jae 0x43a642
push 0x104
lea eax, [ebp - 0x1118]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x1010]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x43a63d
mov byte [ebp - 0x1328], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1327]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1224], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x1118]
push ecx
push 0x104
lea edx, [ebp - 0x1328]
push edx
call fcn.004154e0
mov dword [ebp - 0x1330], 0x5c
mov eax, dword [ebp - 0x1330]
push eax
lea ecx, [ebp - 0x1328]
push ecx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x132c], eax
cmp dword [ebp - 0x132c], 0
je 0x43a5a0
mov edx, dword [ebp - 0x132c]
lea eax, [ebp - 0x1328]
sub edx, eax
add edx, 1
mov dword [ebp - 0x111c], edx
lea ecx, [ebp - 0x1328]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x111c]
push eax
mov edx, dword [ebp - 0x111c]
lea eax, [ebp + edx - 0x1328]
push eax
lea ecx, [ebp - 0x1224]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x1120], 1
mov dword [ebp - 0x10], 0
jmp 0x43a5bc
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1120]
jae 0x43a603
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x1224]
push ecx
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x43a601
mov edx, dword [ebp + 8]
push edx
call fcn.00439ed0
test eax, eax
je 0x43a601
mov eax, dword [ebp - 0x1014]
add eax, 1
mov dword [ebp - 0x1014], eax
jmp 0x43a5b3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x1224]
push ecx
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x43a63d
mov edx, dword [ebp + 8]
push edx
call fcn.00439ed0
test eax, eax
je 0x43a63d
mov eax, dword [ebp - 0x1014]
add eax, 1
mov dword [ebp - 0x1014], eax
jmp 0x43a49c
cmp dword [ebp - 8], 0
je 0x43a652
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1014]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43a65d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1328
call sub.ntdll.dll__chkstk
push edi
mov dword [ebp - 0x1010], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43a69a
mov eax, dword [ebp - 0x1010]
jmp 0x43a817
lea ecx, [ebp - 4]
push ecx
push 0x1000
lea edx, [ebp - 0x100c]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x43a801
mov dword [ebp - 0xc], 0
jmp 0x43a6cd
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
shr edx, 2
cmp dword [ebp - 0xc], edx
jae 0x43a801
push 0x104
lea eax, [ebp - 0x1114]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x100c]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x43a7fc
mov byte [ebp - 0x1320], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x131f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x121c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x121b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x1114]
push ecx
push 0x104
lea edx, [ebp - 0x1320]
push edx
call fcn.004154e0
mov dword [ebp - 0x1328], 0x5c
mov eax, dword [ebp - 0x1328]
push eax
lea ecx, [ebp - 0x1320]
push ecx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x1324], eax
cmp dword [ebp - 0x1324], 0
je 0x43a7c8
mov edx, dword [ebp - 0x1324]
lea eax, [ebp - 0x1320]
sub edx, eax
add edx, 1
mov dword [ebp - 0x1118], edx
lea ecx, [ebp - 0x1320]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x1118]
push eax
mov edx, dword [ebp - 0x1118]
lea eax, [ebp + edx - 0x1320]
push eax
lea ecx, [ebp - 0x121c]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x121c]
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x43a7fc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00439ed0
test eax, eax
je 0x43a7fc
mov edx, dword [ebp - 0x1010]
add edx, 1
mov dword [ebp - 0x1010], edx
jmp 0x43a6c4
cmp dword [ebp - 8], 0
je 0x43a811
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1010]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43a81c
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x43a857
mov eax, dword [ebp - 0x100c]
jmp 0x43a8bf
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x43a881
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x43a8b9
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + eax*4 - 0x1000]
push ecx
call fcn.0043a435
add esp, 8
mov edx, dword [ebp - 0x100c]
add edx, eax
mov dword [ebp - 0x100c], edx
jmp 0x43a872
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret

Function at 0x43a8c3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x43a8fe
mov eax, dword [ebp - 0x100c]
jmp 0x43a966
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x43a928
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x43a960
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + eax*4 - 0x1000]
push ecx
call fcn.0043a65d
add esp, 8
mov edx, dword [ebp - 0x100c]
add edx, eax
mov dword [ebp - 0x100c], edx
jmp 0x43a919
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret
Function at 0x43b06b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
je 0x43b0c1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x43b0c1
or eax, 0xffffffff
jmp 0x43b23a
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.0043b4e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43b0ed
jmp 0x43b212
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x124]
call fcn.0043b507
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.0043b5f9
cmp dword [ebp - 4], 0
jne 0x43b208
cmp dword [ebp - 8], 0
je 0x43b208
mov eax, dword [ebp + 0x14]
cmp dword [eax], 2
jne 0x43b1f2
push 0x50ac88
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43b1f2
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
push 0x50ac8c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43b1f2
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
push 0x104
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x50ac90
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.0040a2c0
add esp, 0x18
jmp 0x43b212
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
xor edx, edx
test edx, edx
jne 0x43b0c1
cmp dword [ebp - 8], 0
je 0x43b237
mov eax, dword [ebp - 8]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.004a4518
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x43b834
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je case.default.0x43b876
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043ba24
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
ja case.default.0x43b876
mov ecx, dword [ebp - 0x14]
jmp dword [ecx*4 + 0x43ba04]
cmp dword [ebp - 0xc], 0x5408
jne 0x43b890
mov eax, 1
jmp 0x43b9fe
jmp case.default.0x43b876
cmp dword [ebp - 0xc], 0x11608
jne 0x43b8a5
mov eax, 1
jmp 0x43b9fe
jmp case.default.0x43b876
cmp dword [ebp - 0xc], 0x3f08
jne 0x43b8ba
mov eax, 1
jmp 0x43b9fe
jmp case.default.0x43b876
cmp dword [ebp - 0xc], 0xf608
jne case.default.0x43b876
mov eax, 1
jmp 0x43b9fe
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x43b909
xor eax, eax
jmp 0x43b9fe
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
ja case.default.0x43b925
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x43ba14]
push 0
lea eax, [ebp - 4]
push eax
push 0x5408
push 0x4e0d64
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43b95b
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43b9fe
jmp case.default.0x43b925
push 0
lea eax, [ebp - 4]
push eax
push 0x11608
push 0x4e616c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43b98c
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43b9fe
jmp case.default.0x43b925
push 0
lea eax, [ebp - 4]
push eax
push 0x3f08
push 0x506d7c
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43b9ba
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43b9fe
jmp case.default.0x43b925
push 0
lea eax, [ebp - 4]
push eax
push 0xf608
push 0x4f7774
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x43b925
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43b9fe
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x43bd38
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push str.___s
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040a2c0
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x50adfc
lea edx, [ebp - 0x108]
push edx
call fcn.00429069
add esp, 0x14
test eax, eax
jne 0x43bdae
mov eax, dword [ebp - 4]
jmp 0x43be13
call fcn.00428d00
test eax, eax
je 0x43bdca
push 0x50ae04
call fcn.00428d28
add esp, 4
test eax, eax
jne 0x43bdca
jmp 0x43be10
push 0x50ae0c
call fcn.00429272
add esp, 4
test eax, eax
jne 0x43bdf9
call fcn.004291ed
test eax, eax
jne 0x43bde6
jmp 0x43be10
push 0x50ae14
call fcn.00429272
add esp, 4
test eax, eax
jne 0x43bdf9
jmp 0x43be10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
xor ecx, ecx
test ecx, ecx
jne 0x43bdae
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0x10