joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d6b5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
push dword [esi + 8]
mov dword [esp + 0x10], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001d844
call dword [sym.imp.USER32.dll_EmptyClipboard]
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.10010e38
mov edi, dword [ebp + 8]
test al, al
je 0x1001d730
push dword [edi + 4]
push dword [edi]
call fcn.1001e8a5
pop ecx
mov dword [esp + 0x14], eax
pop ecx
add eax, eax
push eax
lea esi, [esp + 0x1c]
call fcn.1001cbef
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x1001d7cd
push dword [esp + 0x10]
mov esi, dword [edi]
push dword [edi + 4]
call fcn.1001e8e0
pop ecx
pop ecx
jmp 0x1001d76c
push dword [edi + 0xc]
push dword [edi + 0x10]
call fcn.1001ba35
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
pop ecx
pop ecx
add eax, eax
push eax
lea esi, [esp + 0x1c]
call fcn.1001cbef
cmp dword [esp + 0x1c], ebx
je 0x1001d7cd
mov eax, dword [edi + 4]
push eax
push dword [esp + 0x20]
push eax
push dword [edi]
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp byte [0x10062288], bl
jne 0x1001d7bb
push dword [edi + 4]
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call fcn.1001cbef
cmp dword [esp + 0x14], ebx
je 0x1001d7bb
push ebx
push ebx
push dword [edi + 4]
push dword [esp + 0x20]
push 0xffffffffffffffff
push dword [esp + 0x30]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x10]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x18]
push 0xd
jmp 0x1001d808
push dword [edi + 4]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.1001cbef
cmp dword [esp + 0x1c], ebx
je 0x1001d80e
push dword [edi + 4]
push dword [edi]
push dword [esp + 0x24]
call fcn.1004b760
add esp, 0xc
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0x18]
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp byte [edi + 8], bl
je 0x1001d826
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0xc6e]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
cmp byte [edi + 9], bl
je 0x1001d83e
mov eax, dword [esp + 0xc]
movzx eax, word [eax + 0xc70]
push ebx
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001e5f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 0x14]
add eax, ecx
push 2
pop ecx
cmp eax, ecx
mov dword [esi + 0x34], eax
jg 0x1001e606
mov dword [esi + 0x34], ecx
push ebx
xor ebx, ebx
cmp byte [esi + 0x10], bl
je 0x1001e613
mov dword [esi + 0x30], ebx
jmp 0x1001e61b
lea ecx, [esi + 0x2c]
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x34]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x1001e644
mov ecx, esi
call fcn.1001e5a9
test al, al
jne 0x1001e63f
cmp dword [esi + 0x18], ebx
jne 0x1001e644
xor eax, eax
inc eax
jmp 0x1001e646
xor eax, eax
mov byte [esi + 0x10], al
cmp al, bl
je 0x1001e658
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov dword [esi + 0x30], eax
jmp 0x1001e680
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x1001e67d
push dword [ebp + 0xc]
movzx ebx, byte [esi + 0x12]
push ebx
movzx ebx, byte [esi + 0x11]
push ebx
push dword [ebp - 4]
lea ecx, [esi + 0x2c]
push dword [esi + 0x1c]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x1001e680
mov dword [esi + 0x30], ebx
mov eax, dword [edi]
lea ebx, [esi + 0x2c]
push ebx
mov ecx, edi
call dword [eax + 0x64]
mov dword [esi + 0x3c], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x68]
mov dword [esi + 0x40], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x70]
mov dword [esi + 0x44], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x74]
mov dword [esi + 0x38], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x78]
push 0x20
mov dword [esi + 0x48], eax
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x60]
mov dword [esi + 0x4c], eax
pop ebx
leave
ret 8
Function at 0x10022604
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x10022cb3
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10022788
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov al, bh
invalid
invalid
mov eax, 0xf88985c6
invalid
inc ecx
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
invalid
invalid
invalid
Function at 0x1002e7e7
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, eax
jmp 0x1002e815
mov eax, dword [edi + 0x18]
cmp eax, 0x20
je 0x1002e80e
cmp eax, 9
je 0x1002e80e
cmp eax, 0xa
je 0x1002e80e
cmp eax, 0xd
jne 0x1002e81d
mov eax, edi
call fcn.1001ff6f
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jb 0x1002e7f7
mov edx, dword [edi + 8]
push dword [edi + 0x10]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
dec edx
push edx
call dword [eax + 0x48]
mov ebx, dword [edi + 0x18]
cmp ebx, 0x80
jge 0x1002e9ea
push ebx
call fcn.1004b629
pop ecx
test eax, eax
jne 0x1002e907
cmp ebx, 0x2e
je 0x1002e907
cmp ebx, 0x5f
je 0x1002e907
cmp ebx, 0x5c
jne 0x1002e9ea
jmp 0x1002e907
mov ebx, dword [edi + 0x18]
cmp ebx, 0x20
je 0x1002e913
cmp ebx, 9
je 0x1002e913
cmp ebx, 0xa
je 0x1002e913
cmp ebx, 0xd
je 0x1002e913
cmp dword [ebp - 4], 0x1f3
jge 0x1002e913
push ebx
call fcn.1004b629
pop ecx
test eax, eax
jne 0x1002e8f1
cmp ebx, 0x2a
je 0x1002e913
cmp ebx, 0x2f
je 0x1002e913
cmp ebx, 0x2d
je 0x1002e913
cmp ebx, 0x2b
je 0x1002e913
cmp ebx, 0x28
je 0x1002e913
cmp ebx, 0x29
je 0x1002e913
cmp ebx, 0x3d
je 0x1002e913
cmp ebx, 0x25
je 0x1002e913
cmp ebx, 0x5b
je 0x1002e913
cmp ebx, 0x5d
je 0x1002e913
cmp ebx, 0x3c
je 0x1002e913
cmp ebx, 0x3e
je 0x1002e913
cmp ebx, 0x2c
je 0x1002e913
cmp ebx, 0x3b
je 0x1002e913
cmp ebx, 0x3a
je 0x1002e913
mov al, byte [edi + 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
inc dword [ebp - 4]
mov byte [edx + ecx], al
mov eax, edi
call fcn.1001ff6f
mov eax, dword [edi + 8]
cmp eax, dword [edi + 4]
jb 0x1002e86b
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov byte [eax + ebx], 0
cmp byte [ebx], 0
mov dword [ebp - 4], ebx
je 0x1002e953
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.1004b3a2
pop ecx
test eax, eax
je 0x1002e948
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
push eax
call fcn.1004befc
pop ecx
mov ecx, dword [ebp - 4]
mov byte [ecx], al
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp byte [eax], 0
jne 0x1002e925
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [esi + 0x10]
push ebx
mov esi, eax
mov dword [ebp - 0xc], ecx
call fcn.10018b3a
test al, al
je 0x1002e97d
push 3
jmp 0x1002e9bf
mov esi, dword [ebp - 4]
push ebx
call fcn.10018b3a
test al, al
je 0x1002e98e
push 5
jmp 0x1002e9bf
mov esi, dword [ebp - 8]
push ebx
call fcn.10018b3a
test al, al
je 0x1002e99f
push 6
jmp 0x1002e9bf
mov esi, dword [ebp - 0xc]
push ebx
call fcn.10018b3a
test al, al
je 0x1002e9b0
push 7
jmp 0x1002e9bf
mov esi, dword [ebp - 0x10]
push ebx
call fcn.10018b3a
test al, al
je 0x1002e9d7
push 4
mov ecx, dword [ebp + 8]
pop eax
mov dword [edi + 0x10], eax
mov edx, dword [ecx]
push eax
mov eax, dword [edi + 8]
dec eax
push eax
call dword [edx + 0x48]
and dword [edi + 0x10], 0
jmp 0x1002e9ea
and dword [edi + 0x10], 0
mov edx, dword [edi + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push 0
dec edx
push edx
call dword [eax + 0x48]
pop esi
pop ebx
leave
ret
Function at 0x1004a8e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005f070]
jne 0x1004a8ee
repz ret
jmp fcn.1004df85

Function at 0x10053790
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1004f086
and dword [ebp - 4], 0
cmp dword [0x10062154], 0
mov ebx, eax
jne 0x10053841
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100538f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100538f2
push eax
call fcn.1004f014
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10062154], eax
call esi
push eax
call fcn.1004f014
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10062158], eax
call esi
push eax
call fcn.1004f014
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1006215c], eax
call esi
push eax
call fcn.1004f014
pop ecx
mov dword [0x10062164], eax
test eax, eax
je 0x10053841
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1004f014
pop ecx
mov dword [0x10062160], eax
mov eax, dword [0x10062160]
cmp eax, ebx
je 0x10053899
cmp dword [0x10062164], ebx
je 0x10053899
push eax
call fcn.1004f08f
push dword [0x10062164]
mov esi, eax
call fcn.1004f08f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10053899
test edi, edi
je 0x10053899
call esi
test eax, eax
je 0x10053890
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10053890
test byte [ebp - 0xc], 1
jne 0x10053899
or dword [ebp + 0x10], 0x200000
jmp 0x100538d2
mov eax, dword [0x10062158]
cmp eax, ebx
je 0x100538d2
push eax
call fcn.1004f08f
pop ecx
test eax, eax
je 0x100538d2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100538d2
mov eax, dword [0x1006215c]
cmp eax, ebx
je 0x100538d2
push eax
call fcn.1004f08f
pop ecx
test eax, eax
je 0x100538d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10062154]
call fcn.1004f08f
pop ecx
test eax, eax
je 0x100538f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100538f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x756079e
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2c1d4446
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x4be3cc], 1
mov dword [0x4be3c8], 1
mov dword [0x4be3c4], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x4bc00c], eax
mov eax, dword [0x4be3d8]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4be3ec]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4be3d4]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4a2280], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x41cc40
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jle 0x41cdd7
mov eax, dword [esp + 0xc]
lea ebx, [eax + ecx]
and ecx, 7
je 0x41cd19
cmp ecx, 1
je 0x41ccfa
cmp ecx, 2
je 0x41cce3
cmp ecx, 3
je 0x41cccc
cmp ecx, 4
je 0x41ccb5
cmp ecx, 5
je 0x41cc9e
cmp ecx, 6
jne 0x41cddb
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
cmp ebx, eax
je 0x41cdd7
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
mov ecx, edx
movzx edx, byte [eax + 1]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
mov ecx, edx
movzx edx, byte [eax + 2]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
mov ecx, edx
movzx edx, byte [eax + 3]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
mov ecx, edx
movzx edx, byte [eax + 4]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
mov ecx, edx
movzx edx, byte [eax + 5]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
mov ecx, edx
movzx edx, byte [eax + 6]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
movzx ecx, byte [eax + 7]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 8
cmp ebx, eax
jne 0x41cd19
mov eax, edx
pop ebx
ret
movzx ecx, byte [eax]
xor edx, ecx
movzx ecx, dl
shr dx, 8
xor dx, word [ecx + ecx + 0x4a4880]
add eax, 1
jmp 0x41cc87
Function at 0x421cc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x421eb6
lea eax, [ebx + 0x4c]
sub edx, 1
mov ecx, edx
shr ecx, 1
and edx, 0xfffffffe
add edx, edx
add edx, edx
add ecx, edx
shl ecx, 4
lea edx, [ebx + 0xdc]
add ecx, edx
movss xmm0, dword [0x4a4b90]
mov edx, ecx
sub edx, eax
and edx, 0x10
je 0x421d8b
movss xmm1, dword [eax]
xorps xmm1, xmm0
movss dword [eax], xmm1
movss xmm2, dword [eax + 8]
xorps xmm2, xmm0
movss dword [eax + 8], xmm2
movss xmm3, dword [eax + 0x10]
xorps xmm3, xmm0
movss dword [eax + 0x10], xmm3
movss xmm4, dword [eax + 0x18]
xorps xmm4, xmm0
movss dword [eax + 0x18], xmm4
movss xmm5, dword [eax + 0x20]
xorps xmm5, xmm0
movss dword [eax + 0x20], xmm5
movss xmm6, dword [eax + 0x28]
xorps xmm6, xmm0
movss dword [eax + 0x28], xmm6
movss xmm7, dword [eax + 0x30]
xorps xmm7, xmm0
movss dword [eax + 0x30], xmm7
movss xmm1, dword [eax + 0x38]
xorps xmm1, xmm0
movss dword [eax + 0x38], xmm1
movss xmm2, dword [eax + 0x40]
xorps xmm2, xmm0
movss dword [eax + 0x40], xmm2
lea eax, [ebx + 0xdc]
cmp ecx, eax
je 0x421eb6
movss xmm3, dword [eax]
xorps xmm3, xmm0
movss dword [eax], xmm3
movss xmm4, dword [eax + 8]
xorps xmm4, xmm0
movss dword [eax + 8], xmm4
movss xmm5, dword [eax + 0x10]
xorps xmm5, xmm0
movss dword [eax + 0x10], xmm5
movss xmm6, dword [eax + 0x18]
xorps xmm6, xmm0
movss dword [eax + 0x18], xmm6
movss xmm7, dword [eax + 0x20]
xorps xmm7, xmm0
movss dword [eax + 0x20], xmm7
movss xmm1, dword [eax + 0x28]
xorps xmm1, xmm0
movss dword [eax + 0x28], xmm1
movss xmm2, dword [eax + 0x30]
xorps xmm2, xmm0
movss dword [eax + 0x30], xmm2
movss xmm3, dword [eax + 0x38]
xorps xmm3, xmm0
movss dword [eax + 0x38], xmm3
movss xmm4, dword [eax + 0x40]
xorps xmm4, xmm0
movss dword [eax + 0x40], xmm4
movss xmm5, dword [eax + 0x90]
xorps xmm5, xmm0
movss dword [eax + 0x90], xmm5
movss xmm6, dword [eax + 0x98]
xorps xmm6, xmm0
movss dword [eax + 0x98], xmm6
movss xmm7, dword [eax + 0xa0]
xorps xmm7, xmm0
movss dword [eax + 0xa0], xmm7
movss xmm1, dword [eax + 0xa8]
xorps xmm1, xmm0
movss dword [eax + 0xa8], xmm1
movss xmm2, dword [eax + 0xb0]
xorps xmm2, xmm0
movss dword [eax + 0xb0], xmm2
movss xmm3, dword [eax + 0xb8]
xorps xmm3, xmm0
movss dword [eax + 0xb8], xmm3
movss xmm4, dword [eax + 0xc0]
xorps xmm4, xmm0
movss dword [eax + 0xc0], xmm4
movss xmm5, dword [eax + 0xc8]
xorps xmm5, xmm0
movss dword [eax + 0xc8], xmm5
movss xmm6, dword [eax + 0xd0]
xorps xmm6, xmm0
movss dword [eax + 0xd0], xmm6
add eax, 0x120
cmp ecx, eax
jne 0x421d8b
pop ebx
pop ebp
ret
Function at 0x46b096
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x14]
movzx edx, byte [esi + 1]
add edx, 0xffffff80
add edx, edx
lea eax, [esi + 2]
mov ebx, dword [esp + 0x18]
add esi, 0x482
movzx ecx, byte [eax]
movzx edi, byte [eax + 1]
add ecx, edi
sub ecx, 0x100
mov ebp, edx
shl ebp, 7
pxor xmm0, xmm0
cvtsi2ss xmm0, ebp
movss dword [ebx], xmm0
add edx, ecx
shl edx, 6
pxor xmm1, xmm1
cvtsi2ss xmm1, edx
movss dword [ebx + 4], xmm1
movzx edx, byte [eax + 2]
movzx edi, byte [eax + 3]
add edx, edi
sub edx, 0x100
mov ebp, ecx
shl ebp, 7
pxor xmm2, xmm2
cvtsi2ss xmm2, ebp
movss dword [ebx + 8], xmm2
add ecx, edx
shl ecx, 6
pxor xmm3, xmm3
cvtsi2ss xmm3, ecx
movss dword [ebx + 0xc], xmm3
movzx ecx, byte [eax + 4]
movzx edi, byte [eax + 5]
add ecx, edi
sub ecx, 0x100
mov ebp, edx
shl ebp, 7
pxor xmm4, xmm4
cvtsi2ss xmm4, ebp
movss dword [ebx + 0x10], xmm4
add edx, ecx
shl edx, 6
pxor xmm5, xmm5
cvtsi2ss xmm5, edx
movss dword [ebx + 0x14], xmm5
movzx edx, byte [eax + 6]
movzx edi, byte [eax + 7]
add edx, edi
sub edx, 0x100
mov ebp, ecx
shl ebp, 7
pxor xmm6, xmm6
cvtsi2ss xmm6, ebp
movss dword [ebx + 0x18], xmm6
add ecx, edx
shl ecx, 6
pxor xmm7, xmm7
cvtsi2ss xmm7, ecx
movss dword [ebx + 0x1c], xmm7
movzx ecx, byte [eax + 8]
movzx edi, byte [eax + 9]
add ecx, edi
sub ecx, 0x100
mov ebp, edx
shl ebp, 7
pxor xmm0, xmm0
cvtsi2ss xmm0, ebp
movss dword [ebx + 0x20], xmm0
add edx, ecx
shl edx, 6
pxor xmm1, xmm1
cvtsi2ss xmm1, edx
movss dword [ebx + 0x24], xmm1
movzx edx, byte [eax + 0xa]
movzx edi, byte [eax + 0xb]
add edx, edi
sub edx, 0x100
mov ebp, ecx
shl ebp, 7
pxor xmm2, xmm2
cvtsi2ss xmm2, ebp
movss dword [ebx + 0x28], xmm2
add ecx, edx
shl ecx, 6
pxor xmm3, xmm3
cvtsi2ss xmm3, ecx
movss dword [ebx + 0x2c], xmm3
add eax, 0xc
add ebx, 0x30
cmp eax, esi
jne 0x46b0b4
mov eax, 0x480
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x478bd0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x478c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4be3e0]
test esi, esi
jle 0x478d50
mov eax, dword [0x4be3e4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x478c64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x478ce7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x478c50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x478d77
mov eax, dword [0x4be3e4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x4be3e4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x478d57
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x478ce0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x478cf0
add dword [0x4be3e0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4be3e4]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x478ce0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x478c6e
mov eax, dword [0x4be3e4]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x479290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4be3fc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4be3f4]
sub esp, 4
test ebx, ebx
je 0x4792e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x4792de
test eax, eax
jne 0x4792de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4792c0
mov dword [esp], 0x4be3fc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x479620
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x479645
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x479650
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x479645
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x479698
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x47968e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x47969a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x479680
xor eax, eax
pop ebx
pop esi
ret