joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ef10
Capabilities:
Delete file

Disassembly:
sub esp, 0x270
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x26c], eax
push ebx
mov ebx, dword [esp + 0x27c]
push ebp
push edi
mov edi, dword [esp + 0x280]
mov ebp, ecx
test ebx, ebx
je 0x42f03b
test edi, edi
je 0x42f03b
mov ecx, dword [0x492c58]
push esi
test ecx, ecx
je 0x42ef5d
call fcn.0043c330
mov esi, eax
test esi, esi
jne 0x42ef67
mov eax, 2
jmp 0x42f015
lea ecx, [esp + 0x18]
push ecx
xor eax, eax
push 0
push 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
push ebx
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
push esi
call edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x42f030
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push edi
call esi
push eax
push 0x208
lea edx, [esp + 0x28]
push edx
call fcn.0040f1c0
lea eax, [ebp + 0x258]
push eax
push 0x50
lea ecx, [esp + 0x234]
push ecx
mov dword [esp + 0x234], 3
call fcn.0040f1c0
lea edx, [esp + 0x20]
push edx
lea ecx, [ebp + 0x2c0]
call fcn.0042e2b0
push edi
call esi
push eax
push str._s_is_older_than_dest_by_modify_time.
call fcn.00419ac0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x278]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045715c
add esp, 0x270
ret 8
push ebx
push edi
mov ecx, ebp
call fcn.0042ec20
jmp 0x42f013
mov eax, 2
jmp 0x42f016
Function at 0x42f050
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4725fb
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x36c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x384]
mov dword fs:[0], eax
mov eax, dword [esp + 0x394]
mov ebp, dword [esp + 0x398]
mov ebx, dword [esp + 0x39c]
mov edi, ecx
mov ecx, dword [0x492c58]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x42f0bb
call fcn.0043c330
mov esi, eax
test esi, esi
jne 0x42f0c5
mov eax, 2
jmp 0x42f27f
lea ecx, [edi + 0x238]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041e3d0
mov eax, dword [ebx]
mov edx, dword [esp + 0x18]
push eax
push edx
mov dword [esp + 0x394], 0
call fcn.0042be40
xor ebx, ebx
add esp, 8
cmp eax, ebx
jge 0x42f16a
cmp dword [edi + 0x228], ebx
je 0x42f14b
mov eax, dword [esi]
mov eax, dword [eax + 0x40]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push ebp
push esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call eax
cmp dword [esp + 0x1c], ebx
je 0x42f24a
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebp
mov dword [esp + 0x230], 2
call esi
push eax
push str._s_is_older_file_to_dest_and_check_local_sign_ok.
call fcn.00419ac0
mov ebp, dword [esp + 0x1c]
jmp 0x42f205
mov ecx, dword [esp + 0x14]
push ebp
push ecx
mov ecx, edi
call fcn.0042ef10
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041a630
mov eax, esi
jmp 0x42f27f
jne 0x42f24a
push 0xfe
lea eax, [esp + 0x286]
xor edx, edx
push ebx
push eax
mov word [esp + 0x28c], dx
call fcn.00457170
mov ecx, dword [esi]
mov eax, dword [ecx + 0x3c]
add esp, 0xc
push 0x80
lea edx, [esp + 0x284]
push edx
push ebp
push esi
call eax
lea ecx, [edi + 0x258]
lea eax, [esp + 0x280]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42f1d9
cmp dx, bx
je 0x42f1d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42f1d9
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x42f1b3
xor eax, eax
jmp 0x42f1de
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x42f24a
mov ebp, dword [esp + 0x14]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push ebp
mov dword [esp + 0x230], 1
call esi
push eax
push str._s_MD5_is_same_file_to_dest.
call fcn.00419ac0
add esp, 8
push ebp
call esi
push eax
push 0x208
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040f1c0
lea edx, [edi + 0x258]
push edx
push 0x50
lea eax, [esp + 0x238]
push eax
call fcn.0040f1c0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edi + 0x2c0]
call fcn.0042e2b0
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x42f257
mov edx, dword [esp + 0x14]
push ebp
push edx
mov ecx, edi
call fcn.0042ec20
mov esi, dword [esp + 0x18]
lea eax, [esi - 0xc]
cmp eax, dword [0x48f010]
je 0x42f27d
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f27d
push esi
call fcn.00457d84
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x384]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x36c]
xor ecx, esp
call fcn.0045715c
add esp, 0x37c
ret 0xc
Function at 0x4304c0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4304dd
mov ecx, dword [esi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x492c5c]
test eax, eax
je 0x4304f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x492c5c], 0
lea ecx, [esi + 0x48]
call fcn.0043c330
test eax, eax
je 0x43050e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x80]
call eax
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
xor eax, eax
pop esi
ret 0x10

Function at 0x430d90
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x472700
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x88c], 0
je 0x430f1d
lea edi, [esi + 0x48]
mov ecx, edi
call fcn.0043bd20
test eax, eax
je 0x430f1d
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
mov dword [esp + 0x24], eax
test eax, eax
je 0x430f1d
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov edx, dword [esi + 0x28]
mov eax, dword [edx + 0xc]
lea ebp, [esi + 0x28]
mov ecx, ebp
call eax
cmp eax, 0x3eb
jne 0x430e14
mov ebx, 1
jmp 0x430eca
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
push 0x96
test eax, eax
je 0x430e73
lea ecx, [esp + 0x1c]
call fcn.0041caa0
mov ebx, eax
push 0x95
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.0041caa0
mov ebx, dword [ebx]
mov eax, dword [eax]
mov ecx, dword [esi + 4]
push 1
push 0x41
push ebx
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.0043bed0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.0041a630
lea ecx, [esp + 0x18]
jmp 0x430ebd
lea ecx, [esp + 0x24]
call fcn.0041caa0
mov ebx, eax
push 0x94
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 2
call fcn.0041caa0
mov ebx, dword [ebx]
mov eax, dword [eax]
mov edx, dword [esi + 4]
push 6
push 0x41
push ebx
push eax
push edx
mov ecx, edi
mov byte [esp + 0x44], 3
call fcn.0043bed0
lea ecx, [esp + 0x1c]
mov ebx, eax
call fcn.0041a630
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041a630
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
cmp ebx, 1
jne 0x430f1d
mov ecx, edi
call fcn.0043be10
mov ecx, eax
call fcn.00419cc0
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
push 0
mov ecx, edi
cmp eax, 0x3eb
jne 0x430f01
push 8
jmp 0x430f03
push 4
call fcn.0043d0b0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 2
mov ecx, esi
call fcn.00430300
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x433130
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub esp, 0x64
push esi
push 0x40
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00457170
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x433194
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
test eax, eax
ja 0x433192
jb 0x433173
cmp ecx, 0x20000000
ja 0x43317d
mov eax, 1
pop esi
add esp, 0x64
ret
test eax, eax
ja 0x433192
jb 0x43318b
cmp ecx, 0x40000000
ja 0x433192
mov esi, 1
jmp 0x433194
xor esi, esi
xor eax, eax
lea edx, [esp + 4]
push edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test esi, esi
je 0x4331d0
cmp dword [esp + 0x18], 1
jbe 0x433173
xor eax, eax
pop esi
add esp, 0x64
ret

Function at 0x433830
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4729c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [0x48f014]
mov dword [esp + 8], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
lea edx, [ecx + 4]
push edx
call fcn.004333b0
mov esi, dword [esp + 8]
test eax, eax
je 0x43389f
mov eax, dword [esp + 0xc]
push eax
push esi
push 7
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
lea ecx, [esi - 0xc]
cmp ecx, dword [0x48f010]
je 0x4338c1
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4338c1
push esi
call fcn.00457d84
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret
Function at 0x4344a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x472ae8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov ebp, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov esi, 0x80000
mov dword [esp + 0x20], 7
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
lea ebx, [ebx]
mov eax, dword [0x48f014]
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x34], 0
call fcn.0041aba0
test eax, eax
mov eax, dword [esp + 0x14]
je 0x4345b9
lea edx, [esp + 0x18]
push edx
push eax
mov dword [eax - 8], esi
xor ecx, ecx
mov word [eax + esi*2], cx
mov ebx, eax
lea eax, [esp + 0x28]
push eax
push str.PendingFileRenameOperations
push str.SYSTEMCurrentControlSetControlSession_Manager
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.0041aca0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
mov dword [esi - 8], eax
mov word [esi + eax*2], cx
test edi, edi
je 0x4345df
cmp edi, 0xea
jne 0x434634
mov edx, dword [esp + 0x18]
lea ecx, [esi - 0xc]
lea eax, [edx + edx]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], 0xffffffff
cmp ecx, dword [0x48f010]
je 0x4345a2
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4345a2
push esi
call fcn.00457d84
add esp, 4
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0xa
mov dword [esp + 0x1c], eax
jge 0x434619
mov esi, dword [esp + 0x18]
jmp 0x4344f0
lea edx, [eax - 0xc]
cmp edx, dword [0x48f010]
je 0x4345db
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4345db
push esi
call fcn.00457d84
add esp, 4
xor eax, eax
jmp 0x43461e
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
lea eax, [ecx + 4]
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
push ebx
call fcn.00434250
lea ecx, [esi - 0xc]
cmp ecx, dword [0x48f010]
je 0x434619
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x434619
push esi
call fcn.00457d84
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
lea edx, [esi - 0xc]
cmp edx, dword [0x48f010]
je 0x4345db
add esi, 0xfffffff4
jmp 0x4345c7
Function at 0x434d90
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x804
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x800], eax
test esi, esi
je 0x434e1a
push 0x800
lea eax, [esp + 4]
push 0
push eax
call fcn.00457170
mov ecx, dword [esi]
mov eax, dword [ecx + 0x24]
add esp, 0xc
push 0x400
lea edx, [esp + 4]
push edx
push esi
call eax
cmp word [esp], 0
je 0x434e1a
lea ecx, [esp]
push ecx
push 1
push 0
mov dword [0x492c5c], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x492c5c], eax
test eax, eax
je 0x434e1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x434e1a
xor eax, eax
mov ecx, dword [esp + 0x800]
xor ecx, esp
call fcn.0045715c
add esp, 0x804
ret
mov ecx, dword [esp + 0x800]
xor ecx, esp
mov eax, 1
call fcn.0045715c
add esp, 0x804
ret

Function at 0x435110
Capabilities:
Set registry value

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

Function at 0x435130
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jne 0x435144
pop edi
lea eax, [esi + 0xd]
pop esi
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x435170
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 4], ecx
test ebp, ebp
jne 0x435186
lea eax, [ebp + 0xd]
pop ebp
pop ecx
ret 8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x435193
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4357f0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x490d68]
xor eax, esp
mov dword [esp + 0x220], eax
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0x14]
push esi
xor edi, edi
or eax, 0x2001f
push eax
push edi
push edx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, edi
jne 0x435866
xor eax, eax
cmp ecx, edi
je 0x435854
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
mov esi, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
je 0x435874
cmp ecx, edi
je 0x435912
push ecx
jmp 0x43590c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push edi
push edi
push edi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
push ecx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
jne 0x4358dc
lea esp, [esp]
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x10]
call fcn.004357f0
mov dword [esp + 0x14], eax
cmp eax, edi
jne 0x43592b
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
push edx
mov dword [esp + 0x38], 0x100
call esi
test eax, eax
je 0x4358a0
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x4358ef
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x435912
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x435914
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045715c
mov esp, ebp
pop ebp
ret 4
Function at 0x4370b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x472cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x490d68]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x437132
call fcn.00434ff0
mov edi, eax
jmp 0x437214
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43714b
call fcn.00434ff0
jmp 0x43720b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jne 0x437166
call fcn.00434ff0
jmp 0x43720b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x18], edi
cmp eax, edi
jae 0x43719c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x43718a
lea ecx, [ebp]
call fcn.004357b0
lea ecx, [ebp - 0x20]
call fcn.00435750
mov eax, 0x8007000e
jmp 0x437226
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00435ee0
mov dword [ebp - 4], 1
jmp 0x4371c8
mov eax, dword [ebp]
test eax, eax
jne 0x4371d6
mov edi, 0x8007000e
jmp 0x43720d
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4371ef
call fcn.00434ff0
jmp 0x43720b
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00436e80
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x437224
lea ecx, [ebp]
call fcn.004357b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0045715c
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4378a0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 8]
call fcn.0041e3d0
mov esi, dword [esp + 4]
cmp dword [esi - 8], 0
jl 0x4378fe
push 0x477d04
push esi
call fcn.004586e9
add esp, 8
test eax, eax
je 0x4378fe
sub eax, esi
sar eax, 1
js 0x4378fe
lea eax, [esi - 0xc]
cmp eax, dword [0x48f010]
je 0x4378f6
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4378f6
push esi
call fcn.00457d84
add esp, 4
mov eax, 1
pop esi
pop ecx
ret
lea ecx, [esi - 0xc]
cmp ecx, dword [0x48f010]
je 0x437920
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x437920
push esi
call fcn.00457d84
add esp, 4
xor eax, eax
pop esi
pop ecx
ret
Function at 0x437930
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x472998
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x490d68]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0
xor ebp, ebp
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4379b6
mov ecx, dword [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
test eax, eax
je 0x4379b1
cmp eax, 0x50
je 0x4379b1
cmp eax, 0xb7
je 0x4379b1
lea ecx, [esp + 0x2c]
call fcn.0041a630
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
mov ebp, 1
push str.wftest.tf
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0041e4f0
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 2
push 0
push 2
push 0x120116
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x437a41
mov eax, str.wftest
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4379f6
push 0
sub eax, edx
lea edx, [esp + 0x18]
push edx
mov esi, eax
push esi
push str.wftest
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437a2f
cmp esi, dword [esp + 0x14]
jne 0x437a2f
mov dword [esp + 0x18], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebp, ebp
je 0x437a52
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00401d20
add esp, 4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, dword [0x48f010]
je 0x437a81
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x437a81
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00457d84
add esp, 4
mov eax, dword [esp + 0x2c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x48f010]
je 0x437aaa
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x437aaa
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00457d84
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret