joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4546dc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
push ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x78]
shl ebp, 4
push edi
mov dword [esp + 0x10], edx
add ebp, 0x4d7630
call fcn.0045458d
mov edi, eax
cmp byte [edi], 0x25
jne 0x454739
mov ecx, edi
call fcn.004545a3
mov ecx, eax
cmp byte [ecx], 0
je 0x45473c
sub ecx, edi
mov edx, edi
inc ecx
push 0x20
pop eax
cmp ecx, eax
cmovb eax, ecx
lea ecx, [esp + 0x48]
push eax
call fcn.0042cc5d
cmp byte [esp + 0x4c], 0
lea edi, [esp + 0x4c]
pop ecx
jne 0x45473c
mov edi, dword [ebp + 8]
push edi
push dword [esp + 0x7c]
lea ecx, [esp + 0x30]
push dword [esp + 0x7c]
push 0x20
pop edx
call fcn.004531bb
add esp, 0xc
lea esi, [esp + 0x28]
mov al, byte [esi]
cmp al, 0x20
je 0x454762
cmp al, 9
jne 0x454765
inc esi
jmp 0x454758
mov ebx, esi
test al, al
je 0x454783
inc esi
cmp byte [esi], 0
jne 0x45476b
jmp 0x45477f
mov al, byte [esi - 1]
cmp al, 0x20
je 0x45477e
cmp al, 9
jne 0x454783
dec esi
cmp esi, ebx
ja 0x454773
lea eax, [esp + 0x28]
cmp ebx, eax
je 0x45479e
mov eax, esi
sub eax, ebx
push eax
lea eax, [esp + 0x2c]
push ebx
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
sub esi, ebx
mov edx, edi
mov ebx, dword [esp + 0x74]
mov ecx, ebx
mov byte [esp + esi + 0x28], 0
call fcn.004546a3
mov esi, dword [0x5657a8]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x598c]
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x10]
je 0x4547d5
xor edx, edx
xor ecx, ecx
call fcn.0042ffd9
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esi + 0x3e48]
mov dword [eax + 0xf0], ecx
mov dword [eax + 0xf4], edx
xor edx, edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [eax + 0xc]
subss xmm0, dword [eax + 4]
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x24]
or eax, 0x18000010
movss dword [esp + 0x20], xmm0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.00456199
mov ecx, dword [esp + 0x3c]
add esp, 0x18
cmp ecx, dword [esp + 0x10]
je 0x454851
mov ecx, dword [esi + 0x3e94]
mov dword [esi + 0x598c], ecx
test al, al
je 0x4548e6
mov eax, dword [ebp]
mov ebp, dword [esp + 0x78]
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea ecx, [esp + 0x28]
mov edx, ebx
push edi
push ebp
call fcn.00453262
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
pop ecx
pop ecx
test edi, edi
jne 0x45489a
test esi, esi
je 0x4548c0
jmp 0x4548b3
test esi, esi
je 0x4548b3
push esi
mov edx, edi
mov ecx, ebx
call fcn.00453428
pop ecx
test eax, eax
jle 0x4548b3
mov eax, edi
mov edi, esi
mov esi, eax
push esi
push edi
mov edx, ebp
mov ecx, ebx
call fcn.00453550
pop ecx
pop ecx
push dword [esp + 0x24]
lea eax, [esp + 0x20]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
setne bl
test bl, bl
je 0x4548e8
mov ecx, dword [esp + 0x10]
call fcn.00430152
jmp 0x4548e8
xor ebx, ebx
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x5c
ret
Function at 0x46ead4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x46eafb
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x46eafe
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0046eab0
pop esi
leave
ret 8

Function at 0x46f702
Capabilities:
Parse pe header

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

Function at 0x431ff0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2a000]
push edi
or ebp, 0xffffffff
jmp 0x432012
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x432019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x432008
mov eax, 1
add ebx, ebx
jne 0x43202b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x432020
jne 0x43203c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x432020
xor ecx, ecx
sub eax, 3
jb 0x432050
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4320c2
mov ebp, eax
add ebx, ebx
jne 0x43205b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x432068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43208c
inc ecx
add ebx, ebx
jne 0x432078
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43206d
jne 0x432089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43206d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4320ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43209d
jmp 0x43200e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4320ac
add edi, ecx
jmp 0x43200e
pop esi
mov edi, esi
mov ecx, 0x4ea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4320ca
cmp byte [edi], 1
jne 0x4320ca
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 eax, ebx
loop 0x4320cf
lea edi, [esi + 0x2f000]
mov eax, dword [edi]
or eax, eax
je 0x43213e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x327a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32808]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4320fc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3280c]
or eax, eax
je 0x432138
mov dword [ebx], eax
add ebx, 4
jmp 0x432119
call dword [esi + 0x32810]
popal
jmp 0x403adb
Function at 0x402edc
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, edx
mov eax, dword [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x402f37
push ecx
push 0
mov eax, esp
push 0
push eax
mov eax, dword [ebx + 8]
mul ecx
push eax
push esi
push dword [ebx]
call sub.kernel32.dll_WriteFile
dec eax
pop eax
pop ecx
jne 0x402f29
xor edx, edx
div dword [ebx + 8]
mov edx, dword [esp + 0xc]
test edx, edx
je 0x402f1e
mov dword [edx], eax
pop esi
pop ebx
ret 4
cmp eax, ecx
je 0x402f19
mov eax, 0x65
jmp 0x402f2e
call sub.kernel32.dll_GetLastError
call fcn.00402498
xor eax, eax
jmp 0x402f19
mov eax, 0x67
jmp 0x402f2e

Function at 0x402f7c
Capabilities:
Delete file

Disassembly:
mov edx, dword [eax + 4]
sub edx, 0xd7b0
cmp edx, 3
ja 0x402fa3
lea eax, [eax + 0x48]
push eax
call sub.kernel32.dll_DeleteFileA
dec eax
jne 0x402f97
ret
call sub.kernel32.dll_GetLastError
call fcn.00402498
jmp 0x402f96
mov eax, 0x66
jmp 0x402f9c

Function at 0x4037fc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
push esp
lea eax, [esp + 0x104]
push eax
call fcn.004034dc
lea eax, [esp + 0x100]
mov edx, ebx
call fcn.004037b0
add esp, 0x200
pop ebx
ret

Function at 0x403838
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0x104]
push eax
lea eax, [esp + 8]
push eax
push esi
call fcn.00403500
push eax
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
jne 0x40386b
mov byte [ebx], 0
jmp 0x403879
lea eax, [esp + 0x100]
push eax
push ebx
call fcn.004034dc
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x403884
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40390c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
mov edx, ebx
call fcn.00402afc
lea eax, [ebp - 0x108]
mov edx, 0x403924
call fcn.00402b30
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
mov ecx, 0xff
call fcn.00402c20
lea eax, [ebp - 0x104]
push eax
call fcn.00403500
push eax
call sub.kernel32.dll_GetDriveTypeA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403913
lea eax, [ebp - 0x108]
call fcn.00402a14
ret

Function at 0x403a94
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffefc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
lea eax, [esp + 4]
xor ecx, ecx
mov edx, dword [esp]
call fcn.00402694
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x403ad0
lea eax, [esp + 4]
push eax
push ebx
call fcn.004034dc
jmp 0x403ad9
mov edi, ebx
mov esi, 0x403ae4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0x104
pop edi
pop esi
pop ebx
ret
Function at 0x403730
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, 0x13c4
call fcn.00407fc0
mov eax, dword [0x434010]
xor eax, esp
mov dword [esp + 0x13bc], eax
push ebx
push ebp
push esi
push edi
push 0x3e
mov esi, ecx
mov dword [esp + 0x3c], 0
xorps xmm0, xmm0
mov dword [esp + 0x40], 0
push str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
lea ecx, [esp + 0x30]
movups xmmword [esp + 0x30], xmm0
call fcn.00404390
call fcn.00406c95
mov edx, eax
mov dword [esp + 0x13c4], 0xffffffff
mov dword [esp + 0x44], edx
mov ecx, 1
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [esp + ecx*4 + 0x44], edx
inc ecx
cmp ecx, 0x270
jb 0x403791
mov ebp, dword [esp + 0x38]
lea eax, [esp + 0x40]
mov ebx, dword [esp + 0x28]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
dec ebp
mov dword [esi + 0x14], 0xf
mov edi, 0xa
mov dword [esp + 0x40], 0x270
mov byte [esi], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x18]
cmp ebp, 0xffffffff
jne 0x403802
call fcn.00404f00
jmp 0x40380b
lea eax, [ebp + 1]
push eax
call fcn.004050c0
cmp dword [esp + 0x3c], 0x10
mov ecx, eax
mov edx, dword [esi + 0x14]
lea eax, [esp + 0x28]
cmovae eax, ebx
mov bl, byte [ecx + eax]
mov ecx, dword [esi + 0x10]
mov byte [esp + 0x24], bl
cmp ecx, edx
jae 0x403843
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0x10
jb 0x403839
mov eax, dword [esi]
mov byte [eax + ecx], bl
mov byte [eax + ecx + 1], 0
jmp 0x403859
push dword [esp + 0x24]
mov byte [esp + 0x18], 0
mov ecx, esi
push dword [esp + 0x18]
push 1
call fcn.00404420
mov ebx, dword [esp + 0x28]
sub edi, 1
jne 0x4037f2
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x403894
lea ecx, [eax + 1]
mov edx, ebx
mov eax, edx
cmp ecx, 0x1000
jb 0x40388a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4038af
push ecx
push edx
call fcn.0040745e
add esp, 8
mov ecx, dword [esp + 0x13cc]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00407420
add esp, 0x13c4
ret
call fcn.0040df84
int3

Function at 0x403ee0
Capabilities:
Create thread

Disassembly:
sub esp, 8
mov eax, dword [0x434010]
xor eax, esp
mov dword [esp + 4], eax
lea eax, [esp]
mov dword [esp], 0
push eax
push 0
push 0
push 0x4038c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
xor eax, eax
xor ecx, esp
call fcn.00407420
add esp, 8
ret
Function at 0x404f00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov eax, ecx
xor edx, edx
push esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
push edi
mov ecx, dword [eax + 4]
dec ecx
shl edx, cl
add edx, edx
mov dword [esp + 0x18], edx
nop
mov edi, dword [eax]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x404f73
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x404f33
mov eax, dword [edi]
jmp 0x405055
cmp eax, 0x4e0
jb 0x405055
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x404f90
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x404fe0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, dword [esp + 0x14]
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [eax + 8]
ja 0x404f20
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add ebx, dword [eax + 4]
or edx, ecx
mov dword [esp + 0x10], ebx
cmp ebx, 0x20
jb 0x404f13
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret
Function at 0x4050c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, ecx
mov dword [esp + 0x14], ebx
dec edi
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x10], eax
test edi, edi
je 0x405292
mov ecx, dword [ebx + 4]
dec ecx
shl ebp, cl
add ebp, ebp
mov dword [esp + 0x18], ebp
nop
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x405143
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
sub esi, 1
jne 0x405103
mov eax, dword [edi]
jmp 0x405229
cmp eax, 0x4e0
jb 0x405229
mov eax, dword [edi + 0x9c4]
lea ebx, [edi + 0x9c4]
mov ebp, 0xe3
nop
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x405160
mov eax, dword [edi + 0xd50]
lea ebx, [edi + 0xd50]
mov ebp, 0x18c
nop word [eax + eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub ebp, 1
jne 0x4051b0
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
mov ebx, dword [esp + 0x14]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
mov edx, dword [ebx + 8]
cmp eax, edx
ja 0x4050f0
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebx + 4]
or ebp, eax
mov eax, dword [esp + 0x10]
dec ecx
shl eax, cl
mov ecx, dword [esp + 0x20]
add eax, eax
or eax, edx
mov dword [esp + 0x10], eax
lea edi, [ecx - 1]
cmp eax, edi
jb 0x4050e2
jmp 0x405296
mov ecx, dword [esp + 0x20]
xor edx, edx
div ecx
mov ecx, eax
mov esi, edx
xor edx, edx
mov eax, ebp
div dword [esp + 0x20]
cmp eax, ecx
jb 0x4052b2
cmp esi, edi
jne 0x4050d2
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0xc
ret 4
Function at 0x407c21
Capabilities:
Parse pe header

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

Function at 0x41455f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4299d4
push 0x4299cc
push str.FlsAlloc
push 0x1e
call fcn.004143cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414593
push dword [ebp + 8]
mov ecx, esi
call dword [0x426140]
call esi
jmp 0x414599
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4145dd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4299e4
push 0x4299dc
push str.FlsGetValue
push 0x20
call fcn.004143cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414614
push dword [ebp + 8]
mov ecx, esi
call dword [0x426140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4180ef
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417d91

Function at 0x4180fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00417f20

Function at 0x41866f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407fc0
mov eax, dword [0x434010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00414bd2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4186b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41880d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00424c70
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x435ac8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418a95
mov ecx, dword [esi*4 + 0x435ac8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x418806
cmp eax, dword [edi + ecx + 0x24]
jne 0x418806
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418806
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418a95
add esp, 0x14
test edx, edx
jl 0x418806
jg 0x41877c
test eax, eax
jb 0x418806
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x418806
jl 0x418796
cmp dword [ebp - 0x1008], eax
ja 0x418806
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4187b4
test ebx, ebx
je 0x4187ed
cmp ecx, edi
jae 0x4187ed
mov al, byte [ecx]
cmp al, 0xd
jne 0x4187ce
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4187da
cmp byte [ecx + 1], 0xa
jne 0x4187da
inc ecx
jmp 0x4187da
movzx eax, al
movsx eax, byte [eax + 0x434950]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4187b4
cmp edx, ebx
jne 0x4187b4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41880b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407420
leave
ret
Function at 0x41c43d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41c4da
push ebx
push esi
call fcn.0041c406
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041b08b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41c487
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c4d9
push edi
push eax
call fcn.00415426
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41c4a7
call fcn.004140f1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41c4d8
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041b08b
add esp, 0x20
test eax, eax
jne 0x41c4c6
push edi
call fcn.004140f1
jmp 0x41c4ce
push ebx
call fcn.004140f1
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x421c58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x435ac8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421c98
cmp byte [ebx], 0xa
jne 0x421c98
or byte [eax + edi + 0x28], 4
jmp 0x421c9d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421d9b
mov al, byte [edx]
cmp al, 0x1a
je 0x421d7d
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x421ccc
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x421cf1
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x421cfb
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421cae
jmp 0x421d9b
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421d78
cmp dword [ebp - 0xc], 0
je 0x421d78
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x435ac8]
test byte [eax + edi + 0x28], 0x48
je 0x421d52
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421d3d
mov byte [esi], dl
jmp 0x421d4e
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x435ac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421d9b
cmp byte [ebp - 1], 0xa
jne 0x421d61
cmp esi, ebx
jne 0x421d61
mov byte [esi], 0xa
jmp 0x421d9a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418ab3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421d9b
mov byte [esi], 0xd
jmp 0x421d9a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x435ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421d97
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421d9b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret