joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c88
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x1027ce4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x100
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
push eax
mov esi, ecx
push 0xbb7
push dword [esi + 0x2c]
call fcn.0102016b
test eax, eax
jne 0x1004cd2
lea eax, [ebp - 0x204]
push 0x1004c6a
push eax
call fcn.0101425e
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.01014282
mov esi, dword [esi + 4]
add esp, 0xc
push 0x10010
lea eax, [ebp - 0x404]
push eax
push edi
push esi
call fcn.0101fec2
dec eax
pop edi
pop esi
je 0x1004d15
dec eax
dec eax
je 0x1004d15
dec eax
jne 0x1004d24
call dword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1004d24
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
call fcn.01013eb1
leave
ret 8

Function at 0x1007550
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1027ce4]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x11c], ebx
je 0x100768f
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x100768f
lea eax, [ebp - 0x110]
push eax
mov word [esi], bx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jl 0x100767f
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x100768f
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x11c]
push edx
lea edx, [ebp - 0x120]
push edx
push 0x10074f8
push ebx
push ebx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x10075f5
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x10c]
push edx
push 1
push dword [ebp - 0x11c]
push eax
call dword [ecx + 0x2c]
test eax, eax
jge 0x1007630
lea eax, [ebp - 0x114]
push eax
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x100767f
cmp dword [ebp - 0x114], ebx
je 0x100767f
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
lea edx, [ebp - 0x10c]
push edx
push 1
push dword [ebp - 0x114]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x100767f
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x114]
lea eax, [ebp - 0x10c]
push eax
call fcn.01008abe
test eax, eax
jl 0x100767f
push edi
push dword [ebp - 0x118]
push esi
call fcn.010142f8
add esp, 0xc
push dword [ebp - 0x118]
mov word [esi + edi*2 - 2], bx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x110]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x1007691
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0x100768f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01013eb1
leave
ret 8
Function at 0x10082b0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, 0x104
mov dword [ebp - 8], edi
jb 0x1008400
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x100822a
lea ebx, [ecx + 0x1088]
push 0x1008252
push ebx
mov dword [ebp + 0xc], edi
mov dword [ebp - 0xc], esi
call fcn.0101eb28
cmp dword [ebp + 0xc], edi
mov edi, dword [ebp + 8]
lea eax, [esi - 2]
je 0x1008346
push dword [ebp + 0xc]
push eax
push edi
call fcn.01008182
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jl 0x1008400
push edi
call fcn.010146ba
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x100833e
push 0x1008262
push esi
push edi
call fcn.0100820c
test eax, eax
jl 0x1008400
xor eax, eax
inc eax
jmp 0x1008402
push eax
push edi
push 0x1008266
push 0x100826a
push 0x1008292
push ebx
call fcn.0101f150
xor ebx, ebx
cmp word [edi], bx
je 0x100837a
push edi
call fcn.010146ba
cmp word [edi + eax*2 - 2], 0x5c
pop ecx
je 0x100833e
push 0x10082a2
jmp 0x100832f
lea eax, [ebp - 4]
push eax
push 5
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x10083cf
cmp dword [ebp - 4], ebx
je 0x10083cf
push edi
push dword [ebp - 4]
call fcn.010211eb
test eax, eax
jl 0x10083a7
mov dword [ebp - 8], 1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x10083ca
mov eax, dword [ebp + 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 8], ebx
jne 0x10083da
push edi
push esi
call fcn.0101fc68
test eax, eax
je 0x1008400
push edi
call fcn.010146ba
cmp eax, 1
pop ecx
jl 0x100833e
cmp word [edi + eax*2 - 2], 0x5c
je 0x100833e
push 0x10082a6
jmp 0x100832f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1009090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 5
push dword [ebp + 8]
mov esi, ecx
push 0
call fcn.0101fa63
test eax, eax
je 0x10090b9
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 4

Function at 0x10117d2
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
push edi
push 0
push 0
push 0x130b
mov esi, ecx
push 0x3ed
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.01020c43
mov edi, eax
test edi, edi
jl 0x1011846
cmp edi, 5
jg 0x1011846
mov eax, dword [esi + 0x14c]
test eax, eax
je 0x1011811
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [esi + 0x30], 0
je 0x1011841
push 0
push dword [esi + edi*4 + 0x164]
push dword [esi + 4]
push dword [esi + edi*4 + 0x150]
push dword [esi + 0xc]
call fcn.0101f70f
push 5
push eax
mov dword [esi + 0x14c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
jmp 0x1011848
xor eax, eax
pop edi
pop esi
ret
Function at 0x1013370
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
push edi
xor edi, edi
cmp eax, edi
je 0x1013433
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x1013433
cmp dword [esi + 0x230], edi
je 0x10133da
cmp dword [esi + 0x234], edi
je 0x10133cd
push edi
lea eax, [ebp + 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [esi]
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1013419
cmp dword [ebp + 8], 2
jne 0x1013419
mov dword [esi + 0x234], edi
push ebx
call fcn.010146ba
mov edi, eax
pop ecx
shl edi, 1
jmp 0x10133fb
push edi
push edi
push dword [esi + 0xc]
push dword [esi + 8]
push 0xffffffffffffffff
push ebx
push 0x240
push edi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, edi
je 0x101341e
mov ebx, dword [esi + 8]
lea edi, [eax - 1]
push 0
lea eax, [ebp + 8]
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1013419
cmp dword [ebp + 8], edi
jne 0x1013419
xor eax, eax
inc eax
jmp 0x101343d
push 0xfffffffffffffff8
pop eax
jmp 0x101343d
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x7a
neg eax
sbb eax, eax
and eax, 3
add eax, 0xfffffffc
jmp 0x101343d
neg eax
sbb eax, eax
and eax, 6
add eax, 0xfffffff9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1013cee
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
lea ecx, [ebp - 4]
call fcn.01021601
lea ecx, [ebp - 4]
call fcn.0102160f
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x1013e15
call fcn.0101c606
push 0xbc6
push dword [ebp + 8]
call fcn.01020089
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.0100eefe
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, esi
je 0x1013e21
mov cx, word [eax]
cmp cx, 0x22
push 2
pop edx
jne 0x1013d67
add eax, edx
mov cx, word [eax]
cmp cx, si
je 0x1013d5f
cmp cx, 0x22
jne 0x1013d4f
cmp word [eax], 0x22
jne 0x1013d7f
jmp 0x1013d7d
cmp cx, 0x20
jbe 0x1013d7f
add eax, edx
cmp word [eax], 0x20
ja 0x1013d6d
jmp 0x1013d7f
cmp cx, 0x20
ja 0x1013d87
add eax, edx
mov cx, word [eax]
cmp cx, si
jne 0x1013d77
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.0100f4b6
test eax, eax
lea ecx, [ebp - 0x18]
jne 0x1013da7
call fcn.0100f050
xor esi, esi
inc esi
jmp 0x1013e15
push edi
call fcn.0100ef60
mov edi, eax
jmp 0x1013de1
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
call fcn.01020d48
test eax, eax
jne 0x1013de1
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.0102006f
test eax, eax
jne 0x1013de1
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x34]
push eax
call fcn.0101f9cc
push esi
push esi
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0101fdc3
test eax, eax
jne 0x1013db1
lea ecx, [ebp - 0x18]
call fcn.0100f372
lea ecx, [ebp - 0x18]
call fcn.0100f050
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0101c614
lea ecx, [ebp - 4]
call fcn.01021670
pop edi
lea ecx, [ebp - 4]
call fcn.01021609
mov eax, esi
jmp 0x1013e33
lea ecx, [ebp - 0x18]
call fcn.0100f050
lea ecx, [ebp - 4]
call fcn.01021609
xor eax, eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x1014026
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001a88
call fcn.01015b2c
mov edi, 0x94
mov eax, edi
call fcn.01014880
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 [0x1028cfc], ecx
mov eax, dword [esi + 4]
mov dword [0x1028d08], eax
mov edx, dword [esi + 8]
mov dword [0x1028d0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1028d00], esi
cmp ecx, 2
je 0x1014086
or esi, 0x8000
mov dword [0x1028d00], esi
shl eax, 8
add eax, edx
mov dword [0x1028d04], eax
cmp word [0x1000000], 0x5a4d
jne 0x10140c3
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10140c3
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10140dc
cmp ecx, 0x20b
je 0x10140c9
and dword [ebp - 0x1c], 0
jmp 0x10140f3
cmp dword [eax + 0x1000084], 0xe
jbe 0x10140c3
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x10140ed
cmp dword [eax + 0x1000074], 0xe
jbe 0x10140c3
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 1
call fcn.01015acd
pop ecx
test eax, eax
jne 0x1014107
push 0x1c
call fcn.01013ff8
pop ecx
call fcn.01015a3f
test eax, eax
jne 0x1014118
push 0x10
call fcn.01013ff8
pop ecx
and dword [ebp - 4], 0
call fcn.01015789
test eax, eax
jge 0x101412d
push 0x1b
call fcn.01013fc9
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x102aa14], eax
call fcn.0101565c
mov dword [0x1028cec], eax
call fcn.010155b3
test eax, eax
jge 0x1014153
push 8
call fcn.01013fc9
pop ecx
call fcn.01015359
test eax, eax
jge 0x1014164
push 9
call fcn.01013fc9
pop ecx
call fcn.01014dfd
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1014177
push eax
call fcn.01013fc9
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.010152eb
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1014199
movzx eax, word [ebp - 0x40]
jmp 0x101419c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.01013cee
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x10141bd
push esi
call fcn.01014eee
call fcn.01014f26
jmp 0x10141ef
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01015b67
ret
Function at 0x1014f55
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1027ce4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1027cf0]
je 0x1014f7f
inc eax
cmp eax, 0x12
jb 0x1014f70
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1027cf0]
mov dword [ebp - 0x110], esi
jne 0x101512a
mov eax, dword [0x1028cf4]
cmp eax, 1
je 0x10150f8
test eax, eax
jne 0x1014fb5
cmp dword [0x1027cec], 1
je 0x10150f8
cmp ecx, 0xfc
je 0x101512a
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 0x1014ff0
push 5
pop ecx
mov esi, 0x1001e0c
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 0x1014ffb
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1015033
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1015013
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001e08
push ebx
call fcn.010183c0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1015038
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1027cf4]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1015052
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01014880
mov edx, esp
push 6
pop ecx
mov esi, 0x1001dec
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 0x101507e
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x101508a
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 0x10150a3
mov eax, dword [ebp - 0x110]
mov esi, 0x1001de8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1027cf4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10150c1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10150cd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001dc0
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.010182b3
add esp, 0xc
jmp 0x101512a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x101512a
mov esi, dword [esi + 0x1027cf4]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x101510f
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.01013eb1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101565c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1028e50]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x10156a8
call esi
mov edi, eax
cmp edi, ebx
je 0x101568e
mov dword [0x1028e50], 1
jmp 0x10156ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10156a3
push 2
pop eax
mov dword [0x1028e50], eax
jmp 0x10156a8
mov eax, dword [0x1028e50]
cmp eax, 1
jne 0x1015725
cmp edi, ebx
jne 0x10156b9
call esi
mov edi, eax
cmp edi, ebx
je 0x101572e
cmp word [edi], bx
mov eax, edi
je 0x10156ce
inc eax
inc eax
cmp word [eax], bx
jne 0x10156c0
inc eax
inc eax
cmp word [eax], bx
jne 0x10156c0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x101571c
push eax
call fcn.01015daf
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x101571c
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1015719
push dword [ebp - 4]
call fcn.01015c86
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x101577d
cmp eax, 2
je 0x1015732
cmp eax, ebx
je 0x1015732
xor eax, eax
jmp 0x101577f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x101572e
cmp byte [esi], bl
je 0x101574f
inc eax
cmp byte [eax], bl
jne 0x1015745
inc eax
cmp byte [eax], bl
jne 0x1015745
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.01015daf
cmp eax, ebx
pop ecx
je 0x1015776
mov ecx, edi
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 esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10159cc
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 [0x1027e2c]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1015a2e
push 0x88
push 1
call fcn.01018ad0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1015a26
push esi
push dword [0x1027e2c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1015a26
push esi
call fcn.010159af
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1015a2e
push 0x10
call fcn.01013fc9
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret
Function at 0x1015a3f
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
call fcn.0101812d
test eax, eax
je 0x1015a58
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1027e2c], eax
jne 0x1015a60
call fcn.0101598c
xor eax, eax
ret
push esi
push 0x88
push 1
call fcn.01018ad0
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1015aa0
push esi
push dword [0x1027e2c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1015aa0
push esi
call fcn.010159af
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.0101598c
xor eax, eax
pop esi
ret

Function at 0x10180a9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01014880
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101810f
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1028cfc]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1018113
xor eax, eax
jmp 0x1018120
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10182b3
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 [0x1028fb8], ebx
push esi
push edi
jne 0x1018335
push 0x1002470
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1018370
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002464
push edi
call esi
test eax, eax
mov dword [0x1028fb8], eax
je 0x1018370
push 0x1002454
push edi
call esi
push 0x1002440
push edi
mov dword [0x1028fbc], eax
call esi
cmp dword [0x1028cfc], 2
mov dword [0x1028fc0], eax
jne 0x1018335
push 0x1002424
push edi
call esi
test eax, eax
mov dword [0x1028fc8], eax
je 0x1018335
push 0x100240c
push edi
call esi
mov dword [0x1028fc4], eax
mov eax, dword [0x1028fc4]
test eax, eax
je 0x101837a
call eax
test eax, eax
je 0x1018361
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1028fc8]
test eax, eax
je 0x1018361
test byte [ebp - 8], 1
jne 0x101837a
cmp dword [0x1028d08], 4
jb 0x1018374
or byte [ebp + 0x12], 0x20
jmp 0x1018399
xor eax, eax
jmp 0x10183a9
or byte [ebp + 0x12], 4
jmp 0x1018399
mov eax, dword [0x1028fbc]
test eax, eax
je 0x1018399
call eax
mov ebx, eax
test ebx, ebx
je 0x1018399
mov eax, dword [0x1028fc0]
test eax, eax
je 0x1018399
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1028fb8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1019542
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1019573
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x101957a
cmp ebx, dword [ebp + 8]
jae 0x101957a
xor eax, eax
jmp 0x101976a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x101958b
xor eax, eax
inc eax
jmp 0x1019769
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x10195a1
cmp ecx, edx
jae 0x10196e6
cmp dword [eax + 4], 0
je 0x10195aa
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1019592
cmp dword [ebp + 8], 0
je 0x10195cc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10196e6
cmp eax, esi
jae 0x10196e6
mov eax, dword [0x1028fd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10195f1
cmp dword [esi*4 + 0x1028fe0], edi
je 0x10196ea
inc esi
cmp esi, eax
jl 0x10195df
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1019766
cmp dword [ebp - 8], 0x1000000
jne 0x1019766
test byte [ebp - 0xc], 0xcc
je 0x101966f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1019766
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1019766
cmp word [eax + 0x18], 0x10b
jne 0x1019766
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1019766
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x101966f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x101966f
test byte [ecx + 0x27], 0x80
jne 0x10196e6
push 1
push 0x1029020
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1019583
mov ecx, dword [0x1028fd8]
test ecx, ecx
mov edx, ecx
jle 0x10196a3
lea eax, [ecx*4 + 0x1028fdc]
cmp dword [eax], edi
je 0x10196a3
dec edx
sub eax, 4
test edx, edx
jg 0x1019697
test edx, edx
jne 0x10196d4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x10196b0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10196c8
lea eax, [edx*4 + 0x1028fe0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x10196b6
cmp ecx, 0x10
jge 0x10196d4
inc ecx
mov dword [0x1028fd8], ecx
push 0
push 0x1029020
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1019583
xor eax, eax
jmp 0x1019769
test esi, esi
jle 0x1019583
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1029020
call ebx
test eax, eax
jne 0x1019583
cmp dword [esi*4 + 0x1028fe0], edi
je 0x1019740
mov eax, dword [0x1028fd8]
lea esi, [eax - 1]
test esi, esi
jl 0x101972e
cmp dword [esi*4 + 0x1028fe0], edi
je 0x101972a
dec esi
jns 0x101971e
test esi, esi
jge 0x101973e
cmp eax, 0x10
jge 0x1019739
inc eax
mov dword [0x1028fd8], eax
lea esi, [eax - 1]
jmp 0x1019740
je 0x1019758
xor ecx, ecx
test esi, esi
jl 0x1019758
lea eax, [ecx*4 + 0x1028fe0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1019746
push 0
push 0x1029020
call ebx
jmp 0x1019583
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret