joyce8/EMBER2024-capa huggingface dataset:
Function at 0xac24a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x106000]
push edi
or ebp, 0xffffffff
jmp 0xac24c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xac24c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac24b8
mov eax, 1
add ebx, ebx
jne 0xac24db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xac24ec
jne 0xac250b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac250b
dec eax
add ebx, ebx
jne 0xac24f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xac24d0
add ebx, ebx
jne 0xac2507
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xac255d
xor ecx, ecx
sub eax, 3
jb 0xac2523
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xac2592
sar eax, 1
mov ebp, eax
jmp 0xac252e
add ebx, ebx
jne 0xac252e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac24fc
inc ecx
add ebx, ebx
jne 0xac253c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xac24fc
add ebx, ebx
jne 0xac2549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xac253e
jne 0xac255a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xac253e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xac257c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xac256e
jmp 0xac24be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xac257c
add edi, ecx
jmp 0xac24be
pop esi
mov edi, esi
mov ecx, 0x5ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xac259a
cmp byte [edi], 0x1e
jne 0xac259a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xac259f
lea edi, [esi + 0x6bf000]
mov eax, dword [edi]
or eax, eax
je 0xac2617
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6dbaf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6dbc58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xac25cc
mov ecx, edi
jns 0xac25fb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6dbc5c]
or eax, eax
je 0xac2611
mov dword [ebx], eax
add ebx, 4
jmp 0xac25e9
call dword [esi + 0x6dbc6c]
mov ebp, dword [esi + 0x6dbc60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xac264b
sub esp, 0xffffff80
jmp 0x4d229f
Function at 0x401a40
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
ret 8

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x401a66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43714c]
jne 0x401a70
repz ret
jmp fcn.0040251b

Function at 0x40b0ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43714c]
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.00404134
and dword [ebp - 0x14], 0
cmp dword [0x4397d8], 0
mov dword [ebp - 0x18], eax
jne 0x40b161
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b209
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b209
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4397d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4397dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4397e0], eax
call edi
push eax
call esi
mov dword [0x4397e8], eax
test eax, eax
je 0x40b161
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4397e4], eax
mov eax, dword [0x4397e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b1ba
cmp dword [0x4397e8], ecx
je 0x40b1ba
push eax
call esi
push dword [0x4397e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b1ba
test ebx, ebx
je 0x40b1ba
call edi
test eax, eax
je 0x40b1b1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b1b1
test byte [ebp - 8], 1
jne 0x40b1ba
or dword [ebp + 0x10], 0x200000
jmp 0x40b1ed
mov eax, dword [0x4397dc]
cmp eax, dword [ebp - 0x18]
je 0x40b1ed
push eax
call esi
test eax, eax
je 0x40b1ed
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b1ed
mov eax, dword [0x4397e0]
cmp eax, dword [ebp - 0x18]
je 0x40b1ed
push eax
call esi
test eax, eax
je 0x40b1ed
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4397d8]
call esi
test eax, eax
je 0x40b209
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b20b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a66
leave
ret
Function at 0x42fe00
Capabilities:
Get geographical location

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x42fe8e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
cmp dword [esp + 0x18], 0x2d
jne 0x42fe4c
push 0
push str.vepamanal_tulesizoxe_yabadodopa_zokorubonoxesiticohub_foyidufumobowebacaxosububonobo
call edi
push str.wuviyakox
push str.yekukefocudovizene
push str.kaluravujokiziduyux
push str.vixuboxituja
call ebx
push 0
call ebp
call fcn.0042fd50
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], al
cmp dword [esp + 0x18], 0xf
jne 0x42fe84
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push str.tigegisipawupesavumefozoj
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x42fe22
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc], 0x2d
pop esi
jne 0x42feaa
mov dword [0x43a8d0], 0xa62e7790
mov dword [0x43a8d4], 0xffffffff
ret
Function at 0x430250
Capabilities:
Access the windows event log
Set file attributes

Disassembly:
mov eax, dword [0x43a8c4]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, 0x1519a5
lea esp, [esp]
mov dword [0x43a52c], 0x8e46a7b8
cmp eax, 0x3dc
jne 0x43029a
push 0
push 0x434f78
call esi
push str.rusokuj
push 0
push 0
call edi
mov eax, dword [0x43a8c4]
dec ebp
jne 0x430270
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
xor esi, esi
mov ebp, 0xec58acac
lea ebx, [ebx]
cmp eax, 0x997
jne 0x4302c2
push 0
push 0
call edi
mov eax, dword [0x43a8c4]
cmp esi, 0x846373
jne 0x4302d9
mov eax, dword [0x438ad0]
add eax, 0xa231
mov dword [0x43a8c4], eax
cmp eax, 0x141
jne 0x4302f0
mov dword [0x439d18], ebp
mov dword [0x439d1c], 0xffffffff
inc esi
cmp esi, 0x123c962
jl 0x4302b0
call fcn.0042fef0
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x407df4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x2418008], 0x8088405
inc edx
mov dword [ebx + 0x2418008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x420f6c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420fc5
test eax, edx
je 0x420fc8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420f83
movzx eax, word [eax]
sub eax, ecx
jmp 0x420faa
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x420fab
add ecx, 4
js 0x420f9b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420fa8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420faa
xor eax, eax
ret
test eax, eax
je 0x420fd4
test edx, edx
jne 0x420f74
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x429248
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040acc4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fad0
mov edi, eax
cmp edi, 0x104
jbe 0x4291f3
mov eax, edi
add eax, eax
call fcn.00407a0c
mov esi, eax
jmp 0x4291f5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fad0
push esi
call fcn.004149fc
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42922e
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x429218
mov eax, esp
cmp esi, eax
je 0x42923b
mov eax, esi
call fcn.00407a28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x429274
cmp bl, 0
je 0x429270
cmp bl, 0x41
jl 0x42926b
cmp bl, 0x5a
jg 0x42926b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42924f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4291b4
Function at 0x4811f8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x481200
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e125c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4e1262
ret
Function at 0x431004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x40ba57
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0040b4a0
mov eax, dword [0x41f4b4]
xor ebx, ebx
mov edi, dword [esp + 0xc]
test eax, eax
je 0x40bac2
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov edx, eax
pop ecx
pop ecx
test edx, edx
jne 0x40ba94
mov edx, dword [0x41f4b4]
jmp 0x40ba97
add edx, 2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ba9c
sub ecx, esi
sar ecx, 1
push ebx
lea eax, [ecx + ecx]
push eax
push edx
push dword [edi]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x40bac2
push 7
pop ecx
int 0x29
cmp word [0x41f484], bx
je 0x40bb72
mov dword [0x41f528], ebx
xor edi, edi
mov dword [0x41f52c], ebx
push 0x2e
push 0x41f484
call dword [sym.imp.msvcrt.dll_wcsrchr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40bb29
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x40baf7
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40bb1f
push 0x402d08
push edi
push dword [0x41f4b4]
call fcn.0040cff7
add esp, 0xc
xor eax, eax
mov word [esi], ax
add esi, 2
jmp 0x40bb2e
mov esi, 0x41f484
push 0xa
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
xor edx, edx
mov ecx, ebx
call fcn.0041e1e0
mov ecx, dword [0x41f528]
add ebx, 0x10
or ecx, eax
mov eax, dword [0x41f52c]
or eax, edx
mov dword [0x41f528], ecx
mov dword [0x41f52c], eax
cmp ebx, 0x40
jl 0x40badd
mov edi, dword [esp + 0xc]
xor ebx, ebx
jmp 0x40bb7d
mov eax, dword [0x41f52c]
mov ecx, dword [0x41f528]
or ecx, eax
je 0x40bb9a
push ebx
push 8
push 0x41f528
push dword [edi]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
test eax, eax
jns 0x40bb9a
push 7
pop ecx
int 0x29
mov edx, 0x41f460
lea ecx, [esp + 0xc]
call fcn.0040b576
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40be34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
test ebx, ebx
je 0x40be89
test esi, esi
je 0x40be89
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], 0x402f48
jne 0x40be5f
mov dword [ebp - 4], 0x402f54
mov edx, dword [ebp + 8]
xor eax, eax
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.0040b5e8
test eax, eax
jns 0x40be92
push eax
push ebx
push 0x402f60
push 0
push 0x402b04
call fcn.0040cff7
add esp, 0x14
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
mov edi, esi
xor edx, edx
mov dword [ebp - 8], edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x40be9c
push dword [ebp - 4]
mov edx, dword [ebp + 8]
sub edi, ecx
mov ecx, esi
sar edi, 1
call fcn.0040b5e8
test eax, eax
jns 0x40bec8
push eax
push ebx
push 0x402fd8
xor eax, eax
push eax
jmp 0x40be7c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bf5b
inc edi
mov dword [ebp - 0xc], edi
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 8]
jne 0x40bee1
sub ecx, edx
lea edx, [esi + edi*2]
sar ecx, 1
cmp edi, ecx
jae 0x40bf0a
sub ecx, edi
xor eax, eax
shr ecx, 1
mov edi, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov edi, dword [ebp - 0xc]
cmp byte [ebp + 0xc], 0
je 0x40bf1f
mov ecx, dword [0x41f534]
inc ecx
mov dword [0x41f534], ecx
jmp 0x40bf2c
mov eax, dword [0x41f524]
inc eax
mov dword [0x41f524], eax
mov ecx, eax
mov eax, dword [ebp + 8]
push 0xa
sub eax, edi
push eax
push edx
push ecx
call fcn.0041d700
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, esi
push dword [ebp - 4]
call fcn.0040b5e8
test eax, eax
js 0x40bf62
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bedc
mov al, 1
jmp 0x40be8b
push eax
push ebx
push 0x403050
jmp 0x40bec3
Function at 0x40c45b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xe8
mov eax, 0x41e29f
call fcn.0041dfe9
mov eax, ecx
mov dword [ebp - 0xec], eax
test eax, eax
jne 0x40c47d
xor al, al
jmp 0x40c6d7
xor ebx, ebx
mov dword [ebp - 0xe8], 0x401028
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
lea edx, [ebp - 0xe8]
mov dword [ebp - 4], ebx
mov ecx, eax
call fcn.0040d6bd
test al, al
je 0x40c6ca
push 2
push ebx
push dword [ebp - 0xdc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0xf4], esi
test esi, esi
je 0x40c6b6
push ebx
push 1
push 0x402c3c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40c69f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xf0], eax
test eax, eax
je 0x40c6b3
push 0x21
mov esi, eax
lea edi, [ebp - 0xd8]
pop ecx
mov eax, 0xfecdfecd
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0xd8], eax
je 0x40c52a
push 0x403218
push ebx
push dword [ebp - 0xec]
jmp 0x40c6c2
push eax
push 0x403274
call fcn.0040d1fa
push dword [ebp - 0xd4]
push 0x4032b0
call fcn.0040d1fa
push dword [ebp - 0xd0]
push 0x4032e8
call fcn.0040d1fa
add esp, 0x18
cmp dword [ebp - 0xcc], 0
je 0x40c573
push dword [ebp - 0xcc]
push 0x403320
call fcn.0040d1fa
pop ecx
pop ecx
push dword [ebp - 0xc8]
push 0x403360
call fcn.0040d1fa
push dword [ebp - 0xc4]
push 0x403398
call fcn.0040d1fa
xor ebx, ebx
add esp, 0x10
inc ebx
cmp dword [ebp - 0xc0], ebx
jne 0x40c5a8
push 0x4033d0
jmp 0x40c5b6
cmp dword [ebp - 0xc0], 2
jne 0x40c5bc
push 0x403428
call fcn.0040d1fa
pop ecx
push ecx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0040c1cf
test eax, eax
js 0x40c5e0
lea eax, [ebp - 0x54]
push eax
push 0x40347c
call fcn.0040d1fa
pop ecx
pop ecx
push ecx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0xac]
call fcn.0040c1cf
test eax, eax
js 0x40c604
lea eax, [ebp - 0x54]
push eax
push 0x4034b4
call fcn.0040d1fa
pop ecx
pop ecx
mov esi, dword [ebp - 0xf0]
mov ecx, esi
mov edx, dword [ebp - 0x94]
push 0x4034ec
push dword [ebp - 0x90]
call fcn.0040c244
mov edx, dword [ebp - 0x84]
mov ecx, esi
push 0x403520
push dword [ebp - 0x80]
call fcn.0040c2cf
mov edx, dword [ebp - 0x7c]
mov ecx, esi
push 0x403554
push dword [ebp - 0x78]
call fcn.0040c3a2
mov edx, dword [ebp - 0x74]
mov ecx, esi
push 0x403588
push dword [ebp - 0x70]
call fcn.0040c2cf
mov edx, dword [ebp - 0x6c]
mov ecx, esi
push 0x4035bc
push dword [ebp - 0x68]
call fcn.0040c3a2
mov edx, dword [ebp - 0x64]
mov ecx, esi
push 0x4035f0
push dword [ebp - 0x60]
call fcn.0040c244
mov edx, dword [ebp - 0x5c]
mov ecx, esi
push 0x403628
push dword [ebp - 0x58]
call fcn.0040c244
push dword [ebp - 0xf4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x40c6ca
push 0x403668
push ebx
push dword [ebp - 0xdc]
call fcn.0040cff7
add esp, 0xc
push esi
jmp 0x40c697
push 0x403698
push ebx
push dword [ebp - 0xdc]
call fcn.0040cff7
add esp, 0xc
lea ecx, [ebp - 0xe8]
call fcn.0040d2d0
mov al, bl
call fcn.0041dfa7
ret
Function at 0x40e0e8
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41f0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 2
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40e12d
call fcn.0040d902
xor al, al
jmp 0x40e1e8
push esi
cmp byte [0x41f531], bl
je 0x40e146
push 3
push ebx
push 0x4040c8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40e14d
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e16d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push dword [ebp - 0xc]
push 4
call fcn.0040d0e5
add esp, 0x10
xor al, al
jmp 0x40e1e7
push ebx
push 0x64
push 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x40e187
call fcn.0040d902
jmp 0x40e1c6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40e1c6
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40e1c6
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e180
mov bl, 1
test edi, edi
je 0x40e1d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x41f531], 0
je 0x40e1e5
test esi, esi
je 0x40e1e5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0041d1b0
leave
ret 4
Function at 0x40e1f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0xc], edi
test eax, eax
je 0x40e388
mov esi, dword [eax + 0x18]
movzx eax, word [eax + 0x2a]
mov dword [ebp - 0x24], eax
test esi, esi
je 0x40e388
push esi
call fcn.0040e0e8
test al, al
je 0x40e388
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ecx, eax
mov dword [ebp - 0x18], ecx
test ecx, ecx
je 0x40e335
mov eax, dword [edi + 0x38]
mov esi, dword [eax + 8]
test esi, esi
je 0x40e325
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 8]
mov dword [ebp - 8], edx
jmp 0x40e30f
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [ebp - 4], ecx
jmp 0x40e301
movzx eax, word [eax + 0x10]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push ecx
push edx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40e359
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40e33a
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov eax, dword [ebp - 0x24]
test ax, ax
je 0x40e2d7
movzx ecx, ax
jmp 0x40e2dd
mov ecx, dword [ebp - 0x14]
movzx ecx, cx
push dword [ebp - 0x1c]
push edx
push ecx
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x40e33e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x40e274
mov edi, dword [edi + 4]
test edi, edi
jne 0x40e266
mov esi, dword [esi + 4]
test esi, esi
jne 0x40e258
mov ecx, dword [ebp - 0x18]
call fcn.00418c17
mov ecx, eax
test ecx, ecx
setne bl
test ecx, ecx
jne 0x40e33a
call fcn.0040d902
mov al, bl
jmp 0x40e38a
call fcn.0040d902
mov eax, dword [ebp - 4]
push ebx
movzx eax, ax
push eax
mov eax, dword [ebp - 8]
movzx eax, ax
push eax
push 0x404180
jmp 0x40e378
call fcn.0040d902
mov ecx, dword [ebp - 0x14]
movzx eax, cx
push eax
mov eax, dword [ebp - 4]
movzx eax, ax
push eax
mov eax, dword [ebp - 8]
movzx eax, ax
push eax
push 0x4040e8
push ebx
push 0x402b04
call fcn.0040cff7
add esp, 0x18
jmp 0x40e33a
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4