joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40150f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x15], 0x30393137
mov dword [ebp - 0x11], 0x30303135
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x15]
mov dword [0x409010], eax
mov dword [0x409014], 0x38
mov dword [0x409018], 0xd5
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x8894
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceA
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
sub esp, 8
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
mov dword [section..bss], eax
lea edx, [eax + 0xe]
mov dword [0x409004], edx
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x1c
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [section..bss]
mov dword [esp + 4], sub.KERNEL32.dll_LoadLibraryA
lea edx, [eax + 0x1c]
mov dword [esp], edx
call eax
sub esp, 8
mov dword [0x40901c], eax
mov eax, dword [section..bss]
add eax, 0x38
mov dword [0x409008], eax
call fcn.00401281
mov eax, 0
leave
ret 0x10
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.8zi5dyrj]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.8zi5dyrj]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.8zi5dyrj]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.8zi5dyrj]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.8zi5dyrj]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.8zi5dyrj]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x492b7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401db6
mov eax, dword [0x527940]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405f15
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x492bbe
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x492d1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406064
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x52b250]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004032e7
mov ecx, dword [esi*4 + 0x52b250]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x492d13
cmp eax, dword [edi + ecx + 0x24]
jne 0x492d13
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x492d13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004032e7
add esp, 0x14
test edx, edx
jl 0x492d13
jg 0x492c89
test eax, eax
jb 0x492d13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x492d13
jl 0x492ca3
cmp dword [ebp - 0x1008], eax
ja 0x492d13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x492cc1
test ebx, ebx
je 0x492cfa
cmp ecx, edi
jae 0x492cfa
mov al, byte [ecx]
cmp al, 0xd
jne 0x492cdb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x492ce7
cmp byte [ecx + 1], 0xa
jne 0x492ce7
inc ecx
jmp 0x492ce7
movzx eax, al
movsx eax, byte [eax + 0x527ca8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x492cc1
cmp edx, ebx
jne 0x492cc1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x492d18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004030c1
leave
ret
Function at 0x493459
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x52b250]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x493499
cmp byte [ebx], 0xa
jne 0x493499
or byte [eax + edi + 0x28], 4
jmp 0x49349e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49359c
mov al, byte [edx]
cmp al, 0x1a
je 0x49357e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4934cd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4934f2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4934fc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4934af
jmp 0x49359c
push 0
lea eax, [ebp - 0xc]
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 0x493579
cmp dword [ebp - 0xc], 0
je 0x493579
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x52b250]
test byte [eax + edi + 0x28], 0x48
je 0x493553
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x49353e
mov byte [esi], dl
jmp 0x49354f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x52b250]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49359c
cmp byte [ebp - 1], 0xa
jne 0x493562
cmp esi, ebx
jne 0x493562
mov byte [esi], 0xa
jmp 0x49359b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49359c
mov byte [esi], 0xd
jmp 0x49359b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x52b250]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x493598
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49359c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4935f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x52b250]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49363b
cmp word [esi], dx
jne 0x49363b
or byte [edi + eax + 0x28], 4
jmp 0x493640
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x493793
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x493773
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x493682
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4936b8
cmp eax, edx
jae 0x4936c4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49365a
jmp 0x493793
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49376f
cmp dword [ebp - 0x14], 0
je 0x49376f
mov eax, dword [ebx*4 + 0x52b250]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x493747
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x493710
mov word [esi], cx
jmp 0x493743
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x52b250]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x52b250]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x52b250]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x493793
pop ebx
cmp word [ebp - 4], bx
jne 0x493758
cmp esi, dword [ebp + 0xc]
jne 0x493758
mov word [esi], bx
jmp 0x493790
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040194c
add esp, 0x10
cmp word [ebp - 4], bx
je 0x493793
push 0xd
jmp 0x49378c
mov ecx, dword [ebx*4 + 0x52b250]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49378a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x493793
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x499e8f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x527940]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x499eda
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049a351
test al, al
jne 0x499ed4
sub edx, 2
cmp edx, edi
jne 0x499eba
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x499efc
lea eax, [edi + 2]
cmp edx, eax
je 0x499efc
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00499a88
add esp, 0x10
jmp 0x499ff6
push esi
lea ecx, [ebp - 0x255]
call fcn.0049a351
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x499f3f
push dword [ebp - 0x25c]
jmp 0x499eec
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x499f7c
cmp word [ebp - 0x226], 0
je 0x499f9d
cmp word [ebp - 0x226], ax
jne 0x499f7c
cmp word [ebp - 0x224], 0
je 0x499f9d
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00499a88
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x499fe9
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x499f56
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x499fd1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x499ff6
push 0x499470
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405605
add esp, 0x10
jmp 0x499fc6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004030c1
leave
ret
Function at 0x401140
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [0x5471ac]
mov edx, dword [eax]
sub esp, 0x1c
push esi
mov eax, edx
push edi
mov edi, dword [0x5471a8]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401157
sub eax, esi
push eax
push edx
mov ecx, 0x544eb8
call fcn.00402130
mov ecx, dword [0x5471ac]
mov ecx, dword [ecx]
mov eax, ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401180
sub eax, esi
push eax
push ecx
mov ecx, 0x544ed4
call fcn.00402130
cmp edi, 2
jne 0x401204
mov edx, dword [0x5471ac]
mov eax, dword [edx + 4]
push 3
push 0x5255b4
push eax
call fcn.004293a9
add esp, 0xc
test eax, eax
jne 0x4011cd
mov ecx, dword [0x5471ac]
mov edx, dword [ecx + 4]
call fcn.00401450
pop edi
pop esi
add esp, 0x1c
ret 0x10
mov edx, dword [0x5471ac]
mov eax, dword [edx + 4]
push 3
push 0x5255b8
push eax
call fcn.004293a9
add esp, 0xc
test eax, eax
jne 0x401204
mov ecx, dword [0x5471ac]
mov edx, dword [ecx + 4]
push edx
call fcn.00401b30
add esp, 4
pop edi
pop esi
add esp, 0x1c
ret 0x10
push ebp
push str.Global_iniLINE_CrossEXService_
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401235
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
mov esi, dword [esp + 0x2c]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x549c00
push 0x67
push esi
call edi
push 0x64
push 0x549cd0
push 0x68
push esi
call edi
mov eax, esi
call fcn.004012e0
mov eax, esi
call fcn.00401370
test eax, eax
jne 0x40127b
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 0x10
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call esi
test eax, eax
je 0x4012c0
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x4012a0
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
pop esi
add esp, 0x1c
ret 0x10

