joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a240
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46a257
add esp, 0xfffffff0
call fcn.00403594
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a790
mov eax, dword [0x497250]
cmp word [eax + 2], 0
jne 0x46a27f
mov eax, dword [0x497250]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046b9c0
mov eax, dword [0x497320]
cmp word [eax + 2], 0
jne 0x46a299
mov eax, dword [0x497320]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046bbb8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411c88]
call fcn.00403240
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411c88]
call fcn.00403240
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cd1c]
call fcn.0042464c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46a420
mov eax, dword [0x497168]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424a1c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46c188
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x497168]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c66c
test eax, eax
je 0x46a38e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408810
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c694
test eax, eax
je 0x46a3a2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404230
mov eax, dword [0x49702c]
cmp byte [eax], 0
jne 0x46a3d6
mov eax, ebx
call fcn.0046a548
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046c364
mov eax, ebx
call fcn.0046cd28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46a416
call fcn.004035ec
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46a7c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x498be4]
cmp dword [eax + 0x30], 0
je 0x46a872
cmp dword [ebx + 0x94], 0
jne 0x46a86c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46a758
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46a86c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46a832
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46a86c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414198
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46a841
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46b3d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46b409
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040b0
jmp 0x46b416
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404014
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46c540
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46c581
mov eax, esi
call fcn.00452adc
test al, al
je 0x46c581
mov eax, dword [ebx + 0x84]
call fcn.004527d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46c581
push 0
mov eax, dword [ebx + 0x84]
call fcn.004527d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47d990
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47d9be
mov eax, ebx
call fcn.0047e444
cmp dword [ebx + 0x40], 0
je 0x47d9b7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47da2f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47da21
cmp dword [ebx + 8], 0
je 0x47d9e0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47d9f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47da21
cmp dword [ebx + 8], 0
je 0x47d9d3
cmp eax, 3
je 0x47da05
dec eax
jne 0x47d9d3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47d9d3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47d9d3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47da4d
cmp dword [ebx + 0x14], 0xcc
je 0x47da4d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047da58
pop ebx
ret
Function at 0x48e2fc
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404470
mov eax, dword [ebp - 8]
call fcn.00404470
xor eax, eax
push ebp
push 0x48e38a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48e363
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404480
push eax
mov eax, dword [ebp - 4]
call fcn.00404480
push eax
push 0
call sub.URLMON.DLL_URLDownloadToFileA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x48e36f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e391
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403fe4
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
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7b192a05
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x5c8699b
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40bd50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40a015
lea edi, [esi - 0x9015]
push edi
or ebp, 0xffffffff
jmp 0x40bd72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40bd79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40bd68
mov eax, 1
add ebx, ebx
jne 0x40bd8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40bd80
jne 0x40bd9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bd80
xor ecx, ecx
sub eax, 3
jb 0x40bdb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40be22
mov ebp, eax
add ebx, ebx
jne 0x40bdbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40bdc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40bdec
inc ecx
add ebx, ebx
jne 0x40bdd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40bdcd
jne 0x40bde9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40bdcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40be0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40bdfd
jmp 0x40bd6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40be0c
add edi, ecx
jmp 0x40bd6e
pop esi
mov edi, esi
mov ecx, 1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40be2a
cmp byte [edi], 0
jne 0x40be2a
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 0x40be2f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x40be9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd2ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd350]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40be5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd358]
or eax, eax
je 0x40be98
mov dword [ebx], eax
add ebx, 4
jmp 0x40be79
call dword [esi + 0xd354]
mov ebp, dword [esi + 0xd35c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40bed2
sub esp, 0xffffff80
jmp 0x4014c8
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x401c66
pop dword [ebp - 0x2c]
mov eax, 0x648ce4d1
sub eax, 0x644cc86b
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x88c74879
sub dword [ebp - 0x3c], 0x3a75032e
mov dword [ebp - 0x38], 0xf4c55d19
add dword [ebp - 0x38], 0x3d6def2c
mov dword [ebp - 0x34], 0x30642885
add dword [ebp - 0x34], 0x1be81ba9
mov dword [ebp - 0x30], 0x6f7af061
sub dword [ebp - 0x30], 0x6f7af061
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x95e7b398
sub eax, 0x95a78344
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x75d07b34
sub dword [ebp - 0x3c], 0x15e11de
mov dword [ebp - 0x38], 0x7c7413eb
add dword [ebp - 0x38], 0xc4f84d8a
mov dword [ebp - 0x34], 0x95a52ea2
sub dword [ebp - 0x34], 0x3235c236
mov dword [ebp - 0x30], 0xda58f4
sub dword [ebp - 0x30], 0xda58f4
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x32f108b8
sub eax, 0x32b0d88c
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x34b2a
push 0
call eax
mov ecx, 0x40de
xor esi, esi
add esi, eax
mov edx, 0x9367f741
sub edx, 0x93278741
add edx, dword [ebp - 0x2c]
mov ebx, 0x7016131c
sub ebx, 0xcd7ebc0b
xor dword [ebp - 0x14], 0xc36dedb3
mov edi, dword [edx]
add dword [ebp - 0x14], edx
add edi, ebx
xor dword [ebp - 0x1c], 0xb1e86c7f
mov dword [esi], edi
sub dword [ebp - 0x18], edi
add esi, 0xd97ead7f
sub esi, 0xd97ead7b
add edx, 0x2f80efa9
sub edx, 0x2f80efa5
loop 0x401d84
add eax, 0xb612f64e
sub eax, 0xb6120003
xor ebx, ebx
add ebx, eax
add eax, 0x7ce4a875
add eax, 0x831b5790
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x86c220
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x432000]
push edi
jmp 0x86c23a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x86c241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86c230
mov eax, 1
add ebx, ebx
jne 0x86c253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x86c264
jne 0x86c283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86c283
dec eax
add ebx, ebx
jne 0x86c270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x86c248
add ebx, ebx
jne 0x86c27f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86c2d5
xor ecx, ecx
sub eax, 3
jb 0x86c29b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x86c30a
sar eax, 1
mov ebp, eax
jmp 0x86c2a6
add ebx, ebx
jne 0x86c2a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86c274
inc ecx
add ebx, ebx
jne 0x86c2b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86c274
add ebx, ebx
jne 0x86c2c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86c2b6
jne 0x86c2d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86c2b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86c2f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86c2e6
jmp 0x86c236
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86c2f4
add edi, ecx
jmp 0x86c236
pop esi
mov edi, esi
mov ecx, 0x2449
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86c312
cmp byte [edi], 0x13
jne 0x86c312
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 0x86c317
lea edi, [esi + 0x469000]
mov eax, dword [edi]
or eax, eax
je 0x86c38f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x46d2e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x46d47c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x86c344
mov ecx, edi
jns 0x86c373
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 + 0x46d484]
or eax, eax
je 0x86c389
mov dword [ebx], eax
add ebx, 4
jmp 0x86c361
call dword [esi + 0x46d480]
mov ebp, dword [esi + 0x46d488]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x86c3c3
sub esp, 0xffffff80
jmp 0x453366
Function at 0x405705
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004059c3
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405744
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4237a8], eax
jmp 0x4058ce
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40575e
test eax, eax
je 0x40587c
test bl, 2
je 0x40587c
mov esi, 0x420d38
push edi
push esi
call fcn.00405e63
cmp dword [ebp + 8], 0
je 0x40577d
push 0x4093bc
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405783
push edi
call fcn.0040591c
cmp byte [edi], 0
jne 0x405791
cmp byte [0x420d38], 0x5c
jne 0x40579c
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405872
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405900
cmp byte [eax], 0
je 0x4057e2
cmp byte [ebp - 0x1c], 0
je 0x4057e2
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x4057f8
mov al, byte [esi + 1]
test al, al
je 0x405851
cmp al, 0x2e
jne 0x4057f8
cmp byte [esi + 2], 0
je 0x405851
push esi
push ebx
call fcn.00405e63
test byte [ebp - 0x14c], 0x10
je 0x40581d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405851
push dword [ebp + 0xc]
push edi
call fcn.00405705
jmp 0x405851
push dword [ebp - 4]
push edi
call fcn.004056bd
test eax, eax
jne 0x405849
cmp dword [ebp - 4], eax
je 0x405841
push edi
push 0xfffffffffffffff1
call fcn.0040507c
push 0
push edi
call fcn.00405d1e
jmp 0x405851
inc dword [0x4237a8]
jmp 0x405851
push edi
push 0xfffffffffffffff2
call fcn.0040507c
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4057c0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40587c
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4058ce
cmp dword [ebp - 0xc], esi
jne 0x405890
inc dword [0x4237a8]
jmp 0x4058ce
push edi
call fcn.00406167
test eax, eax
je 0x4058ce
push edi
call fcn.004058d5
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004056bd
test eax, eax
jne 0x4058c6
cmp dword [ebp - 4], esi
je 0x405888
push edi
push 0xfffffffffffffff1
call fcn.0040507c
push esi
push edi
call fcn.00405d1e
jmp 0x4058ce
push edi
push 0xffffffffffffffe5
call fcn.0040507c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40aff0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x4e7050
call sym._EnterCriticalSection_4
mov ebx, dword [0x4e7048]
sub esp, 4
test ebx, ebx
je 0x40b03b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40b034
test esi, esi
je 0x40b034
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b010
mov dword [esp], 0x4e7050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b220
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40b348
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40b2ae
cmp eax, 4
jne 0x40b2d0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40b2be
cmp edx, 4
je 0x40b2be
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b220

Function at 0x40b8c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40b8f0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x40b914
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41d2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4a2abc], 0
jne 0x41d394
mov byte [0x4a2abc], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x41d42e
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x1c], 0xffffffff
sete al
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
call sym.___cxa_demangle
mov esi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov ebp, eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
lea edi, [esi + 0x40]
mov dword [esp + 0xc], edi
call sym._fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp + 4], edi
je 0x41d38a
mov dword [esp], ebx
call sym._fputs
lea eax, [esi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4a4169
mov dword [esp + 0xc], eax
call sym._fwrite
cmp dword [esp + 0x1c], 0
je 0x41d3c1
call sym.___cxa_rethrow
mov dword [esp], ebp
call sym._fputs
jmp 0x41d35b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
call sym._abort
mov dword [esp], ebp
call sym._free
jmp 0x41d385
call sym._abort
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
jmp 0x41d429