joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406990
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4251fe
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
xor al, al
mov dword [ebp - 4], 0
push 2
mov byte [ebp - 0x23d], al
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4069e5
xor bl, bl
jmp 0x406a72
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.00414170
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406a65
nop word [eax + eax]
mov edi, dword [ebp + 0x2c]
test edi, edi
je 0x406abb
mov eax, dword [edi]
lea ecx, [ebp - 0x23c]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4262c4]
mov ecx, edi
call esi
test al, al
sete al
test al, al
jne 0x406a5e
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406a20
mov byte [ebp - 0x23d], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 0x23d]
mov dword [ebp - 4], 1
mov edi, dword [ebp + 0x2c]
test edi, edi
je 0x406a9d
mov esi, dword [edi]
lea eax, [ebp + 8]
cmp edi, eax
setne al
mov esi, dword [esi + 0x10]
mov ecx, esi
movzx edx, al
push edx
call dword [0x4262c4]
mov ecx, edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret
call fcn.00411a4d
int3

Function at 0x4071d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x40720a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40720a
mov ecx, esi
call fcn.00407440
test al, al
je 0x40720a
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push edi
push esi
push str.Load___s_______08x___r_n
push 0x23
push str.ModCheckerModuleSafe.cpp
push 1
call fcn.00405450
add esp, 0x18
mov dword [ebx], edi
test edi, edi
je 0x40726c
push str.GetModuleISC
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x407255
mov ecx, edi
call dword [0x4262c4]
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret
push esi
push str.get_interface___s__faild_r_n
push 0x34
push str.ModCheckerModuleSafe.cpp
push 4
call fcn.00405450
add esp, 0x14
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411abb
mov esp, ebp
pop ebp
ret
Function at 0x4078d0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425408
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x434008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x407944
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x407944
push 0x42c16c
mov ecx, edi
call fcn.00402fb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041210f
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0
push dword [ebp - 0x10]
push 0
push esi
call fcn.00414170
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x4079aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.get_username_failed_E_d._r_n
push 0x51
push str.SystemSystem.cpp
push 4
call fcn.00405450
add esp, 0x14
push 0x42c16c
jmp 0x4079ab
push esi
mov ecx, edi
call fcn.00402fb0
test esi, esi
je 0x4079c1
push 2
push esi
call fcn.00411acc
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x238], edx
mov dword [ebp - 0x234], esi
lea ecx, [ebp - 0x22c]
push edi
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x234], 0
call fcn.004078d0
cmp dword [ebp - 0x21c], 0
jne 0x407c49
mov eax, dword [ebp - 0x218]
cmp eax, 8
jb 0x407bde
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.00401b20
push 0x208
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.00414170
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
push 0
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x407c22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x214], ax
jne 0x407d11
xor ecx, ecx
jmp 0x407d2f
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push 6
cmovae eax, dword [ebp - 0x22c]
push str.SYSTEM
push eax
call fcn.00415a62
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x218]
sete bl
cmp eax, 8
jb 0x407c90
inc eax
lea ecx, [ebp - 0x22c]
push eax
push dword [ebp - 0x22c]
call fcn.00401b20
test bl, bl
je 0x407bde
call fcn.00407b00
mov edi, eax
cmp edi, 0xffffffff
je 0x407cf2
sub esp, 0x18
mov byte [ebp - 0x22d], 0
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov word [ecx], ax
call fcn.00402e30
lea eax, [ebp - 0x22d]
mov edx, 0xc
push edi
push eax
lea ecx, [ebp - 0x234]
call fcn.004079e0
add esp, 0x20
test al, al
jne 0x407bde
push 0x42c16c
mov ecx, esi
call fcn.00402fb0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407d20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x214]
mov ecx, esi
push eax
call fcn.00402e30
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411abb
mov esp, ebp
pop ebp
ret
Function at 0x407ec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425482
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x230], esi
mov dword [ebp - 4], 0
xor bl, bl
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x21c], 0
call fcn.00407e10
test eax, eax
je 0x407f5d
push str.Kernel32.dll
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407f57
push str.Wow64EnableWow64FsRedirection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x407f4e
push 0
mov ecx, ebx
call dword [0x4262c4]
call ebx
movzx ebx, al
jmp 0x407f50
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 1
sete bl
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00414170
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407f90
sub ecx, edx
mov eax, 0x104
sar ecx, 1
sub eax, ecx
push str._ntoskrnl.exe
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004190ff
add esp, 0xc
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x22c]
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], 0
call fcn.00404a25
push esi
lea ecx, [ebp - 0x22c]
call fcn.00406520
mov dword [ebp - 4], 0
mov dword [ebp - 0x21c], 1
test bl, bl
je 0x40804b
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40804b
push str.Wow64EnableWow64FsRedirection
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x408044
push 1
mov ecx, ebx
call dword [0x4262c4]
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret
Function at 0x4087a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425571
mov eax, dword fs:[0]
push eax
sub esp, 0x66c
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp eax, 7
jge 0x4087e2
xor al, al
jmp 0x4089c1
push ecx
push eax
mov ecx, esi
call fcn.00408d50
mov ecx, esi
call fcn.00408c50
test al, al
je 0x4087db
lea eax, [ebp - 0x678]
mov dword [ebp - 0x678], 0
push eax
mov ecx, esi
mov dword [ebp - 0x674], 0
call fcn.00409100
mov edi, eax
test edi, edi
je 0x4087db
lea eax, [ebp - 0x678]
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x40]
push eax
call fcn.004092d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x664]
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 0x200
mov dword [ebp - 0x668], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0x200
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0x200
mov dword [ebp - 0x248], eax
push edi
lea eax, [ebp - 0x678]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x460]
mov ecx, esi
push eax
call fcn.0040a840
push edi
lea eax, [ebp - 0x460]
push eax
call fcn.0040af30
push edi
lea eax, [ebp - 0x250]
push eax
call fcn.0040bfc0
push edi
lea eax, [ebp - 0x250]
push eax
call fcn.0040c3e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00409640
lea eax, [ebp - 0x678]
push eax
call fcn.00409280
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.0040a760
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004096c0
lea eax, [ebp - 0x670]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004089e0
cmp dword [ebp - 0x30], 1
mov bl, al
jbe 0x40894c
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x18], 1
jbe 0x408964
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.00401c20
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x244]
cmp eax, ecx
je 0x408985
push eax
call fcn.004159ac
add esp, 4
mov eax, dword [ebp - 0x458]
lea ecx, [ebp - 0x454]
cmp eax, ecx
je 0x40899e
push eax
call fcn.004159ac
add esp, 4
mov eax, dword [ebp - 0x668]
lea ecx, [ebp - 0x664]
cmp eax, ecx
je 0x4089b7
push eax
call fcn.004159ac
add esp, 4
lea ecx, [ebp - 0x40]
call fcn.00401c20
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret 8
Function at 0x408c50
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x210]
mov esi, ecx
push 0
push eax
call fcn.00414170
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 1
jae 0x408ca8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret
cmp word [ebp + eax*2 - 0x212], 0x5c
jne 0x408ccf
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x408d46
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
cmp dword [esi + 0x24], 8
lea edi, [esi + 0x10]
jb 0x408cda
mov edi, dword [edi]
lea edx, [ebp - 0x210]
lea ecx, [esi + 0x34]
call fcn.004028f0
mov edx, 0x42bf34
mov ecx, eax
call fcn.004028f0
mov edx, edi
mov ecx, eax
call fcn.004028f0
mov ecx, dword [esi + 0x34]
xor edx, edx
mov eax, dword [esi + 0x3c]
push edx
mov word [eax + ecx*2], dx
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x408d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411abb
mov esp, ebp
pop ebp
ret
call fcn.0041223b
int3
Function at 0x40b370
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425772
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
mov dword [ebp - 0x254], 0
call fcn.00414170
add esp, 0xc
mov dword [ebp - 0x258], 0x104
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
sete al
test al, al
je 0x40b40d
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x24c]
call fcn.00404683
add esp, 8
mov dword [ebp - 0x250], eax
mov ebx, 1
jmp 0x40b44b
push 7
push str.Unknown
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
call fcn.00404007
lea eax, [ebp - 0x234]
mov ebx, 2
mov dword [ebp - 0x250], eax
mov edi, dword [esi]
add edi, 0xa
cmp edi, dword [esi + 4]
jb 0x40b45d
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi]
add ecx, dword [esi + 8]
movq xmm0, qword [str.Username:]
movq qword [ecx], xmm0
mov ax, word [0x42f950]
mov word [ecx + 8], ax
mov eax, dword [ebp - 0x250]
mov dword [esi], edi
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x254], ecx
jb 0x40b497
mov eax, dword [eax]
mov dword [ebp - 0x250], eax
test ecx, ecx
je 0x40b4c8
add edi, ecx
cmp edi, dword [esi + 4]
jb 0x40b4b6
push edi
mov ecx, esi
call fcn.004049c2
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x254]
push ecx
push eax
mov eax, dword [esi]
add eax, dword [esi + 8]
push eax
call fcn.00414710
add esp, 0xc
mov dword [esi], edi
mov edi, dword [esi]
add edi, 2
cmp edi, dword [esi + 4]
jb 0x40b4da
push edi
mov ecx, esi
call fcn.004049c2
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov ax, word [0x42f79c]
mov word [ecx], ax
mov dword [esi], edi
test bl, 2
je 0x40b55d
mov eax, dword [ebp - 0x220]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x40b542
mov ecx, dword [ebp - 0x234]
inc eax
cmp eax, 0x1000
jb 0x40b539
test cl, 0x1f
je 0x40b515
call fcn.0041592c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b521
call fcn.0041592c
sub ecx, eax
cmp ecx, 4
jae 0x40b52d
call fcn.0041592c
cmp ecx, 0x23
jbe 0x40b537
call fcn.0041592c
mov ecx, eax
push ecx
call fcn.00411ab6
add esp, 4
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
test bl, 1
je 0x40b5b2
mov eax, dword [ebp - 0x238]
cmp eax, 0x10
jb 0x40b5b2
mov ecx, dword [ebp - 0x24c]
inc eax
cmp eax, 0x1000
jb 0x40b5a9
test cl, 0x1f
je 0x40b585
call fcn.0041592c
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40b591
call fcn.0041592c
sub ecx, eax
cmp ecx, 4
jae 0x40b59d
call fcn.0041592c
cmp ecx, 0x23
jbe 0x40b5a7
call fcn.0041592c
mov ecx, eax
push ecx
call fcn.00411ab6
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret 4
Function at 0x40c3e0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 4]
push esi
push edi
push eax
push 0
push 0
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
cmp eax, 1
jne 0x40c47b
mov eax, dword [ebp - 4]
cmp eax, 1
jb 0x40c47b
push eax
call fcn.0041210f
mov edi, eax
add esp, 4
test edi, edi
je 0x40c47b
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
cmp eax, 1
jne 0x40c472
mov ecx, dword [ebp + 8]
mov edx, str._r_n_r_n____________________________________________________r_n
call fcn.00404988
mov edx, str.Modules:__r_n_r_n
mov ecx, eax
call fcn.00404988
mov eax, dword [ebp - 4]
xor esi, esi
shr eax, 2
mov dword [ebp - 8], eax
test eax, eax
je 0x40c472
nop word [eax + eax]
push dword [edi + esi*4]
push ebx
push dword [ebp + 8]
call fcn.0040c490
inc esi
cmp esi, dword [ebp - 8]
jl 0x40c460
push edi
call fcn.0041210a
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40deb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425906
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x434008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ecx, dword [edx + 0x440]
mov ebx, dword [ebp + 8]
push esi
push 0x80
push 3
push esi
mov dword [ebp - 0x430], eax
mov eax, dword [edx + 0x448]
push 1
push 0x80000000
mov word [eax + ecx*2], si
push dword [edx + 0x448]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40df3c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x42c], eax
cmp eax, 1
jae 0x40df76
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x42f210
mov ecx, ebx
call fcn.00404007
mov eax, dword [ebp - 0x430]
mov dword [eax], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411abb
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x210]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0x200
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0x200
mov dword [ebp - 0x420], eax
push ebx
mov byte [ebp - 4], 1
call fcn.0040d7d0
lea eax, [ebp - 0x428]
mov ecx, ebx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00404656
push eax
call fcn.0040d8b0
mov ecx, dword [ebp - 0x21c]
add ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x42c]
add eax, ecx
mov ecx, dword [ebp - 0x430]
push eax
mov dword [ecx], eax
call fcn.0041210f
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e056
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x41c]
cmp eax, ecx
je 0x40e02d
push eax
call fcn.004159ac
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x210]
mov eax, dword [ebp - 0x214]
cmp eax, ecx
je 0x40df3c
push eax
call fcn.004159ac
add esp, 4
jmp 0x40df3c
mov ecx, dword [ebp - 0x21c]
mov eax, dword [ebp - 0x214]
push ecx
mov byte [eax + ecx], 0
push dword [ebp - 0x214]
push edi
call fcn.00414710
add esp, 0xc
lea eax, [ebp - 0x42c]
push 0
push eax
push dword [ebp - 0x42c]
mov eax, dword [ebp - 0x21c]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x428]
mov eax, dword [ebp - 0x420]
push ecx
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x21c]
push dword [ebp - 0x420]
add eax, edi
add eax, dword [ebp - 0x42c]
push eax
call fcn.00414710
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x41c]
cmp eax, ecx
je 0x40e0e3
push eax
call fcn.004159ac
add esp, 4
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x210]
cmp eax, ecx
je 0x40e0fc
push eax
call fcn.004159ac
add esp, 4
mov eax, edi
jmp 0x40df58
Function at 0x40e7b0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40e7c6
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
mov ebx, 0xa000
xor esi, esi
push ebx
call fcn.004159d4
add esp, 4
mov dword [ebp - 4], esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40e868
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e864
lea ecx, [eax + esi]
cmp ecx, ebx
jb 0x40e826
sub ecx, ebx
mov eax, 0xcccccccd
mul ecx
shr edx, 0xf
imul eax, edx, 0xa000
add eax, 0xa000
add ebx, eax
push ebx
push edi
call fcn.004159c9
mov edi, eax
add esp, 8
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push ecx
push eax
lea eax, [edi + esi]
push eax
push dword [ebp - 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40e864
cmp dword [ebp - 0xc], 0
je 0x40e864
add esi, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
mov dword [ebp - 4], 0
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40e7f0
test esi, esi
jne 0x40e873
push edi
call fcn.004159ac
add esp, 4
xor edi, edi
mov eax, dword [ebp - 0x10]
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dce0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d969
Function at 0xa62058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa621a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa6207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa6206a
add dl, dl
jne 0xa62089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa620dc
xor eax, eax
add dl, dl
jne 0xa62096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa6217d
add dl, dl
jne 0xa620a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa620b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa620bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa620c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa620d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa62075
mov eax, 1
add dl, dl
jne 0xa620ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa620f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa620e1
sub eax, ebx
mov ebx, 1
jne 0xa62128
mov ecx, 1
add dl, dl
jne 0xa6210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa62119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa62105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa62075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa6213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa6214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa62136
cmp eax, 0x7d00
jae 0xa6216d
cmp eax, 0x500
jb 0xa62168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa62075
cmp eax, 0x7f
ja 0xa62170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa62075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa6219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa62075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10