joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100af49
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [edi + 0x88], eax
jne 0x100af6d
xor al, al
jmp 0x100af86
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x100af31
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret

Function at 0x100bc7f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
push edi
push 2
push 0
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 4], ebx
jne 0x100bcd1
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bcbc
call esi
mov esi, eax
jmp 0x100bd97
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100bd97
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x100bcf2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x100bd17
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x100bd05
call esi
jmp 0x100bd8c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x100bd8e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x100bd56
lea edi, [ebx + 1]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.0101a7e0
mov ecx, edi
mov edx, ecx
mov eax, esp
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 8], eax
mov byte [eax + ebx], 0
mov edi, esp
test edi, edi
jne 0x100bd5e
xor eax, eax
jmp 0x100bd80
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.0101a7e0
mov eax, esp
push esi
push edi
push eax
call fcn.01008cce
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push eax
call fcn.0100b77f
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x10129a6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
test byte [0x102407c], 0x10
mov eax, dword [0x102416c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ebx, ecx
je 0x10129e2
push ebx
push 0x10020e0
push 0x10
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
push edi
xor eax, eax
push 7
pop ecx
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
push 7
pop ecx
mov byte [ebp - 0x64], 0
lea edi, [ebp - 0x63]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0x80], 0
stosb byte es:[edi], al
xor eax, eax
push 7
mov byte [ebp - 0x24], 0
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xac], eax
add eax, 2
push eax
call fcn.0101a34c
mov edi, eax
test edi, edi
pop ecx
mov dword [ebx + 0xa8], edi
jne 0x1012a4b
and dword [ebx + 0xac], eax
mov dword [ebp - 0x80], 0x8007000e
jmp 0x1012b77
mov ecx, dword [ebx + 0xac]
mov eax, dword [ebp + 0x10]
inc ecx
inc ecx
mov edx, ecx
mov dword [ebx + 0x94], eax
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0xac]
mov edi, dword [ebx + 0xa8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 9
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop ecx
xor eax, eax
lea esi, [ebx + 0x24]
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
push dword [ebp + 0xc]
mov dword [ebx + 0x28], 0x24
push dword [ebx + 0xa8]
call fcn.01016fdc
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x84], eax
je 0x1012aef
mov eax, dword [ebx + 0x44]
cmp eax, edi
mov dword [ebp - 0x80], 0x80040214
je 0x1012b77
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.01015e5a
mov dword [ebp - 0x80], eax
jmp 0x1012b77
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
mov ecx, ebx
call fcn.01012674
test al, al
jne 0x1012b0f
mov dword [ebp - 0x80], 0x80040214
jmp 0x1012b77
mov ecx, dword [esi]
test cl, 1
lea eax, [ebx + 0xa4]
mov dword [eax], edi
je 0x1012b24
mov dword [eax], 1
test cl, 0x10
je 0x1012b2f
mov dword [eax], 2
cmp dword [eax], edi
jne 0x1012b57
test byte [0x102407c], 0x10
je 0x1012b06
push ecx
push 0x10020e0
push 0x11
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x1012b06
lea eax, [ebx + 0xb4]
push eax
push edi
push ebx
push 0x10113d9
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx + 0xb0], eax
mov byte [ebx + 0x60], 1
test byte [0x102407c], 0x10
pop edi
je 0x1012b9d
push dword [ebp - 0x80]
push ebx
push 0x10020e0
push 0x12
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003433
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x80]
pop esi
pop ebx
call fcn.01019860
leave
ret 0xc
Function at 0x1012d50
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1012d73
mov esi, 0x8004020b
jmp 0x1012e30
cmp eax, dword [ebp + 8]
je 0x1012daa
test byte [0x102407c], 0x10
mov eax, 0x8004021e
mov esi, eax
je 0x1012e30
push eax
push 0x1002184
push 0x36
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x1012e30
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1012e00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x1012dd6
cmp eax, 0x27
mov esi, 0x80040218
jne 0x1012ddb
mov esi, 0x8004022a
test byte [0x102407c], 0x10
je 0x1012e30
push eax
push esi
push 0x1002184
push 0x37
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003433
jmp 0x1012e30
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x10], eax
je 0x1012e25
test byte [0x102407c], 0x10
mov eax, 0x8004021e
mov esi, eax
je 0x1012e30
push eax
push 0x1002184
push 0x38
jmp 0x1012d94
add dword [esi + 8], eax
mov eax, dword [ebp - 4]
adc dword [esi + 0xc], eax
xor esi, esi
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x10144fa
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0
jne 0x101450b
xor al, al
pop ebp
ret 4
pop ebp
jmp fcn.010143da

Function at 0x1014516
Capabilities:
Get token privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push 0x28
xor edi, edi
push 0xffffffffffffffff
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1014569
test byte [0x102407c], 0x10
je 0x101467f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10022d8
push 0xa
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x101467f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 8]
push eax
push edi
push edi
push 3
push dword [ebp - 4]
call esi
test eax, eax
je 0x10145ab
test byte [0x102407c], 0x10
je 0x101467e
push 0x10022d8
push 0xb
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
jmp 0x101467e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
je 0x10145e6
test byte [0x102407c], 0x10
je 0x101467d
call ebx
push eax
push 0x10022d8
push 0xc
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003407
jmp 0x101467d
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x101460c
test byte [0x102407c], 0x10
je 0x101467d
call ebx
push eax
push 0x10022d8
push 0xd
jmp 0x10145d0
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 3
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1014642
test byte [0x102407c], 0x10
je 0x101467d
push 0x10022d8
push 0xe
push dword [0x1024074]
push dword [0x1024070]
call fcn.0100332b
jmp 0x101467d
xor ebx, ebx
cmp dword [edi], ebx
jbe 0x101467d
lea esi, [edi + 4]
test byte [0x102407c], 0x10
je 0x1014675
push dword [esi + 8]
push dword [esi]
push dword [esi + 4]
push ebx
push 0x10022d8
push 0xf
push dword [0x1024074]
push dword [0x1024070]
call fcn.01003388
inc ebx
add esi, 0xc
cmp ebx, dword [edi]
jb 0x101464b
pop ebx
pop esi
cmp dword [ebp - 4], 0
je 0x1014692
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 4], 0
test edi, edi
je 0x101469d
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
leave
ret
Function at 0x10199d5
Capabilities:
Parse pe header

Disassembly:
push 0x60
push 0x1002458
call fcn.0101b9f0
mov edi, 0x94
mov eax, edi
call fcn.0101a7e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1025104], ecx
mov eax, dword [esi + 4]
mov dword [0x1025110], eax
mov edx, dword [esi + 8]
mov dword [0x1025114], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1025108], esi
cmp ecx, 2
je 0x1019a35
or esi, 0x8000
mov dword [0x1025108], esi
shl eax, 8
add eax, edx
mov dword [0x102510c], eax
cmp word [0x1000000], 0x5a4d
jne 0x1019a72
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1019a72
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x1019a8b
cmp ecx, 0x20b
je 0x1019a78
and dword [ebp - 0x1c], 0
jmp 0x1019aa2
cmp dword [eax + 0x1000084], 0xe
jbe 0x1019a72
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1019a9c
cmp dword [eax + 0x1000074], 0xe
jbe 0x1019a72
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.0101b993
pop ecx
test eax, eax
jne 0x1019ab6
push 0x1c
call fcn.010199a7
pop ecx
call fcn.0101b905
test eax, eax
jne 0x1019ac7
push 0x10
call fcn.010199a7
pop ecx
and dword [ebp - 4], 0
call fcn.0101b64f
test eax, eax
jge 0x1019adc
push 0x1b
call fcn.01019978
pop ecx
call fcn.0101b59f
mov dword [0x1026a30], eax
call fcn.0101b400
mov dword [0x10250f0], eax
call fcn.0101b363
test eax, eax
jge 0x1019b01
push 8
call fcn.01019978
pop ecx
call fcn.0101b122
test eax, eax
jge 0x1019b12
push 9
call fcn.01019978
pop ecx
call fcn.0101abdb
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1019b25
push eax
call fcn.01019978
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.0101b0c9
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1019b47
movzx eax, word [ebp - 0x40]
jmp 0x1019b4a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0100bf4d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1019b6b
push esi
call fcn.0101accc
call fcn.0101ad04
jmp 0x1019b9d
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.0101ba2b
ret
Function at 0x101ad33
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x102416c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1024198]
je 0x101ad5d
inc eax
cmp eax, 0x12
jb 0x101ad4e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1024198]
mov dword [ebp - 0x110], esi
jne 0x101af08
mov eax, dword [0x10250f4]
cmp eax, 1
je 0x101aed6
test eax, eax
jne 0x101ad93
cmp dword [0x1024174], 1
je 0x101aed6
cmp ecx, 0xfc
je 0x101af08
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x101adce
push 5
pop ecx
mov esi, 0x10027fc
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101add9
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x101ae11
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101adf1
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10027f8
push ebx
call fcn.0101a380
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101ae16
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x102419c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101ae30
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.0101a7e0
mov edx, esp
push 6
pop ecx
mov esi, 0x10027dc
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101ae5c
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x101ae68
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x101ae81
mov eax, dword [ebp - 0x110]
mov esi, 0x10027d8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x102419c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101ae9f
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x101aeab
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10027b0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0101dffa
add esp, 0xc
jmp 0x101af08
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x101af08
mov esi, dword [esi + 0x102419c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x101aeed
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01019860
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101b400
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x102535c]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x101b453
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101b43a
mov dword [0x102535c], 1
jmp 0x101b458
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101b44e
mov eax, edi
mov dword [0x102535c], eax
jmp 0x101b453
mov eax, dword [0x102535c]
cmp eax, 1
jne 0x101b4bf
cmp dword [ebp - 4], ebx
jne 0x101b46d
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x101b46d
xor eax, eax
jmp 0x101b57e
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x101b485
add eax, edi
cmp word [eax], bx
jne 0x101b477
add eax, edi
cmp word [eax], bx
jne 0x101b477
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.0101a572
cmp eax, ebx
pop ecx
jne 0x101b4a6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x101b57e
mov ecx, esi
mov esi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, eax
jmp 0x101b496
cmp eax, edi
je 0x101b4c7
cmp eax, ebx
jne 0x101b466
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x101b466
cmp byte [esi], bl
je 0x101b50c
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x101b466
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101b4f8
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x101b4da
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.0101a572
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x101b525
push esi
jmp 0x101b58f
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x101b56f
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x101b583
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101b553
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.01019bb1
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x101b530
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0101a58e
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x101b466
Function at 0x101b59f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1025360]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x101b5e3
call esi
test eax, eax
je 0x101b5c8
mov dword [0x1025360], 1
jmp 0x101b5e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101b5df
mov dword [0x1025360], 2
jmp 0x101b5f1
xor eax, eax
jmp 0x101b647
cmp eax, 1
jne 0x101b5ec
call esi
jmp 0x101b647
cmp eax, 2
jne 0x101b5df
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x101b644
lea eax, [edi + edi]
push eax
call fcn.0101a572
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x101b644
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x101b63b
mov eax, dword [ebp - 4]
jmp 0x101b646
push dword [ebp - 4]
call fcn.0101a58e
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x101b892
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10242d4]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x101b8f4
push 0x88
push 1
call fcn.0101e1c8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101b8ec
push esi
push dword [0x10242d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x101b8ec
push esi
call fcn.0101b875
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x101b8f4
push 0x10
call fcn.01019978
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x101b905
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.0101bd8e
test eax, eax
je 0x101b91e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x10242d4], eax
jne 0x101b926
call fcn.0101b852
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.0101e1c8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x101b966
push esi
push dword [0x10242d4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x101b966
push esi
call fcn.0101b875
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
pop esi
ret
call fcn.0101b852
xor eax, eax
pop esi
ret
Function at 0x101dffa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10254cc], ebx
push esi
push edi
jne 0x101e07c
push 0x1002a44
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x101e0b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002a38
push edi
call esi
test eax, eax
mov dword [0x10254cc], eax
je 0x101e0b7
push 0x1002a28
push edi
call esi
push 0x1002a14
push edi
mov dword [0x10254d0], eax
call esi
cmp dword [0x1025104], 2
mov dword [0x10254d4], eax
jne 0x101e07c
push 0x10029f8
push edi
call esi
test eax, eax
mov dword [0x10254dc], eax
je 0x101e07c
push 0x10029e0
push edi
call esi
mov dword [0x10254d8], eax
mov eax, dword [0x10254d8]
test eax, eax
je 0x101e0c1
call eax
test eax, eax
je 0x101e0a8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10254dc]
test eax, eax
je 0x101e0a8
test byte [ebp - 8], 1
jne 0x101e0c1
cmp dword [0x1025110], 4
jb 0x101e0bb
or byte [ebp + 0x12], 0x20
jmp 0x101e0e0
xor eax, eax
jmp 0x101e0f0
or byte [ebp + 0x12], 4
jmp 0x101e0e0
mov eax, dword [0x10254d0]
test eax, eax
je 0x101e0e0
call eax
mov ebx, eax
test ebx, ebx
je 0x101e0e0
mov eax, dword [0x10254d4]
test eax, eax
je 0x101e0e0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10254cc]
pop edi
pop esi
pop ebx
leave
ret