joyce8/EMBER2024-capa huggingface dataset:
Function at 0x105dbc60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105dbe4d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x35d000]
push edi
or ebp, 0xffffffff
jmp 0x105dbc8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105dbc91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dbc80
mov eax, 1
add ebx, ebx
jne 0x105dbca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105dbcb4
jne 0x105dbcd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dbcd3
dec eax
add ebx, ebx
jne 0x105dbcc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105dbc98
add ebx, ebx
jne 0x105dbccf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105dbd25
xor ecx, ecx
sub eax, 3
jb 0x105dbceb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105dbd5a
sar eax, 1
mov ebp, eax
jmp 0x105dbcf6
add ebx, ebx
jne 0x105dbcf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dbcc4
inc ecx
add ebx, ebx
jne 0x105dbd04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105dbcc4
add ebx, ebx
jne 0x105dbd11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105dbd06
jne 0x105dbd22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105dbd06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105dbd44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105dbd36
jmp 0x105dbc86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105dbd44
add edi, ecx
jmp 0x105dbc86
pop esi
mov edi, esi
mov ecx, 0x6b82
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105dbd62
cmp byte [edi], 0x22
jne 0x105dbd62
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 0x105dbd67
lea edi, [esi + 0x5d0000]
mov eax, dword [edi]
or eax, eax
je 0x105dbddf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e838c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e84bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105dbd94
mov ecx, edi
jns 0x105dbdc3
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 + 0x5e84c0]
or eax, eax
je 0x105dbdd9
mov dword [ebx], eax
add ebx, 4
jmp 0x105dbdb1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x105dbe10
cmp al, 0xef
ja 0x105dbe03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105dbde5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105dbdf2
mov ebp, dword [esi + 0x5e84c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
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 0x105dbe44
sub esp, 0xffffff80
jmp 0x100fc3d2
Function at 0x6534a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x140000]
push edi
or ebp, 0xffffffff
jmp 0x6534c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6534c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6534b8
mov eax, 1
add ebx, ebx
jne 0x6534db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6534ec
jne 0x65350b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x65350b
dec eax
add ebx, ebx
jne 0x6534f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6534d0
add ebx, ebx
jne 0x653507
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x65355d
xor ecx, ecx
sub eax, 3
jb 0x653523
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x653592
sar eax, 1
mov ebp, eax
jmp 0x65352e
add ebx, ebx
jne 0x65352e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6534fc
inc ecx
add ebx, ebx
jne 0x65353c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6534fc
add ebx, ebx
jne 0x653549
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x65353e
jne 0x65355a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x65353e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x65357c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x65356e
jmp 0x6534be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x65357c
add edi, ecx
jmp 0x6534be
pop esi
mov edi, esi
mov ecx, 0x5ce9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x65359a
cmp byte [edi], 0x22
jne 0x65359a
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 0x65359f
lea edi, [esi + 0x250000]
mov eax, dword [edi]
or eax, eax
je 0x653617
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2550a8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x255210]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6535cc
mov ecx, edi
jns 0x6535fb
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 + 0x255218]
or eax, eax
je 0x653611
mov dword [ebx], eax
add ebx, 4
jmp 0x6535e9
call dword [esi + 0x255214]
mov ebp, dword [esi + 0x25521c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x65364b
sub esp, 0xffffff80
jmp 0x4d4ef0
Function at 0x40176b
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x404122], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4043bc], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x404350], eax
mov dword [0x40411a], eax
mov dword [0x40433c], 0x30
mov dword [0x404340], 2
jmp 0x4017b0
mov dword [0x404344], 0x403300
mov dword [0x404348], 0
mov dword [0x40434c], 0
mov dword [0x404364], 0x4042e7
mov dword [0x40435c], 0xf
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404354], eax
mov dword [0x404368], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404358], eax
push 0x40433c
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x40411a]
push 0
push 0
push 0x1e5
push 0x203
push 0xfffff98e
push 0xfffff9c0
push 0xcf0000
push str.please_wait
push str.cokun
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4043b4], eax
push 5
push dword [0x4043b4]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4043b4]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x40436c]
jmp 0x401884
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x401876
mov eax, dword [0x404374]
jmp 0x40189f
call 0x402d98
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4c89e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x82000]
push edi
jmp 0x4c89fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c8a01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c89f0
mov eax, 1
add ebx, ebx
jne 0x4c8a13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c8a24
jne 0x4c8a43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c8a43
dec eax
add ebx, ebx
jne 0x4c8a30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c8a08
add ebx, ebx
jne 0x4c8a3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c8a95
xor ecx, ecx
sub eax, 3
jb 0x4c8a5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c8aca
sar eax, 1
mov ebp, eax
jmp 0x4c8a66
add ebx, ebx
jne 0x4c8a66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c8a34
inc ecx
add ebx, ebx
jne 0x4c8a74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c8a34
add ebx, ebx
jne 0x4c8a81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c8a76
jne 0x4c8a92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c8a76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c8ab4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c8aa6
jmp 0x4c89f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c8ab4
add edi, ecx
jmp 0x4c89f6
pop esi
mov edi, esi
mov ecx, 0xeef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c8ad2
cmp byte [edi], 0xe
jne 0x4c8ad2
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 0x4c8ad7
lea edi, [esi + 0xc4000]
mov eax, dword [edi]
or eax, eax
je 0x4c8b46
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc834c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc8388]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c8b04
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc838c]
or eax, eax
je 0x4c8b40
mov dword [ebx], eax
add ebx, 4
jmp 0x4c8b21
call dword [esi + 0xc839c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4c8b77
cmp al, 0xef
ja 0x4c8b6a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4c8b4c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4c8b59
mov ebp, dword [esi + 0xc8390]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x4c8bab
sub esp, 0xffffff80
jmp 0x4448d6
Function at 0x1001000
Capabilities:
Accept command line arguments
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [str.OcB_]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
test esi, esi
je 0x10010bd
cmp dword [esp + 0x34], 2
jne 0x10010b6
push 0x40
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x44
push 0
push eax
call fcn.010021b0
add esp, 0xc
xor edi, edi
push dword [esi + 4]
call fcn.01004936
add esp, 4
test eax, eax
jle 0x10010b2
lea eax, [esp + 0x80]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x3c]
movaps xmmword [esp + 0x84], xmm0
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push dword [esi]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [esi + 4]
inc edi
call fcn.01004936
add esp, 4
cmp edi, eax
jl 0x1001074
mov edi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x10164d0
push 0x67
push edi
call esi
push 0x64
push 0x1016408
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [esp + 0x40], 0x30
mov dword [esp + 0x44], 3
mov dword [esp + 0x48], 0x1001240
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6b
push dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], 0x6d
mov dword [esp + 0x68], 0x1016408
call esi
mov dword [esp + 0x64], eax
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x10164d0
push 0x1016408
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x100119e
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0100126a
mov esp, ebp
pop ebp
ret 0x10
push 7
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x100121a
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop dword [eax + eax]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1001209
lea eax, [esp + 0x18]
push eax
call edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
call esi
test eax, eax
jne 0x10011e0
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.0100126a
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1001aa0
Capabilities:
Parse pe header

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

Function at 0x1006bd0
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [str.OcB_]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1006c1b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.01006d6b
test al, al
jne 0x1006c15
sub edx, 2
cmp edx, edi
jne 0x1006bfb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1006c3d
lea eax, [edi + 2]
cmp edx, eax
je 0x1006c3d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.01006b1c
add esp, 0x10
jmp 0x1006d37
push esi
lea ecx, [ebp - 0x255]
call fcn.01006d6b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006c80
push dword [ebp - 0x25c]
jmp 0x1006c2d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1006cbd
cmp word [ebp - 0x226], 0
je 0x1006cde
cmp word [ebp - 0x226], ax
jne 0x1006cbd
cmp word [ebp - 0x224], 0
je 0x1006cde
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.01006b1c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1006d2a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1006c97
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1006d12
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1006d37
push 0x100694c
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.01009870
add esp, 0x10
jmp 0x1006d07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100126a
leave
ret

Function at 0x10087e8
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10101f4
push 0x10101ec
push str.FlsAlloc
push 0x1f
call fcn.01008723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100881c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e150]
call esi
jmp 0x1008822
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1008866
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1010204
push 0x10101fc
push str.FlsGetValue
push 0x21
call fcn.01008723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100889d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100e150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10088a5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101020c
push 0x1010204
push str.FlsSetValue
push 0x22
call fcn.01008723
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10088df
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100e150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100d5a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100d5cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d5cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401af0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401c3d
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401b84
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401c36
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401b70
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401c7a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401c5a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401c2f
sub eax, 0x40
and eax, 0xffffffbf
je 0x401c2f
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x401c44
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401b8e
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
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
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, [esi]
Function at 0x402140
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402195
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40218e
test esi, esi
je 0x40218e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402170
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4023b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4023e8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4023de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4023d0
xor eax, eax
pop ebx
pop esi
ret