joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42a334]
sub esp, 0x24
test eax, eax
jne 0x4097ef
push esi
push fcn.00409620
call fcn.00402c80
add esp, 4
cmp dword [0x42a334], 0
jne 0x4097df
push ebx
push edi
push 0x99
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x264]
push 0x9a
mov dword [ebp - 0x24], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x268]
push 0x9b
mov dword [ebp - 0x20], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x26c]
push 0x9c
mov dword [ebp - 0x1c], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x270]
push 0x9d
mov dword [ebp - 0x18], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x274]
push 0x9e
mov dword [ebp - 0x14], eax
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edx, dword [ecx + 0x278]
push 0x9f
mov dword [ebp - 0x10], edx
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x27c]
push 0xa0
mov dword [ebp - 0xc], ecx
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x280]
add esp, 0x20
mov dword [ebp - 8], eax
xor edi, edi
lea ebx, [ebx]
push 0x6e
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov esi, dword [ecx + 0x1b8]
add esp, 4
cmp dword [0x42a330], 0
jne 0x409764
call fcn.00408a90
test eax, eax
je 0x40975a
dec eax
cmp eax, 1
ja 0x409764
mov dword [0x42a330], 0x80000002
jmp 0x409764
mov dword [0x42a330], 0x80000001
mov eax, dword [0x42a330]
lea edx, [ebp - 4]
push edx
push 0x20019
push 0
push esi
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4097ad
mov ecx, dword [ebp + edi*4 - 0x24]
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40979f
mov bl, 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x4097b9
inc edi
cmp edi, 8
jb 0x409720
jmp 0x4097c2
mov eax, dword [ebp + edi*4 - 0x24]
mov dword [0x42a334], eax
cmp dword [0x42a334], 0
pop edi
pop ebx
jne 0x4097df
call fcn.00412b5c
and eax, 7
mov ecx, dword [ebp + eax*4 - 0x24]
mov dword [0x42a334], ecx
mov esi, fcn.00409620
call fcn.00402d80
mov eax, dword [0x42a334]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4098f0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x42a340]
sub esp, 0xc
test eax, eax
jne 0x409a8c
push esi
push fcn.004098f0
call fcn.00402c80
add esp, 4
cmp dword [0x42a340], 0
jne 0x409a7c
push ebx
push edi
call fcn.00403940
mov esi, eax
xor edi, edi
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40993e
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409933
sub eax, edx
mov edi, eax
mov dword [ebp - 4], 0
call fcn.00408a90
sub eax, 0
je 0x409981
dec eax
je 0x40996c
dec eax
jne 0x40999d
push 0x19
call fcn.00403fe0
mov eax, dword [0x42a118]
mov ecx, dword [eax + 0x64]
add esp, 4
mov dword [ebp - 4], ecx
jmp 0x40999d
push 0x18
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x60]
add esp, 4
jmp 0x40999a
push 0xc
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov eax, dword [ecx + 0x30]
push eax
call fcn.0041356b
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099a3
sub eax, edx
lea edi, [eax + edi + 0x17]
push edi
call fcn.00412765
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4099b0
lea edx, [ebp - 8]
push edx
push ebx
mov dword [ebp - 8], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test esi, esi
je 0x409a22
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4099d8
mov ax, word [0x424520]
mov word [edi], ax
mov eax, esi
jmp 0x4099f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4099f0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409a00
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041272b
add esp, 4
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x409a25
mov dx, word [0x424520]
mov eax, dword [ebp - 4]
mov word [edi], dx
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409a40
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x409a50
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.00402ea0
push ebx
mov dword [0x42a340], eax
call fcn.0041272b
add esp, 8
pop edi
pop ebx
mov esi, fcn.004098f0
call fcn.00402d80
mov eax, dword [0x42a340]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40a090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
push 0
call fcn.00413ca8
add esp, 4
push eax
call fcn.00412b4a
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40a0fd
push 0
lea eax, [esp + 0x10]
push eax
push 1
push 0x423668
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x20], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
test eax, eax
je 0x40a0fd
mov ecx, dword [esp + 0xc]
push ecx
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetKernelObjectSecurity]
push 0x8003
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00408a90
cmp eax, 2
jne 0x40a152
push 0xb1
call fcn.00403fe0
mov edx, dword [0x42a118]
mov eax, dword [edx + 0x2c4]
add esp, 4
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0x40a2b0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.004059d0
call fcn.00405b40
call fcn.00406480
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x409a90
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40a030
push 0
push 0
call esi
lea esp, [esp]
cmp byte [0x429fd5], 0
je 0x40a1a2
cmp byte [0x42a24d], 0
jne 0x40a1ae
push 0x32
call fcn.00412e68
add esp, 4
jmp 0x40a190
call fcn.00406930
call fcn.0040b930
mov edx, dword [ebp + 8]
push edx
call fcn.0040c4d0
add esp, 4
call fcn.00406ec0
test al, al
je 0x40a1df
lea ecx, [ecx]
push 0x493e0
call fcn.00412e68
add esp, 4
jmp 0x40a1d0
call fcn.00404090
push 0
push 0
push 0
push 0x404810
push 0
push 0
call esi
push 0
push 0
push 0
push 0x4046e0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x404fa0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x404bd0
push 0
push 0
call esi
jmp 0x40a230
push 0x493e0
call fcn.00412e68
add esp, 4
jmp 0x40a230
Function at 0x40b630
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0xd0
mov dword [ebp - 8], 1
call fcn.00403fe0
mov eax, dword [0x42a118]
mov edi, dword [eax + 0x340]
push 0xcf
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov esi, dword [ecx + 0x33c]
add esp, 8
cmp dword [0x42a330], 0
jne 0x40b69b
call fcn.00408a90
test eax, eax
je 0x40b691
dec eax
cmp eax, 1
ja 0x40b69b
mov dword [0x42a330], 0x80000002
jmp 0x40b69b
mov dword [0x42a330], 0x80000001
mov eax, dword [0x42a330]
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov eax, dword [ebp - 4]
test eax, eax
je 0x40b6de
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b850
Capabilities:
Delete service
Set registry value