Function at 0x401370
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push eax
push 0
push 0
push 0
push closesocket
push 0
push closesocket
push 0xcf0000
push 0x549c00
push 0x549cd0
push 0
mov dword [0x549cc8], eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4013aa
pop esi
ret
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret
Function at 0x401b30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 1]
jmp 0x401b40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b40
sub eax, edx
cmp eax, 0x104
jbe 0x401b58
mov eax, 1
pop esi
pop ecx
ret
push ebp
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..pipecrossex_manager
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401b83
pop ebp
mov eax, 1
pop esi
pop ecx
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401b88
push ebx
sub eax, edx
push edi
mov edi, eax
lea ebx, [edi + 4]
push ebx
call fcn.00429546
mov esi, eax
mov eax, dword [esp + 0x1c]
push edi
push eax
lea ecx, [esi + 4]
push ecx
mov dword [esi], edi
call fcn.004360d0
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push esi
push ebp
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00429469
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4025e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402634
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402630
lea ebx, [ebx]
cmp esi, eax
jae 0x402634
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402620
cmp esi, eax
jb 0x40263a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405110
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x4f7702
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x314], eax
push ebx
push ebp
push edi
mov eax, dword [0x5370e4]
xor eax, esp
push eax
lea eax, [esp + 0x328]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x330], ebx
mov dword [esp + 0x1c], ebx
mov edi, ecx
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push 0x5255b3
mov ecx, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x18], edi
mov byte [esi + 4], bl
call fcn.00402130
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x334], ebx
push edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x4052e7
push edi
call fcn.0041ef50
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4052de
push edi
push ebx
push ebp
call fcn.0042fdd0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
add esp, 0xc
push ebp
push edi
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
cmp eax, 1
jne 0x4052de
push 0xff
lea eax, [esp + 0x29]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x30], bl
call fcn.0042fdd0
push 0x1ff
lea ecx, [esp + 0x135]
push ebx
push ecx
mov byte [esp + 0x13c], bl
call fcn.0042fdd0
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
jne 0x405273
cmp dword [esp + 0x10], 4
jne 0x405273
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, eax
shr edx, 0x10
mov ecx, eax
and edx, 0xff
push edx
movzx edx, al
shr ecx, 0x18
push ecx
push edx
shr eax, 8
and eax, 0xff
push eax
push str.StringFileInfo_02X_02X_02X_02X
lea eax, [esp + 0x38]
push 0x100
push eax
call fcn.00429a39
add esp, 0x1c
jmp 0x405294
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
push str.StringFileInfo_04X04B0
lea edx, [esp + 0x2c]
push 0x100
push edx
call fcn.00429a39
add esp, 0x10
lea eax, [esp + 0x24]
push eax
push str._sProductVersion
lea ecx, [esp + 0x12c]
push 0x200
push ecx
call fcn.00429a39
add esp, 0x10
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x12c]
push ecx
push ebp
call sub.VERSION.dll_VerQueryValueA
cmp eax, 1
jne 0x4052de
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x4052de
push esi
call fcn.00401c90
push ebp
call fcn.0041ef45
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x328]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.00428ddf
add esp, 0x324
ret
Function at 0x409020
Capabilities:
Connect pipe
Create pipe

Disassembly:
push ebx
mov eax, 1
push ebp
xor ebp, ebp
lea ebx, [esi + 0x24]
mov dword [esi + 0x20], ebp
mov dword [ebx], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x50], ebp
cmp dword [esi + 4], eax
jne 0x409047
mov eax, 0xff
mov ecx, dword [esi]
push ebp
push ebp
push 0x1000
push 0x1000
push eax
push 6
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 8], eax
cmp eax, ebp
jne 0x409075
pop ebp
mov eax, 0x3e9
pop ebx
ret 8
push edi
xor eax, eax
lea edi, [esi + 0xc]
push ebp
mov dword [edi], eax
push ebp
mov dword [edi + 4], eax
mov dword [edi + 8], eax
push ebp
mov dword [edi + 0xc], eax
push ebp
mov dword [edi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ebp
push 0xffffffffffffffff
push esi
push 0x4091b0
push eax
push ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x4c], edx
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x4090c4
pop edi
pop ebp
mov eax, 0x7cf
pop ebx
ret 8
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x4090e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4090ef
mov dword [esi + 0x20], 1
pop edi
pop ebp
xor eax, eax
pop ebx
ret 8
cmp eax, 0x217
je 0x4090e7
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
mov eax, 0x3ea
pop ebx
ret 8
Function at 0x409e10
Capabilities:
Get number of processors
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f7e58
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x5370e4]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [0x549f14]
mov esi, ecx
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409e70
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.00402130
mov ecx, esi
mov edx, ebx
mov dword [esp + 0x48], edi
call fcn.00409980
mov edi, eax
mov ecx, dword [edi + 4]
cmp dword [ecx + 0x50], 0
mov dword [esp + 0x10], 0
jne 0x409ebd
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0x64
call esi
mov edx, dword [edi + 4]
cmp dword [edx + 0x50], 0
je 0x409eb0
mov eax, dword [ebp + 8]
push eax
mov eax, ebx
call fcn.0040a240
test eax, eax
je 0x409f2d
mov ebx, dword [ebp + 0x10]
add ebx, 4
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov esi, eax
mov eax, dword [esp + 0x14]
push edx
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 8]
push ecx
mov dword [esi], ebx
call fcn.004360d0
mov eax, dword [esp + 0x24]
mov edi, dword [edi + 4]
mov ecx, dword [edi + 8]
add esp, 0xc
push 0
lea edx, [esp + 0x14]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409f29
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x34], 0x10
jb 0x409f41
mov edx, dword [esp + 0x20]
push edx
call fcn.0041ef45
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00428ddf
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40a2e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x168
mov eax, dword [0x5370e4]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [esp + 0x16c]
push ecx
push eax
push str._s__c__s
lea eax, [esp + 0x64]
push 0x104
push eax
call fcn.00429a39
xor eax, eax
push 0x44
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call fcn.0042fdd0
add esp, 0x20
lea edx, [esp]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40a384
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00428ddf
add esp, 0x168
ret
mov ecx, dword [esp + 0x164]
xor ecx, esp
or eax, 0xffffffff
call fcn.00428ddf
add esp, 0x168
ret