joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c8e0
Capabilities:
Get file version info
Link many functions at runtime

Disassembly:
sub esp, 0x250
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
xor edi, edi
push str.sflog.dll
mov dword [esp + 0x10], edi
call esi
test eax, eax
mov dword [0x4302a8], eax
je 0x40ca7c
push str.sfcommon.dll
call esi
test eax, eax
mov dword [0x4302ac], eax
je 0x40ca96
mov ecx, dword [0x4302a8]
push 0x104
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x54]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [esp + 0x10], eax
je 0x40ca7c
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x40ca7c
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push edi
lea edx, [esp + 0x5c]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x424dcc
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [esp + 0x14]
mov ecx, 0xd
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
mov eax, ecx
shr eax, 0x10
cmp ax, 7
jb 0x40ca61
jne 0x40c9cb
cmp cx, 0x32
jb 0x40ca61
mov edx, dword [0x4302a8]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.sflog_log_init
push edx
call esi
test eax, eax
mov dword [0x4302b0], eax
je 0x40ca61
mov eax, dword [0x4302a8]
push str.sflog_set_UserNameW
push eax
call esi
test eax, eax
mov dword [0x4302b4], eax
je 0x40ca61
mov ecx, dword [0x4302a8]
push str.sflog_log_writeAccessFltW
push ecx
call esi
test eax, eax
mov dword [0x4302b8], eax
je 0x40ca61
mov edx, dword [0x4302a8]
push str.sflog_log_term
push edx
call esi
test eax, eax
mov dword [0x4302bc], eax
je 0x40ca61
mov eax, dword [0x4302ac]
push str.sfcm_reg_GetValueW
push eax
call esi
test eax, eax
mov dword [0x4302c0], eax
je 0x40ca61
mov ecx, dword [0x4302ac]
push str.sfcm_misc_GetUNCPath
push ecx
call esi
test eax, eax
mov dword [0x4302c4], eax
je 0x40ca61
mov dword [esp + 0xc], 1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0xc], 0
jne 0x40caca
mov edi, dword [esp + 0xc]
mov eax, dword [0x4302ac]
test eax, eax
je 0x40ca96
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4302ac], 0
mov eax, dword [0x4302a8]
test eax, eax
je 0x40cab0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x4302a8], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.0040d036
add esp, 0x250
ret
mov ecx, dword [esp + 0x258]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x250
ret
Function at 0x40caf0
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x854
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x84c], eax
push ebx
push ebp
push esi
push edi
push 0x105
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
push ebx
mov ebp, 1
mov byte [esp + 0x23], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
call fcn.00401670
cmp dword [0x42fde0], ebx
mov esi, eax
je 0x40cb3e
xor ebp, ebp
jmp 0x40ccf2
call fcn.00401380
cmp dword [0x42fde0], ebx
movzx eax, ax
jne 0x40ccd8
cmp ax, 0xffff
je 0x40cbde
lea esp, [esp]
movsx eax, ax
cmp eax, 0x110
jg 0x40cb91
je 0x40cbb1
cmp eax, 0x105
jg 0x40ccb7
cmp eax, 0x101
jge 0x40cbb1
cmp eax, 2
jl 0x40cd0d
cmp eax, 6
jle 0x40cbb1
cmp eax, 0x10
jmp 0x40cbab
cmp eax, 0x220
jg 0x40cba6
je 0x40cbb1
sub eax, 0x200
je 0x40cbb1
sub eax, 0x10
jmp 0x40cbab
cmp eax, 0x300
jne 0x40cd0d
call fcn.004014d0
cmp dword [0x42fde0], ebx
jne 0x40ccd8
mov eax, esi
call fcn.00401380
cmp dword [0x42fde0], ebx
movzx eax, ax
jne 0x40ccd8
cmp ax, 0xffff
jne 0x40cb60
mov edx, dword [esi]
push edx
call fcn.0040d9d5
add esp, 4
push esi
call fcn.0040da51
add esp, 4
cmp byte [esp + 0x17], bl
je 0x40ccf2
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
push ebx
mov edi, eax
push ebx
lea eax, [esp + 0x238]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00411dd9
add esp, 0x14
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x440]
push str._s_s
push edx
call fcn.0040dcca
add esp, 0x10
lea eax, [esp + 0x648]
push eax
push ebx
push 0x425164
lea ecx, [esp + 0x444]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40cd55
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 0xffffef1a
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
push edi
mov word [0x430276], bx
mov dword [0x430278], 0x136a
xor ebp, ebp
call esi
jmp 0x40ccf2
cmp eax, 0x106
jne 0x40cd0d
lea ecx, [esp + 0x17]
push ecx
push esi
call fcn.004025b0
add esp, 8
cmp dword [0x42fde0], ebx
je 0x40cbde
xor ebp, ebp
cmp esi, ebx
je 0x40ccf2
mov eax, dword [esi]
push eax
call fcn.0040d9d5
add esp, 4
push esi
call fcn.0040da51
add esp, 4
mov ecx, dword [esp + 0x85c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040d036
add esp, 0x854
ret
push 0x104
push str....._src_sfslfdec_sfmkcore.c
push 0x430070
mov dword [0x42fde0], 8
mov word [0x42fe68], bx
mov dword [0x42fde4], ebx
mov word [0x43006e], bx
call fcn.0040d045
add esp, 0xc
mov word [0x430276], bx
mov dword [0x430278], 0x1347
jmp 0x40ccd8
lea edx, [esp + 0x648]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
jmp 0x40ccf2
Function at 0x40cdd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x238
mov eax, dword [0x42827c]
xor eax, esp
mov dword [esp + 0x234], eax
push esi
push edi
push 0x425838
push str.wininit.ini
call fcn.0040dcb7
mov esi, eax
add esp, 8
test esi, esi
mov dword [esp + 8], 0xfeff
jne 0x40cec3
push eax
push 0x80
push 1
push eax
push eax
push 0x40000000
push str.wininit.ini
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ce5c
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x10]
push eax
push 2
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x40ce75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0040d036
add esp, 0x238
ret
push 0
lea edx, [esp + 0x38]
push 0x42583c
push edx
call fcn.0040dcca
lea eax, [esp + 0x40]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40ce90
sub eax, edx
push 0
sar eax, 1
lea ecx, [esp + 0x10]
push ecx
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x40]
push eax
push esi
call edi
test eax, eax
je 0x40ce46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cf4d
lea ecx, [esp + 0x10]
push ecx
push str.wininit.ini
call fcn.0040df55
add esp, 8
cmp dword [esp + 0x24], 0
jne 0x40cf44
push esi
call fcn.0040d9d5
push 0x425848
push str.wininit.ini
call fcn.0040dcb7
mov esi, eax
push esi
push 1
lea edx, [esp + 0x1c]
push 2
push edx
call fcn.0040d5cf
push 0
lea eax, [esp + 0x54]
push 0x42583c
push eax
call fcn.0040dcca
lea eax, [esp + 0x5c]
add esp, 0x28
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40cf20
sub eax, edx
push esi
sar eax, 1
push 1
lea ecx, [eax + eax + 2]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.0040d5cf
add esp, 0x10
push esi
call fcn.0040d9d5
add esp, 4
push str.wininit.ini
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, esp
call fcn.0040d036
add esp, 0x238
ret
Function at 0x40cf80
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, eax
test ebx, ebx
je 0x40d020
test esi, esi
je 0x40d020
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0x42
push 8
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
push 0x21
jne 0x40cfbc
push esi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
pop edi
pop ebp
pop ebx
ret
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, eax
test ebx, ebx
je 0x40cff3
mov edx, 0x21
mov ecx, esi
mov eax, edi
call fcn.0040cd70
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
push 0
mov ebx, eax
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
push edi
mov dword [esi + 0x1c], eax
push eax
mov byte [esi + 0x20], al
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x40d036
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42827c]
jne 0x40d040
repz ret
jmp fcn.00412598
Function at 0x40d1b9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40d1f6
cmp dword [ebp + 0x14], edi
je 0x40d1f6
cmp ecx, edi
jne 0x40d1fd
call fcn.0040e2ca
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00412d10
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40d211
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40d232
cmp ebx, 0xffffffff
je 0x40d221
push ebx
push edi
push ecx
call fcn.004130d0
add esp, 0xc
cmp esi, edi
je 0x40d1de
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40d1de
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40d24e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40d255
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40d346
test word [esi + 0xc], 0x10c
je 0x40d2a9
mov eax, dword [esi + 4]
test eax, eax
je 0x40d2a9
jl 0x40d3a7
cmp ebx, eax
mov edi, ebx
jb 0x40d27a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40d34e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00413046
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40d33e
cmp ebx, dword [ebp - 0xc]
jb 0x40d316
cmp dword [ebp - 0xc], 0
je 0x40d2d3
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x40d2c8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40d2cf
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40d2de
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x40d2de
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40d37a
push eax
push dword [ebp - 8]
push esi
call fcn.00412bdd
pop ecx
push eax
call fcn.004110d6
add esp, 0xc
test eax, eax
je 0x40d3b9
cmp eax, 0xffffffff
je 0x40d3a7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40d33e
push esi
call fcn.00412f26
cmp eax, 0xffffffff
pop ecx
je 0x40d3ab
cmp dword [ebp - 4], 0
je 0x40d37a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40d25d
mov eax, dword [ebp + 0x14]
jmp 0x40d1f8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40d365
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004130d0
add esp, 0xc
call fcn.0040e2ca
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40d1ee
cmp dword [ebp + 0xc], 0xffffffff
je 0x40d390
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004130d0
add esp, 0xc
call fcn.0040e2ca
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40d1ee
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40d1f8
or dword [esi + 0xc], 0x10
jmp 0x40d3ab
Function at 0x40ed85
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40edb2
call fcn.0040e2dd
mov dword [eax], esi
call fcn.0040e2ca
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00412d10
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40ed8e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ede1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e2f0
pop ecx
call fcn.0040e2ca
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x40ee08
test al, 1
je 0x40ee08
test byte [esp + 0xc], 2
je 0x40ee08
call fcn.0040e2dd
mov dword [eax], 5
call fcn.0040e2ca
mov dword [eax], 0xd
jmp 0x40edd8
xor eax, eax
pop esi
ret
Function at 0x414558
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 + 0x428670]
je 0x414573
inc edi
cmp edi, 0x17
jb 0x414564
cmp edi, 0x17
jae 0x4146f3
push ebp
push 3
call fcn.0041dfc9
cmp eax, 1
pop ecx
je 0x4146bf
push 3
call fcn.0041dfc9
test eax, eax
pop ecx
jne 0x4145a7
cmp dword [0x428278], 1
je 0x4146bf
cmp ebx, 0xfc
je 0x4146f2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x42f2e0
push ebp
call fcn.00416378
add esp, 0xc
test eax, eax
je 0x4145dd
push esi
push esi
push esi
push esi
push esi
call fcn.00412c14
add esp, 0x14
push 0x104
mov esi, 0x42f2f9
push esi
push 0
mov byte [0x42f3fd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x414621
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00416378
add esp, 0xc
test eax, eax
je 0x414621
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00412c14
add esp, 0x14
push esi
call fcn.0041a960
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x414666
push esi
call fcn.0041a960
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x42f5f4
push 0x421a74
sub ecx, eax
push ecx
push eax
call fcn.0041a0b6
add esp, 0x14
test eax, eax
je 0x414666
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00412c14
add esp, 0x14
jmp 0x414668
xor esi, esi
push 0x421a70
push ebx
push ebp
call fcn.00419ffc
add esp, 0xc
test eax, eax
je 0x414688
push esi
push esi
push esi
push esi
push esi
call fcn.00412c14
add esp, 0x14
push dword [edi*8 + 0x428674]
push ebx
push ebp
call fcn.00419ffc
add esp, 0xc
test eax, eax
je 0x4146aa
push esi
push esi
push esi
push esi
push esi
call fcn.00412c14
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041de0c
add esp, 0xc
jmp 0x4146f2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4146f2
cmp ebp, 0xffffffff
je 0x4146f2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x428674]
push dword [esi]
call fcn.0041a960
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 0x41de0c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004156f2
xor ebx, ebx
cmp dword [0x42f960], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41dee2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41dfc2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x41dfc2
push eax
call fcn.00415684
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42f960], eax
call esi
push eax
call fcn.00415684
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42f964], eax
call esi
push eax
call fcn.00415684
mov dword [0x42f968], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004142e5
test eax, eax
pop ecx
pop ecx
je 0x41deb0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412c14
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41dee2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415684
cmp eax, ebx
pop ecx
mov dword [0x42f970], eax
je 0x41dee2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415684
pop ecx
mov dword [0x42f96c], eax
mov eax, dword [0x42f96c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41df67
cmp dword [0x42f970], ecx
je 0x41df67
push eax
call fcn.004156fb
push dword [0x42f970]
mov esi, eax
call fcn.004156fb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41df67
cmp edi, ebx
je 0x41df67
call esi
cmp eax, ebx
je 0x41df34
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41df34
test byte [ebp - 0x18], 1
jne 0x41df67
lea eax, [ebp - 0x10]
push eax
call fcn.0041431c
test eax, eax
pop ecx
je 0x41df4f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00412c14
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41df5e
or dword [ebp + 0x10], 0x200000
jmp 0x41dfa2
or dword [ebp + 0x10], 0x40000
jmp 0x41dfa2
mov eax, dword [0x42f964]
cmp eax, dword [ebp - 8]
je 0x41dfa2
push eax
call fcn.004156fb
cmp eax, ebx
pop ecx
je 0x41dfa2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41dfa2
mov eax, dword [0x42f968]
cmp eax, dword [ebp - 8]
je 0x41dfa2
push eax
call fcn.004156fb
cmp eax, ebx
pop ecx
je 0x41dfa2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42f960]
call fcn.004156fb
cmp eax, ebx
pop ecx
je 0x41dfc2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41dfc4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b801
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a00
cmp edx, dword [eax]
je 0x40b823
add eax, 8
inc ecx
cmp eax, 0x411a90
jl 0x40b814
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a00]
jne 0x40b951
mov eax, dword [0x41911c]
cmp eax, 1
je 0x40b92b
test eax, eax
jne 0x40b854
cmp dword [0x411488], 1
je 0x40b92b
cmp edx, 0xfc
je 0x40b951
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b88b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408910
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b8ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408910
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41050c
push edi
call fcn.00408fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push 0x4104ec
push eax
call fcn.00408750
push dword [esi + 0x411a04]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e2c6
add esp, 0x2c
pop edi
jmp 0x40b951
lea eax, [ebp + 8]
lea esi, [esi + 0x411a04]
push 0
push eax
push dword [esi]
call fcn.00408910
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x405076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x405258], eax
mov dword [0x4051e0], 0x402b80
mov dword [0x4051dc], 2
jmp 0x4032d0
mov dword [0x4051e4], 0
mov dword [0x4051e8], 0
mov dword [0x4051d8], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x4051ec], eax
mov dword [0x405200], 0x404080
mov dword [0x4051f8], 0xf
mov dword [0x40506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x4051f0], eax
mov dword [0x405204], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x4051f4], eax
push 0x4051d8
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40506e]
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 [0x405250], eax
push 5
push dword [0x405250]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x405250]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4033a3
push 0
push 0
push 0
push 0x405208
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x4033d0
push 0x405208
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x405208
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x4033a3
mov eax, dword [0x405210]
jmp 0x4033dd
call 0x402474
ret
Function at 0x415e70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x41dc80], ecx
add edx, 1
cmp edx, 0x100
jb 0x415e72
cmp edx, 0x800
jae 0x415f5b
mov edi, edi
mov eax, dword [edx*4 + 0x41d880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x41dc80]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x41dc7c], eax
jb 0x415f30
mov dword [0x41dc54], 0x416610
call fcn.004160a0
test eax, eax
jne 0x415f78
mov dword [0x41dc54], 0x416530
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
nop
mov ecx, 0x111b418f
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3758461d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219