Disassembly:
call fcn.00408a90
cmp eax, 1
je 0x40b868
call fcn.00408a90
cmp eax, 2
jne 0x40b909
push ebx
push esi
push edi
push 0xc8
call fcn.00403fe0
mov eax, dword [0x42a118]
mov edi, dword [eax + 0x320]
add esp, 4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x40b8bb
push 0x10020
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40b8b8
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
push 0xc9
call fcn.00403fe0
mov ecx, dword [0x42a118]
mov edi, dword [ecx + 0x324]
add esp, 4
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x40b906
push 0x10020
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x40b903
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebx
push esi
call ebx
pop edi
pop esi
pop ebx
call fcn.00408a90
test eax, eax
je 0x40b91c
call fcn.00408a90
cmp eax, 1
jne 0x40b921
jmp fcn.0040b6f0
ret
Function at 0x40c4d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x40a420
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40a670
push 0
push 0
call esi
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x40b390
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40b7b0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40c5c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40c820
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40c9c0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40cb20
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40ce70
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40d220
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40d810
push 0
push 0
call esi
push 0
push 0
push 0
push 0x40f590
push 0
push 0
call esi
push 0
push 0
push 0
push 0x411010
push 0
push 0
call esi
pop esi
pop ebp
ret

Function at 0x40d010
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [ebp - 0x18]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
sub edi, dword [ebp - 0x18]
sub ebx, dword [ebp - 0x14]
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push esi
mov dword [ebp - 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x40d0de
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40d0de
test eax, eax
je 0x40d0de
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
push 0xcc0020
push edx
push eax
push esi
push ebx
mov ebx, dword [ebp - 0x20]
push edi
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
push 0x1e
call fcn.00401210
mov ecx, dword [ebp - 0x28]
add esp, 4
push esi
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004118d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004118d8
mov esp, ebp
pop ebp
ret
Function at 0x40f700
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push ecx
push 0
push 0
push 2
mov dword [ebp - 0xc], 0
call dword [sym.imp.MPR.dll_WNetOpenEnumA]
test eax, eax
jne 0x40f8c7
push edi
push 0x4000
push 0x40
mov dword [ebp - 0x10], 0x4000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x40f8c6
push ebx
mov dword [ebp - 8], 0xffffffff
push esi
mov edx, dword [ebp - 0x10]
push edx
push 0
push edi
call fcn.00415c60
mov edx, dword [ebp - 0xc]
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push edi
lea ecx, [ebp - 8]
push ecx
push edx
call dword [sym.imp.MPR.dll_WNetEnumResourceA]
test eax, eax
jne 0x40f8b3
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], eax
jbe 0x40f754
lea esi, [edi + 0x14]
mov dword [ebp - 4], esi
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x40f886
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f7a0
sub eax, edx
je 0x40f886
cmp dword [0x42a7bc], 0
je 0x40f886
cmp dword [0x42a7c0], 0
je 0x40f886
push 0x42a7bc
call fcn.00402c80
push 0x42a7c0
call fcn.00402c80
mov edi, dword [esi]
mov eax, edi
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f7e7
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.00412765
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f7f3
mov ecx, edi
mov edx, ebx
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40f806
mov eax, dword [0x42a7c4]
mov edi, dword [0x42a7bc]
inc eax
mov dword [0x42a7c4], eax
lea esi, [eax*4]
push esi
push edi
call fcn.004127f9
add esp, 8
test eax, eax
je 0x40f828
mov edi, dword [0x42a7c0]
mov dword [0x42a7bc], eax
push esi
push edi
call fcn.004127f9
add esp, 8
test eax, eax
je 0x40f841
mov ecx, dword [ebp - 4]
mov dword [0x42a7c0], eax
mov eax, dword [0x42a7bc]
mov dword [esi + eax - 4], ebx
mov edx, dword [ecx - 0xc]
mov eax, dword [0x42a7c0]
mov dword [esi + eax - 4], edx
mov esi, 0x42a7bc
call fcn.00402d80
mov esi, 0x42a7c0
call fcn.00402d80
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x18]
test byte [esi - 8], 2
je 0x40f898
lea ecx, [esi - 0x14]
push ecx
call fcn.0040f700
add esp, 4
mov eax, dword [ebp - 0x14]
inc eax
add esi, 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], esi
cmp eax, dword [ebp - 8]
jb 0x40f790
jmp 0x40f754
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4118d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x4118e2
repz ret
jmp fcn.004147f8

Function at 0x41c638
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41c65f
call fcn.00414aed
mov dword [eax], esi
call fcn.00414ada
push 0x16
pop esi
mov dword [eax], esi
call fcn.00414a88
mov eax, esi
jmp 0x41c6b4
test dword [ebp + 0xc], 0xfffffff9
jne 0x41c645
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41c68c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00414b00
pop ecx
call fcn.00414ada
mov eax, dword [eax]
jmp 0x41c6b4
test al, 0x10
jne 0x41c6b2
test al, 1
je 0x41c6b2
test byte [ebp + 0xc], 2
je 0x41c6b2
call fcn.00414aed
mov dword [eax], 5
call fcn.00414ada
mov dword [eax], 0xd
jmp 0x41c683
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41eed0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004191eb
and dword [ebp - 0x14], 0
cmp dword [0x429e28], 0
mov dword [ebp - 0x18], eax
jne 0x41ef83
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41f02b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41f02b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x429e28], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x429e2c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x429e30], eax
call edi
push eax
call esi
mov dword [0x429e38], eax
test eax, eax
je 0x41ef83
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x429e34], eax
mov eax, dword [0x429e34]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41efdc
cmp dword [0x429e38], ecx
je 0x41efdc
push eax
call esi
push dword [0x429e38]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41efdc
test ebx, ebx
je 0x41efdc
call edi
test eax, eax
je 0x41efd3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41efd3
test byte [ebp - 8], 1
jne 0x41efdc
or dword [ebp + 0x10], 0x200000
jmp 0x41f00f
mov eax, dword [0x429e2c]
cmp eax, dword [ebp - 0x18]
je 0x41f00f
push eax
call esi
test eax, eax
je 0x41f00f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41f00f
mov eax, dword [0x429e30]
cmp eax, dword [ebp - 0x18]
je 0x41f00f
push eax
call esi
test eax, eax
je 0x41f00f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429e28]
call esi
test eax, eax
je 0x41f02b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41f02d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004118d8
leave
ret
Function at 0x401b59
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x40a908
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x40a91f
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40a977
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040dfc4
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x40a977
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40a977
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40a977
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x40a971
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40a973
xor bl, bl
mov al, bl
jmp 0x40a979
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x40d7cf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40d86c
push ebx
push esi
call fcn.0040d798
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040d72e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d819
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d86b
push edi
push eax
call fcn.0040ac50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40d839
call fcn.00408690
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d86a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d72e
add esp, 0x20
test eax, eax
jne 0x40d858
push edi
call fcn.00408690
jmp 0x40d860
push ebx
call fcn.00408690
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40f67c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x41ef18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x40f6be
cmp byte [ebx], 0xa
jne 0x40f6be
or byte [edi + eax + 0x28], 4
jmp 0x40f6c3
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x40f7c6
mov cl, byte [eax]
cmp cl, 0x1a
je 0x40f7a1
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x40f6f2
mov eax, dword [ebp - 8]
jmp 0x40f712
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x40f72e
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x40f70c
add eax, 2
mov cl, 0xa
jmp 0x40f70f
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x40f6d4
jmp 0x40f7c6
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40f79c
cmp dword [ebp - 0x10], 0
je 0x40f79c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x41ef18]
test byte [eax + edi + 0x28], 0x48
je 0x40f77b
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x40f76b
mov byte [esi], 0xa
jmp 0x40f7c5
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x41ef18]
mov byte [eax + edi + 0x2a], cl
jmp 0x40f7c5
cmp byte [ebp - 1], 0xa
jne 0x40f785
cmp esi, ebx
je 0x40f766
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040f5ec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40f7c6
mov byte [esi], 0xd
jmp 0x40f7c5
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x41ef18]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x40f7c3
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x40f7c6
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret