joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cb4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7bad70
push esi
call fcn.00406234
push esi
call fcn.00405c5f
mov edi, eax
test edi, edi
jne 0x405cd5
xor eax, eax
jmp 0x405d27
push edi
call fcn.00406512
test byte [0x7c5f78], 0x80
je 0x405cee
mov al, byte [edi]
test al, al
je 0x405cd1
cmp al, 0x5c
je 0x405cd1
sub edi, esi
jmp 0x405d06
call fcn.004065ab
test eax, eax
je 0x405d00
test byte [eax], 0x10
je 0x405cd1
push esi
call fcn.00405c0d
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405cf2
call fcn.00405bc6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405da2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405dc1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405dc7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405df6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3d4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405e3b
test edi, edi
jne 0x405e01
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405e35
Function at 0x405e9d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7bd2f8], 0x4c554e
mov edi, 0x400
mov ebp, 0x7bd2f8
je 0x405ee9
push 1
push 0
push esi
call fcn.00405dc7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406008
cmp eax, edi
jg 0x406008
mov esi, 0x7bd6f8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406008
cmp eax, edi
jg 0x406008
push esi
push ebp
push str._s_s_r_n
push 0x7bcef8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7c5f70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062c7
push 4
push 0xc0000000
push esi
call fcn.00405dc7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406008
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406001
push edi
push esi
push ebp
call fcn.00405e3f
test eax, eax
je 0x406001
push str._Rename__r_n
push esi
call fcn.00405d2c
test eax, eax
jne 0x405f9f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405fd4
add eax, 0xa
push 0x40a3d8
push eax
call fcn.00405d2c
mov ebp, eax
test ebp, ebp
je 0x405fd0
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405fc1
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405fbb
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405fd6
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7bcef8
push eax
call fcn.00405d82
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e6e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40600d
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x406030
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405e9d
pop ecx
pop ecx
inc dword [0x7c5ff0]
ret 8

Function at 0x40611b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x2000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060ba
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40618a
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x1fff], 0
test edi, edi
pop edi
jne 0x40618a
cmp dword [ebp + 0xc], 1
je 0x40618d
cmp dword [ebp + 0xc], 2
je 0x40618d
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065d2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065f6
xor eax, eax
test eax, eax
je 0x406608
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406608
xor ecx, ecx
jmp 0x40660b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x7bdafc], 0
push esi
jne 0x40672e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406708
mov dword [ecx*4 + 0x7bdaf8], eax
inc ecx
cmp ecx, 0x100
jl 0x406703
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40675f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7bdaf8]
xor eax, esi
inc ecx
dec edx
jne 0x406741
pop edi
not eax
pop esi
ret 0xc
Function at 0x417580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x4175a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4175a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417598
mov eax, 1
add ebx, ebx
jne 0x4175bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4175b0
jne 0x4175cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4175b0
xor ecx, ecx
sub eax, 3
jb 0x4175e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x417652
mov ebp, eax
add ebx, ebx
jne 0x4175eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4175f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41761c
inc ecx
add ebx, ebx
jne 0x417608
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4175fd
jne 0x417619
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4175fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41763c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41762d
jmp 0x41759e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41763c
add edi, ecx
jmp 0x41759e
pop esi
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x41769b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1b9ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ba20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x417659
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ba28]
or eax, eax
je 0x417695
mov dword [ebx], eax
add ebx, 4
jmp 0x417676
call dword [esi + 0x1ba24]
mov ebp, dword [esi + 0x1ba2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4176cf
sub esp, 0xffffff80
jmp 0x403008
Function at 0x4016ea
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
push dword [esi + 0x1438]
xor ebp, ebp
call fcn.00402d6c
pop ecx
push ebp
push dword [esi + 0x1430]
lea edi, [esi + 0x142c]
push dword [edi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll__llseek]
push dword [esi + 0x1438]
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll__lread]
xor ecx, ecx
cmp eax, dword [esi + 0x1438]
jne 0x401785
cmp ecx, dword [esi + 0x143c]
jne 0x401785
push ecx
lea eax, [esi + 0x1224]
push eax
call dword [sym.imp.KERNEL32.dll__lcreat]
cmp eax, 0xffffffff
mov dword [esi + 0x1440], eax
jne 0x401762
push str.Unable_to_open_setup_file
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x37
jmp 0x401796
xor eax, eax
xor byte [eax + ebx], 7
inc eax
cmp eax, 0x7d0
jl 0x401764
push dword [esi + 0x1438]
push ebx
push dword [esi + 0x1440]
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x401797
push str.Failed_to_read_setup_engine
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x36
pop ebp
push ebx
call fcn.00402c8f
mov esi, dword [esi + 0x1440]
cmp esi, 0xffffffff
pop ecx
je 0x4017b0
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x4017b7
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40c020]
xor eax, ebp
mov dword [ebp + 0x88], eax
push ebx
push esi
mov esi, dword [ebp + 0x94]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov dword [ebp - 0x80], 1
call edi
cmp byte [esi + eax - 1], 0x5c
je 0x4017fe
push 0x409308
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call edi
push 0x104
mov ebx, eax
xor edi, edi
lea eax, [ebp - 0x7c]
push edi
push eax
call fcn.00401f60
add esp, 0xc
cmp ebx, 2
jle 0x401867
cmp byte [esi + 1], 0x3a
jne 0x401867
test ebx, ebx
jle 0x40186a
lea eax, [ebp - 0x7c]
sub esi, eax
cmp dword [ebp - 0x80], 0
je 0x40186a
lea eax, [ebp + edi - 0x7c]
mov cl, byte [esi + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x401860
cmp edi, 2
je 0x401860
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401860
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x80], eax
inc edi
cmp edi, ebx
jl 0x40182b
jmp 0x40186a
mov dword [ebp - 0x80], edi
mov ecx, dword [ebp + 0x88]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401fda
add ebp, 0x8c
leave
ret 4
Function at 0x401eeb
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.0040143d
mov ecx, esi
call fcn.00401452
mov edi, eax
test edi, edi
jne 0x401f24
mov ecx, esi
call fcn.004018ee
mov edi, eax
test edi, edi
jne 0x401f24
mov ecx, esi
call fcn.004016ea
mov edi, eax
test edi, edi
jne 0x401f24
mov ecx, esi
call fcn.00401ba3
mov edi, eax
cmp dword [0x40d044], 0
jne 0x401f4f
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x1224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x1328
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401fda
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c020]
jne 0x401fe4
repz ret
jmp fcn.00401000

Function at 0x404219
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40c820]
je 0x404234
inc edi
cmp edi, 0x17
jb 0x404225
cmp edi, 0x17
jae 0x4043b4
push ebp
push 3
call fcn.00407211
cmp eax, 1
pop ecx
je 0x404380
push 3
call fcn.00407211
test eax, eax
pop ecx
jne 0x404268
cmp dword [0x40c05c], 1
je 0x404380
cmp ebx, 0xfc
je 0x4043b3
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40d248
push ebp
call fcn.004064a9
add esp, 0xc
test eax, eax
je 0x40429e
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
push 0x104
mov esi, 0x40d261
push esi
push 0
mov byte [0x40d365], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4042e2
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004064a9
add esp, 0xc
test eax, eax
je 0x4042e2
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040110a
add esp, 0x14
push esi
call fcn.00406510
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x404327
push esi
call fcn.00406510
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40d55c
push 0x409b0c
sub ecx, eax
push ecx
push eax
call fcn.004063f6
add esp, 0x14
test eax, eax
je 0x404327
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
jmp 0x404329
xor esi, esi
push 0x409b08
push ebx
push ebp
call fcn.0040633e
add esp, 0xc
test eax, eax
je 0x404349
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
push dword [edi*8 + 0x40c824]
push ebx
push ebp
call fcn.0040633e
add esp, 0xc
test eax, eax
je 0x40436b
push esi
push esi
push esi
push esi
push esi
call fcn.0040110a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407054
add esp, 0xc
jmp 0x4043b3
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4043b3
cmp ebp, 0xffffffff
je 0x4043b3
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c824]
push dword [esi]
call fcn.00406510
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x407054
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004020c3
xor ebx, ebx
cmp dword [0x40d6b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40712a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40720a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40a510
push edi
call esi
cmp eax, ebx
je 0x40720a
push eax
call fcn.00402055
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d6b8], eax
call esi
push eax
call fcn.00402055
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d6bc], eax
call esi
push eax
call fcn.00402055
mov dword [0x40d6c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040264e
test eax, eax
pop ecx
pop ecx
je 0x4070f8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040110a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40712a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402055
cmp eax, ebx
pop ecx
mov dword [0x40d6c8], eax
je 0x40712a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402055
pop ecx
mov dword [0x40d6c4], eax
mov eax, dword [0x40d6c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4071af
cmp dword [0x40d6c8], ecx
je 0x4071af
push eax
call fcn.004020cc
push dword [0x40d6c8]
mov esi, eax
call fcn.004020cc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4071af
cmp edi, ebx
je 0x4071af
call esi
cmp eax, ebx
je 0x40717c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40717c
test byte [ebp - 0x18], 1
jne 0x4071af
lea eax, [ebp - 0x10]
push eax
call fcn.00402685
test eax, eax
pop ecx
je 0x407197
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040110a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4071a6
or dword [ebp + 0x10], 0x200000
jmp 0x4071ea
or dword [ebp + 0x10], 0x40000
jmp 0x4071ea
mov eax, dword [0x40d6bc]
cmp eax, dword [ebp - 8]
je 0x4071ea
push eax
call fcn.004020cc
cmp eax, ebx
pop ecx
je 0x4071ea
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4071ea
mov eax, dword [0x40d6c0]
cmp eax, dword [ebp - 8]
je 0x4071ea
push eax
call fcn.004020cc
cmp eax, ebx
pop ecx
je 0x4071ea
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d6b8]
call fcn.004020cc
cmp eax, ebx
pop ecx
je 0x40720a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40720c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
jne 0x401e83
xor al, al
jmp 0x401f37
mov dword [ebp - 4], 0
push 0x4a3624
mov eax, dword [ebp + 8]
push eax
call fcn.00422de1
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401eab
xor al, al
jmp 0x401f37
mov ecx, dword [ebp - 4]
push ecx
call fcn.00423065
add esp, 4
push eax
call fcn.00421c9e
add esp, 4
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.004216fd
add esp, 4
mov dword [0x4ae1f8], eax
cmp dword [0x4ae1f8], 0
jne 0x401eed
mov eax, dword [ebp - 4]
push eax
call fcn.00423471
add esp, 4
xor al, al
jmp 0x401f37
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 1
mov eax, dword [0x4ae1f8]
push eax
call fcn.00422fb9
add esp, 0x10
mov ecx, dword [0x4ae1f8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0x504d444d
je 0x401f29
mov eax, dword [ebp - 4]
push eax
call fcn.00423471
add esp, 4
xor al, al
jmp 0x401f37
mov ecx, dword [ebp - 4]
push ecx
call fcn.00423471
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x4056f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x405714
xor eax, eax
jmp 0x405794
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40572b
xor eax, eax
jmp 0x405794
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x405777
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x405777
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40574e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x405783
xor eax, eax
jmp 0x405794
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x405791
xor eax, eax
jmp 0x405794
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406ad0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48d940
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4aa6e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 8], 0
je 0x406b07
cmp dword [ebp + 0xc], 0
jne 0x406b0e
xor al, al
jmp 0x406c9f
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x406b3a
xor al, al
jmp 0x406c9f
push 0x2c
call fcn.004234e8
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x406b5a
mov ecx, dword [ebp - 0x3c]
call fcn.00406cc0
mov dword [ebp - 0x44], eax
jmp 0x406b61
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [0x4adfe8], ecx
push 0
push 0x4abf3c
push 0x4abd7c
push 0
mov edx, dword [0x4adfe8]
push edx
call fcn.0048c532
add esp, 0x14
mov dword [ebp - 0x58], eax
push 1
lea ecx, [ebp - 0x14]
call fcn.00401380
lea ecx, [ebp - 0x14]
call fcn.004013e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x140
call fcn.00401a50
push eax
lea ecx, [ebp - 0x60]
call fcn.00407810
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.00401a50
push eax
push str.hid_s_nmoduleid_s_n
lea edx, [ebp - 0x14]
push edx
call fcn.004017c0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401400
lea ecx, [ebp - 0x14]
call fcn.00401a50
push eax
lea ecx, [ebp - 0x6c]
call fcn.00405eb0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
call fcn.00405a10
push eax
lea ecx, [ebp - 0x30]
call fcn.00403a80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x6c]
call fcn.00405f20
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00403b10
push eax
lea ecx, [ebp - 0x30]
call fcn.00406ea0
push eax
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x38], 0
je 0x406c65
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0
jbe 0x406c74
mov dword [ebp - 0x40], 1
jmp 0x406c7b
mov dword [ebp - 0x40], 0
mov cl, byte [ebp - 0x40]
mov byte [ebp - 0x31], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00403ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401400
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421639
mov esp, ebp
pop ebp
ret 8
Function at 0x40c0f0
Capabilities:
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48dc74
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4aa6e8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0043da10
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.00407900
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.00406d50
mov byte [ebp - 4], 2
push str.status
lea ecx, [ebp - 0x58]
call fcn.00403a80
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x30]
call fcn.0043da10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00405c60
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
call fcn.0043dac0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x58]
call fcn.00403ac0
push 0x4a4228
lea ecx, [ebp - 0x70]
call fcn.00403a80
mov byte [ebp - 4], 8
push 0
lea ecx, [ebp - 0x40]
call fcn.0043da10
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 0x10
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call fcn.00405c60
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.0043dac0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x70]
call fcn.00403ac0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4