joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40851e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
cmp dword [ebp + 8], 0
je 0x408533
cmp dword [ebp + 0xc], 0
jne 0x40854c
push 0x11
push 0
push str.parameter_error
call fcn.00401160
add esp, 0xc
or eax, 0xffffffff
jmp 0x408762
push 0x42c374
mov eax, dword [ebp + 8]
push eax
call fcn.0040e5b0
add esp, 8
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x408587
push 0x11
mov ecx, dword [ebp + 8]
push ecx
push str.cannot_open_file_list:__s
call fcn.00401160
add esp, 0xc
or eax, 0xffffffff
jmp 0x408762
call sub.STATRN32.dll_ST_OpenEnvironment
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 1
cmp dword [ebp - 0x210], 0xff
jge 0x40868f
push 0xc8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x2e0]
push eax
lea ecx, [ebp - 0x2d8]
push ecx
call fcn.00401758
add esp, 0x10
mov dword [ebp - 0x2dc], eax
cmp dword [ebp - 8], 0
jne 0x4085dc
jmp 0x40868f
cmp dword [ebp - 0x2dc], 0
jge 0x4085ea
jmp 0x40868f
push 0x2a
lea edx, [ebp - 0x2d8]
push edx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
jne 0x408616
push 0x3f
lea eax, [ebp - 0x2d8]
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x408645
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x2d8]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.00408766
add esp, 0x10
test eax, eax
je 0x408643
jmp 0x40874f
jmp 0x40868a
lea edx, [ebp - 0x2d8]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call fcn.00408438
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x408669
jmp 0x40874f
mov ecx, dword [ebp - 0x210]
mov dx, word [ebp - 4]
mov word [ebp + ecx*2 - 0x208], dx
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
jmp 0x40859c
mov ecx, dword [ebp - 0x2e0]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push 0x42c394
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040e5b0
add esp, 8
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
jne 0x4086da
push 0x11
mov eax, dword [ebp + 0xc]
push eax
push str.Cannot_open_output_file:__s
call fcn.00401160
add esp, 0xc
or eax, 0xffffffff
jmp 0x408762
mov ecx, dword [ebp - 0x210]
sub ecx, 1
mov dword [ebp - 0x210], ecx
mov dx, word [ebp - 0x210]
mov word [ebp - 0x208], dx
mov eax, dword [ebp - 0x2e0]
push eax
mov ecx, dword [ebp - 0x210]
add ecx, 1
push ecx
push 2
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x210]
push eax
push str._d_files_locked_n
lea ecx, [ebp - 0x2d8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0
push 0
lea edx, [ebp - 0x2d8]
push edx
call fcn.00401160
add esp, 0xc
mov eax, dword [ebp - 0x2e0]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x40cc47
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov dword [0x4323d4], 1
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040b3cf
add esp, 8
push 1
push 0
push 1
lea edx, [ebp - 0x104]
push edx
call fcn.00416f7c
add esp, 0x10
mov dword [0x432344], eax
cmp dword [0x432344], 0
jne 0x40cc98
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov dword [0x4323d4], 1
push 1
call fcn.00408a6b
add esp, 4
call fcn.004170fc
mov dword [0x432344], eax
mov dword [0x4323d4], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40ce30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 1
push 0
push str._nYou_are_running_in_batch_mode_from_the_operating_system__nand_you_do_not_have_a_valid_license_for_Stat_Transfer._nSince_cases_will_be_deleted__your_transfer_will_not_be_performed._n
call fcn.00401160
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
pop ebp
ret

Function at 0x40d693
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 5
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.open
mov edx, dword [0x433710]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
jge 0x40d6d2
push 0
push 0x4344a0
push str.Cannot_display_the_help_file:__s
call fcn.00401160
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x40d839
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 8]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40d867
or eax, 0xffffffff
jmp 0x40d894
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40d892
or eax, 0xffffffff
jmp 0x40d894
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40e645
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push 0x104
lea eax, [ebp - 0x30c]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call sub.KERNEL32.dll_MultiByteToWideChar
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.MSVCRT.dll__wremove]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x416021
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
mov dword [ebp - 4], 0
mov dword [ebp - 0x878], 0
mov dword [ebp - 0x564], 0
mov dword [ebp - 0x874], 0
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 0
push 0x30c
push 0
lea eax, [ebp - 0x870]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x30c
push 0
lea ecx, [ebp - 0x560]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 8], 0
jne 0x41609c
mov dword [ebp + 8], 0x42ef9c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x870]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
cmp dword [ebp + 0xc], 0
je 0x4160c8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x870]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0x104
lea eax, [ebp - 0x560]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x870]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0x250
push 0
lea edx, [ebp - 0x254]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x560]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x416124
xor eax, eax
jmp 0x41627d
push 1
push 0x1c
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov dword [ebp - 0x878], eax
mov dword [ebp - 0x880], 0
jmp 0x416152
mov edx, dword [ebp - 0x880]
add edx, 1
mov dword [ebp - 0x880], edx
cmp dword [ebp - 0x880], 0x7fffffff
jge 0x4161a9
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x878]
push ecx
call fcn.00416281
add esp, 8
test eax, eax
je 0x41617a
jmp 0x4161a9
push 0x250
push 0
lea edx, [ebp - 0x254]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4161a7
jmp 0x4161a9
jmp 0x416143
mov edx, dword [ebp - 0x878]
cmp dword [edx], 0
jle 0x416277
mov eax, dword [ebp - 0x878]
mov ecx, dword [eax]
push ecx
push 4
call dword [sym.imp.MSVCRT.dll_calloc]
add esp, 8
mov edx, dword [ebp - 0x878]
mov dword [edx + 0xc], eax
mov dword [ebp - 0x874], 0
mov eax, dword [ebp - 0x878]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x564], ecx
jmp 0x41620d
mov edx, dword [ebp - 0x564]
mov eax, dword [edx]
mov dword [ebp - 0x564], eax
mov ecx, dword [ebp - 0x874]
add ecx, 1
mov dword [ebp - 0x874], ecx
cmp dword [ebp - 0x564], 0
je 0x416230
mov edx, dword [ebp - 0x878]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x874]
mov edx, dword [ebp - 0x564]
mov dword [eax + ecx*4], edx
jmp 0x4161f0
cmp dword [ebp + 0x10], 0
je 0x416277
cmp dword [ebp + 0x10], 2
jne 0x416248
mov dword [ebp - 0x884], 0x41674c
jmp 0x416252
mov dword [ebp - 0x884], 0x4166c8
mov eax, dword [ebp - 0x884]
push eax
push 4
mov ecx, dword [ebp - 0x878]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x878]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov eax, dword [ebp - 0x878]
mov esp, ebp
pop ebp
ret
Function at 0x41775e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x25
jne 0x41777e
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x5f
jne 0x4177a7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00417c39
add esp, 8
jmp 0x417860
push str.st_test
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x4177d1
mov dword [0x432470], 1
mov eax, 1
jmp 0x417860
cmp dword [0x433684], 0
je 0x417832
mov ecx, dword [0x433684]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x41781a
mov edx, dword [ebp - 0xc]
cmp dword [edx + 8], 0
je 0x417813
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [eax], edx
xor eax, eax
jmp 0x417860
mov eax, 1
jmp 0x417860
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x41782c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
jmp 0x41782e
jmp 0x417830
jmp 0x4177e3
jmp 0x417860
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x417854
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
xor eax, eax
jmp 0x417860
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x417e20
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x41a6fe
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a73c
mov ecx, dword [ebp + 0xc]
push ecx
push str.Out_of_memory_for__s_n
mov edx, dword [sym.imp.MSVCRT.dll__iob]
add edx, 0x40
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x426f95
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xc], 0x78
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x42
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x4c
mov byte [ebp - 7], 0x66
mov byte [ebp - 6], 0x44
mov byte [ebp - 5], 0x2f
mov byte [ebp - 4], 0x3a
mov byte [ebp - 3], 0x2d
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
mov word [ebp - 0x14], cx
mov edx, dword [ebp + 8]
add edx, 0x126
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x427001
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
push ecx
call fcn.0040f400
add esp, 8
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x426fd9
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx + 4]
movsx eax, byte [ebp + edx - 0xc]
push eax
call fcn.0040f400
add esp, 8
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x88], 0
je 0x427065
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x88]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
test edx, edx
je 0x427065
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
push eax
call fcn.0040f400
add esp, 8
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
jmp 0x427034
mov edx, dword [ebp - 0x14]
and edx, 0xffff
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x575008], 0x8088405
inc edx
mov dword [ebx + 0x575008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x55958e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x559595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x55a8f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x57754c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x57754c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x576378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55a8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
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
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ed0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x450e4e22
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x48d17461
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Move file
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10c], eax
cmp dword [esp + 0x114], 2
push edi
mov edi, dword [esp + 0x11c]
jge 0x40104b
push str.Usage:_utf8_bom_remover.exe_file_path
call fcn.0040539e
add esp, 4
xor eax, eax
pop edi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0040118c
add esp, 0x110
ret
mov edi, dword [edi + 4]
push 0
push edi
mov dword [esp + 0xc], 0xbfbbef
mov dword [esp + 0x10], 0
call fcn.004043f5
add esp, 8
test eax, eax
jne 0x401174
push esi
push 0x104
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00401e20
push edi
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.00404130
push str._tmp
lea eax, [esp + 0x2c]
push 0x104
push eax
call fcn.0040418a
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004044e9
lea eax, [esp + 0x3c]
push 0x4121b0
push eax
call fcn.004049df
mov esi, eax
lea eax, [esp + 0x40]
push esi
push 3
push 1
push eax
call fcn.00404d64
add esp, 0x44
lea ecx, [esp + 8]
lea eax, [esp + 0xc]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401100
test dl, dl
je 0x4010fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401100
add eax, 2
add ecx, 2
test dl, dl
jne 0x4010e0
xor eax, eax
jmp 0x401105
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40115f
push eax
push 3
push esi
call fcn.00405188
push 0x4121b4
push edi
call fcn.004049df
push esi
mov edi, eax
call fcn.0040480f
add esp, 0x18
cmp al, 0xff
je 0x401147
nop dword [eax]
movsx eax, al
push edi
push eax
call fcn.00404b57
push esi
call fcn.0040480f
add esp, 0xc
cmp al, 0xff
jne 0x401130
push esi
call fcn.004047a3
push edi
call fcn.004047a3
lea eax, [esp + 0x18]
push eax
call fcn.0040447f
jmp 0x401170
push esi
call fcn.004047a3
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004044e9
add esp, 0xc
pop esi
mov ecx, dword [esp + 0x110]
xor eax, eax
pop edi
xor ecx, esp
call fcn.0040118c
add esp, 0x110
ret

Function at 0x401992
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019d1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019d1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019d1
cmp dword [ecx + 0x74], 0xe
jbe 0x4019d1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407552
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413528
push 0x413520
push str.FlsAlloc
push 0x1f
call fcn.00407411
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407586
push dword [ebp + 8]
mov ecx, esi
call dword [0x412128]
call esi
jmp 0x40758c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4075d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413538
push 0x413530
push str.FlsGetValue
push 0x21
call fcn.00407411
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407607
push dword [ebp + 8]
mov ecx, esi
call dword [0x412128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]