joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e13
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x417e49
call fcn.0040c5c1
push 0x41c0e0
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.00404870
sub esp, 0x20
lea ebx, [ebp + 0x28]
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.00404160
lea ebx, [ebp + 8]
call fcn.00404690
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00410fc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x68], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401e84
mov bl, 1
lea esi, [ebp + 8]
call fcn.00404280
lea esi, [ebp + 0x28]
call fcn.00404280
mov al, bl
call fcn.0040c660
ret

Function at 0x401e9c
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x417bcd
call fcn.0040c5c1
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00404b50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x10]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401efd
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401edc
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x10]
jmp 0x401f45
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0x41c0e4
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401f58
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f26
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401f58
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 8]
call fcn.00404280
call fcn.0040c660
ret
Function at 0x401f6f
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x417bcd
call fcn.0040c5c1
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x2c]
lea esi, [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.00404b50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp + 0x2c]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401fc1
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x2c]
jmp 0x401ff4
lea eax, [ebp + 0x2c]
push eax
push ebx
push 0
push 0x41c0e4
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x402007
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x402007
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 8]
call fcn.00404280
call fcn.0040c660
ret

Function at 0x40275a
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x420204]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00410fc0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ebx, [ebp - 0x20c]
call fcn.004040c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aedb
leave
ret

Function at 0x4027cf
Capabilities:
Get common file path
Get session user name

Disassembly:
push 0x320
mov eax, 0x417b9d
call fcn.0040c62a
and dword [ebp - 0x324], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
mov esi, ecx
push eax
mov dword [ebp - 0x32c], esi
call fcn.00410fc0
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x31c]
push eax
mov dword [ebp - 0x328], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
call fcn.00403f60
and dword [ebp - 4], 0
mov al, byte [ebp - 0x114]
mov byte [ebp - 0x320], al
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x324], 1
mov byte [ebp - 0x31f], 0
call fcn.004042d0
mov eax, esi
call fcn.0040c674
ret

Function at 0x4028f1
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x418115
call fcn.0040c5c1
sub esp, 0x20
lea ebx, [ebp + 8]
mov esi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esp
call fcn.00404160
call fcn.004050f0
add esp, 0x20
lea esi, [ebp + 0x28]
call fcn.00404ab0
mov esi, ebx
mov edi, eax
call fcn.00404ab0
push edi
mov ecx, eax
call fcn.0040566e
pop ecx
call fcn.00404b50
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00404280
lea esi, [ebp + 0x28]
call fcn.00404280
call fcn.0040c660
ret
Function at 0x404dc0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x420204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.00404d10
add esp, 4
cmp al, 1
jne 0x404dfb
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aedb
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x210]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404e05
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e18
sub eax, edx
mov cl, byte [ebp + eax - 0x211]
lea eax, [ebp + eax - 0x211]
cmp cl, 0x5c
je 0x404e39
cmp cl, 0x2f
jne 0x404e3c
mov byte [eax], 0
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e45
sub eax, edx
mov esi, eax
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.00410fc0
add esp, 0xc
xor ebx, ebx
test esi, esi
jle 0x404f48
mov byte [ebp - 0x213], bl
mov al, byte [ebp + ebx - 0x210]
cmp al, 0x5c
je 0x404eaf
mov byte [ebp - 0x214], al
lea eax, [ebp - 0x214]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404e95
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ea5
jmp 0x404efb
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x404ed4
push 0x80
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x214]
mov byte [ebp - 0x214], 0x5c
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404ee3
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ef3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x218]
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
cmp ebx, eax
jne 0x404f3b
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x404f3b
push 0x80
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc ebx
cmp ebx, dword [ebp - 0x218]
jl 0x404e7c
lea edx, [ebp - 0x108]
push edx
call fcn.00404d10
xor ecx, ecx
add esp, 4
test al, al
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040aedb
mov esp, ebp
pop ebp
ret
Function at 0x405c12
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x405c5a
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x405c2b
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x405c5f
test ecx, ecx
je 0x405c5a
test edi, edi
jne 0x405c20
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405c5c

Function at 0x407b26
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x407b2e
mov dword [ecx*4 + 0x8492e0], eax
inc ecx
cmp ecx, 0x100
jb 0x407b29
mov edx, 0x800
jmp 0x407b7b
mov eax, dword [ecx*4 + 0x848ee0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x8492e0]
inc ecx
mov dword [ecx*4 + 0x8492dc], eax
cmp ecx, edx
jb 0x407b5a
mov dword [0x8480f8], 0x40844e
call fcn.004085b0
test eax, eax
jne 0x407b9c
mov dword [0x8480f8], 0x4084ea
pop esi
ret
Function at 0x4089b9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4089d0
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4089ef
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4089f4
inc edi
cmp edi, dword [ebp - 8]
jb 0x4089e6
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x408ae3
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x408a76
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x408a20
cmp cl, 0xff
jne 0x408aa5
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
lea ebx, [esi - 5]
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x408ab6
movzx esi, byte [edx + 0x41da34]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x408a66
cmp cl, 0xff
jne 0x408ab3
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x408a3e
dec ecx
shl edx, cl
and edx, 7
je 0x408a0d
movzx ecx, byte [edx + 0x41da34]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x41da2c], 0
mov cl, byte [ebx + 4]
je 0x408aa2
test cl, cl
je 0x408aa2
cmp cl, 0xff
jne 0x408a0d
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4089e1
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4089e1
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40aedb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420204]
jne 0x40aee5
repz ret
jmp fcn.0040e06d

Function at 0x40b626
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 0x40b64d
call fcn.0040e2db
mov dword [eax], esi
call fcn.0040e2c8
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040eaf9
mov eax, esi
jmp 0x40b6a2
test dword [ebp + 0xc], 0xfffffff9
jne 0x40b633
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b67a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e2ee
pop ecx
call fcn.0040e2c8
mov eax, dword [eax]
jmp 0x40b6a2
test al, 0x10
jne 0x40b6a0
test al, 1
je 0x40b6a0
test byte [ebp + 0xc], 2
je 0x40b6a0
call fcn.0040e2db
mov dword [eax], 5
call fcn.0040e2c8
mov dword [eax], 0xd
jmp 0x40b671
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4167fa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420204]
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.0040f819
and dword [ebp - 0x14], 0
cmp dword [0x4478e4], 0
mov dword [ebp - 0x18], eax
jne 0x4168ad
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416955
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41bfac
push ebx
call edi
test eax, eax
je 0x416955
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4478e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4478e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4478ec], eax
call edi
push eax
call esi
mov dword [0x4478f4], eax
test eax, eax
je 0x4168ad
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4478f0], eax
mov eax, dword [0x4478f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416906
cmp dword [0x4478f4], ecx
je 0x416906
push eax
call esi
push dword [0x4478f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416906
test ebx, ebx
je 0x416906
call edi
test eax, eax
je 0x4168fd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4168fd
test byte [ebp - 8], 1
jne 0x416906
or dword [ebp + 0x10], 0x200000
jmp 0x416939
mov eax, dword [0x4478e8]
cmp eax, dword [ebp - 0x18]
je 0x416939
push eax
call esi
test eax, eax
je 0x416939
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416939
mov eax, dword [0x4478ec]
cmp eax, dword [ebp - 0x18]
je 0x416939
push eax
call esi
test eax, eax
je 0x416939
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4478e4]
call esi
test eax, eax
je 0x416955
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416957
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aedb
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4222c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x42ce60]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
movzx eax, word [esp + 0x34]
push 0x426f80
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00403ae9
push 0
push 0x1002
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.00403f61
test eax, eax
je 0x4013f1
push ebx
push esi
lea ecx, [esp + 0x18]
call fcn.004037f5
lea ecx, [esp + 0x10]
call fcn.00403a83
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push 0x426f88
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00403bf1
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x401da0
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 0x401db9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401df4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401df0
lea ebx, [ebx]
cmp esi, eax
jae 0x401df4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401de0
cmp esi, eax
jb 0x401dfa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb esp, dword [ecx]
add byte [eax], al
test dword [edi + 0x5b], ebx
ret

Function at 0x40fc03
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42ce60]
jne 0x40fc0d
repz ret
jmp fcn.0041456c

Function at 0x41a600
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413f7b
and dword [ebp - 4], 0
cmp dword [0x430ac0], 0
mov ebx, eax
jne 0x41a6b1
push 0x425cf8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a762
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x425cec
push edi
call esi
test eax, eax
je 0x41a762
push eax
call fcn.00413f09
mov dword [esp], 0x425cdc
push edi
mov dword [0x430ac0], eax
call esi
push eax
call fcn.00413f09
mov dword [esp], 0x425cc8
push edi
mov dword [0x430ac4], eax
call esi
push eax
call fcn.00413f09
mov dword [esp], 0x425cac
push edi
mov dword [0x430ac8], eax
call esi
push eax
call fcn.00413f09
pop ecx
mov dword [0x430ad0], eax
test eax, eax
je 0x41a6b1
push 0x425c94
push edi
call esi
push eax
call fcn.00413f09
pop ecx
mov dword [0x430acc], eax
mov eax, dword [0x430acc]
cmp eax, ebx
je 0x41a709
cmp dword [0x430ad0], ebx
je 0x41a709
push eax
call fcn.00413f84
push dword [0x430ad0]
mov esi, eax
call fcn.00413f84
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a709
test edi, edi
je 0x41a709
call esi
test eax, eax
je 0x41a700
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a700
test byte [ebp - 0xc], 1
jne 0x41a709
or dword [ebp + 0x10], 0x200000
jmp 0x41a742
mov eax, dword [0x430ac4]
cmp eax, ebx
je 0x41a742
push eax
call fcn.00413f84
pop ecx
test eax, eax
je 0x41a742
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a742
mov eax, dword [0x430ac8]
cmp eax, ebx
je 0x41a742
push eax
call fcn.00413f84
pop ecx
test eax, eax
je 0x41a742
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x430ac0]
call fcn.00413f84
pop ecx
test eax, eax
je 0x41a762
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a764
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406030
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
lea eax, [0x5705dc]
push eax
push 0
push 2
call sub.KERNEL32.dll_OpenFileMappingA
mov dword [0x589f84], eax
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [0x589f80], eax
mov edx, dword [0x589f80]
add esp, 4
mov dword [0x589f8c], edx
cmp dword [0x589f8c], 0
jne 0x4060aa
sub esp, 4
mov dword [0x589f88], 0x704
push 0x704
call fcn.0055fc30
add esp, 8
mov dword [0x589f8c], eax
sub esp, 4
lea edx, str.hEventIter
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
lea edx, str.hEventUnsOut
mov dword [0x589f7c], eax
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
lea edx, str.hEventFinishedOK
mov dword [0x589f78], eax
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
lea edx, [0x57059c]
mov dword [0x589f74], eax
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
add esp, 4
mov dword [0x589f70], eax
call sub.KERNEL32.dll_GetCurrentThread
mov esp, ebp
mov dword [0x589f6c], eax
pop ebp
ret
Function at 0x538da0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], 1
mov dword [0x59bc68], ebx
mov dword [0x59bc6c], 0x595e78
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 4]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
push ecx
call fcn.0053b7b0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + esi - 1]
cmp esi, edi
ja 0x538f35
cmp esi, edi
ja 0x538f35
cmp dword [0x585fa8], 1
jle 0x538e1c
movsx ecx, byte [esi]
push 8
push ecx
call fcn.00560e59
add esp, 8
jmp 0x538e2a
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x538e31
inc esi
jmp 0x538dfb
mov ecx, dword [0x59bc68]
mov eax, dword [ebp - 8]
inc ecx
cmp ecx, eax
mov dword [0x59bc68], ecx
jle 0x538e99
cmp eax, 1
jne 0x538e7a
push 0x59bc6c
push 0
push 0x2c
mov dword [ebp - 8], 0xb
call fcn.0053b7b0
add esp, 0xc
test eax, eax
jne 0x538f37
mov ecx, dword [0x59bc6c]
mov edx, dword [0x595e78]
mov dword [ecx], edx
jmp 0x538e99
add eax, 0xa
push 0x59bc6c
mov dword [ebp - 8], eax
shl eax, 2
push eax
call fcn.0053b7f0
add esp, 8
test eax, eax
jne 0x538f37
mov ecx, dword [0x59bc6c]
mov eax, dword [0x59bc68]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 - 4], edx
cmp esi, edi
ja 0x538f20
cmp byte [esi], 0x22
jne 0x538edf
inc esi
test ebx, ebx
je 0x538ed5
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x22
jne 0x538edf
cmp esi, edi
ja 0x538eda
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x22
mov ecx, dword [ebp - 4]
inc ecx
inc esi
mov dword [ebp - 4], ecx
jmp 0x538eda
mov ebx, 1
cmp byte [esi], 0x22
je 0x538eb4
test ebx, ebx
jne 0x538f0f
cmp dword [0x585fa8], 1
jle 0x538efc
movsx edx, byte [esi]
push 8
push edx
call fcn.00560e59
add esp, 8
jmp 0x538f0b
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x538f20
mov eax, dword [ebp - 4]
mov dl, byte [esi]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
inc ecx
inc esi
mov dword [ebp - 4], ecx
jmp 0x538eab
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov ecx, dword [ebp - 4]
inc ecx
cmp esi, edi
mov dword [ebp - 4], ecx
jbe 0x538e03
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret