joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4c24
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5143c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4d4c6f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004d4dbf
test al, al
jne 0x4d4c69
sub edx, 2
cmp edx, edi
jne 0x4d4c4f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4d4c91
lea eax, [edi + 2]
cmp edx, eax
je 0x4d4c91
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004d4b70
add esp, 0x10
jmp 0x4d4d8b
push esi
lea ecx, [ebp - 0x255]
call fcn.004d4dbf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d4cd4
push dword [ebp - 0x25c]
jmp 0x4d4c81
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4d4d11
cmp word [ebp - 0x226], 0
je 0x4d4d32
cmp word [ebp - 0x226], ax
jne 0x4d4d11
cmp word [ebp - 0x224], 0
je 0x4d4d32
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004d4b70
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4d4d7e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4d4ceb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4d4d66
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4d4d8b
push 0x4d49a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004c51a0
add esp, 0x10
jmp 0x4d4d5b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0da0
leave
ret

Function at 0x4d56a1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d56b2
pop esi
ret
push ebx
push edi
push esi
call fcn.004d566a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004cfc01
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d56da
push ebx
push esi
push edi
call fcn.004b3cc0
add esp, 0xc
push 0
call fcn.004cfbc7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4d5aaa
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d56ef
Function at 0x4d7d29
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004cf820
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d7d98
cmp esi, dword [ebp - 4]
je 0x4d7d93
cmp dword [ebp + 0xc], 0
je 0x4d7d93
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4d7d70
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004d787b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4d7d9a
xor eax, eax
inc eax
jmp 0x4d7d9a
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4d7dff
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5143c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004cf820
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004cf820
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4d7e76
cmp word [ecx], dx
je 0x4d7e76
mov eax, dword [0x4ffc14]
push edi
dec eax
push eax
push 0x4ffb00
call fcn.004d7d9e
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4d7ee9
cmp word [eax], dx
je 0x4d7ee9
mov eax, dword [edi]
test eax, eax
je 0x4d7e9a
cmp word [eax], dx
je 0x4d7e9a
lea eax, [ebp - 0x10]
push eax
call fcn.004d7781
jmp 0x4d7ea3
lea eax, [ebp - 0x10]
push eax
call fcn.004d781c
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4d7f13
mov eax, dword [0x4ffafc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4ff7f0
call fcn.004d7d9e
add esp, 0xc
test al, al
je 0x4d7f13
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4d7ede
cmp word [eax], di
je 0x4d7ede
lea eax, [ebp - 0x10]
push eax
call fcn.004d7781
pop ecx
jmp 0x4d7f15
lea eax, [ebp - 0x10]
push eax
call fcn.004d781c
jmp 0x4d7edb
mov eax, dword [edi]
test eax, eax
je 0x4d7f00
cmp word [eax], dx
je 0x4d7f00
lea eax, [ebp - 0x10]
push eax
call fcn.004d7736
pop ecx
jmp 0x4d7f13
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4d7fde
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004d7c23
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4d7fde
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4d7fde
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4d7fde
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4d7f6b
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004d1a10
test ebx, ebx
je 0x4d7fd9
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004d1a10
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d7fde
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d7fde
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c8652
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4d7fe0
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b0da0
leave
ret
Function at 0x4dc14f
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5143c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4dc192
call fcn.004b7cbb
mov dword [eax], 0xf
call fcn.004b7cce
mov dword [eax], 0xd
call fcn.004b7bd0
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0da0
leave
ret
test eax, eax
jne 0x4dc199
inc eax
jmp 0x4dc186
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4dc184
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4dc186

Function at 0x4dd2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4dd30d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4dd30d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x35843cc7
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x706e4471
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x117b7691
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..didat
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4464164b
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x4ab6744a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2d737b18
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401d90
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x554efc]
xor eax, esp
mov dword [esp + 0x414], eax
mov edx, ecx
push esi
push edi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401db1
sub edx, esi
sar edx, 1
cmp edx, 5
jbe 0x401e89
lea edx, [esp + 8]
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x401dd0
lea ecx, [esp + 8]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401de7
sub ecx, edx
sar ecx, 1
cmp word [esp + ecx*2 + 6], 0x5c
je 0x401e18
lea edi, [esp + 8]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x401e05
mov eax, dword [0x550c74]
mov dword [edi], eax
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [esp + ecx + 8]
lea ecx, [ecx + 2]
mov word [esp + ecx + 0x20e], ax
test ax, ax
jne 0x401e20
lea ecx, [esp + 0x210]
add ecx, 0xfffffffe
nop
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x401e40
mov eax, dword [0x5504e4]
mov dword [ecx], eax
mov eax, dword [0x5504e8]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x210]
call fcn.00401780
lea eax, [esp + 8]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrmdir]
add esp, 4
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00457db8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x41c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.00457db8
mov esp, ebp
pop ebp
ret
Function at 0x402130
Capabilities:
Set current directory

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jne 0x40215c
mov esi, dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
push 0x5c
push ebx
call esi
push 0x2f
push ebx
mov edi, eax
call esi
add esp, 0x10
cmp edi, eax
cmova eax, edi
test eax, eax
je 0x402179
lea edi, [eax + 2]
cmp edi, ebx
jbe 0x402179
movzx esi, word [edi - 2]
xor eax, eax
push ebx
mov word [edi - 2], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov word [edi - 2], si
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x408840
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0xc], ecx
xor eax, eax
xor ecx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
push edi
test esi, esi
je 0x4089a3
mov edi, dword [ebp + 8]
xor edx, edx
cmp eax, esi
jae 0x40887e
nop dword [eax]
cmp byte [eax + edi], 0x20
jne 0x40887c
inc eax
inc edx
cmp eax, esi
jb 0x408870
cmp eax, esi
je 0x4088ee
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jb 0x408896
cmp byte [eax + edi], 0xd
jne 0x408896
cmp byte [eax + edi + 1], 0xa
je 0x4088e2
mov cl, byte [eax + edi]
cmp cl, 0xa
je 0x4088e2
test edx, edx
jne 0x4089ac
cmp cl, 0x3d
jne 0x4088b1
inc ebx
cmp ebx, 2
jmp 0x4088b4
cmp cl, 0x7f
ja 0x4089ac
movzx ecx, cl
mov cl, byte [ecx + 0x550af8]
cmp cl, 0x7f
je 0x4089ac
cmp cl, 0x40
jae 0x4088d9
test ebx, ebx
jne 0x4089ac
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
jmp 0x4088e5
mov ecx, dword [ebp - 4]
inc eax
cmp eax, esi
jb 0x408866
test ecx, ecx
je 0x4089a3
mov esi, dword [ebp - 0xc]
lea ecx, [ecx + ecx*2]
lea ecx, [ecx*2 + 7]
shr ecx, 3
sub ecx, ebx
test esi, esi
je 0x4089b8
mov edx, dword [ebp - 8]
cmp dword [edx], ecx
jb 0x4089b8
xor ecx, ecx
mov dword [ebp - 4], 3
xor ebx, ebx
mov dword [ebp + 0xc], ecx
test eax, eax
je 0x40899b
nop dword [eax]
mov cl, byte [edi]
cmp cl, 0xd
je 0x408995
cmp cl, 0xa
je 0x408995
cmp cl, 0x20
je 0x408995
movzx ecx, cl
mov dl, byte [ecx + 0x550af8]
xor ecx, ecx
cmp dl, 0x40
sete cl
shl ebx, 6
sub dword [ebp - 4], ecx
movzx ecx, dl
mov edx, dword [ebp + 0xc]
and ecx, 0x3f
inc edx
or ebx, ecx
mov dword [ebp + 0xc], edx
cmp edx, 4
jne 0x408995
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp + 0xc], ecx
test edx, edx
je 0x408980
mov ecx, ebx
shr ecx, 0x10
mov byte [esi], cl
inc esi
cmp edx, 1
jbe 0x40898d
mov ecx, ebx
shr ecx, 8
mov byte [esi], cl
inc esi
cmp edx, 2
jbe 0x408995
mov byte [esi], bl
inc esi
inc edi
sub eax, 1
jne 0x408930
mov eax, dword [ebp - 8]
sub esi, dword [ebp - 0xc]
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffffd4
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 0xffffffd6
mov esp, ebp
pop ebp
ret
Function at 0x4220a0
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
call fcn.004222a0
push dword [0x5540f4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x42218a
push esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push edi
push 0x204
call esi
mov edi, eax
add esp, 4
test edi, edi
jne 0x4220f0
call fcn.00436ef0
mov esi, eax
call fcn.00436f10
push str.xmlGetGlobalState:_out_of_memory_n
push dword [eax]
mov eax, dword [esi]
call eax
add esp, 8
xor eax, eax
pop edi
pop esi
ret
push ebx
push 0x204
push 0
push edi
call sub.VCRUNTIME140.dll_memset
push edi
call fcn.004370d0
push 8
call esi
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x422144
call fcn.00436ef0
mov esi, eax
call fcn.00436f10
push str.xmlGetGlobalState:_out_of_memory_n
push dword [eax]
mov eax, dword [esi]
call eax
lea eax, [edi + 0x1c4]
push eax
call fcn.00428a10
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
xor eax, eax
pop ebx
pop edi
pop esi
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push 0
push ebx
mov dword [ebx + 4], edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
push dword [0x5540f4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
push 0
push 0x4221a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
mov eax, edi
pop ebx
pop edi
pop esi
ret

Function at 0x4222a0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x5552a8], 0
jne 0x422300
mov eax, 1
lock xadd dword [0x5552ac], eax
inc eax
cmp eax, 1
jne 0x4222e2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5540f4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x5552a4], eax
call fcn.00425740
mov dword [0x5552a8], 1
ret
cmp dword [0x5552a8], 0
jne 0x422300
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call esi
cmp dword [0x5552a8], 0
je 0x4222f2
pop esi
ret

Function at 0x424a80
Capabilities:
Query environment variable

Disassembly:
cmp dword [0x5554ac], 0
je 0x424a8d
or eax, 0xffffffff
ret
mov dword [0x5554ac], 1
call fcn.00422240
push str.XML_MEM_BREAKPOINT
mov dword [0x5554bc], eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x424ac6
push 0x5554c4
push 0x475ce8
push eax
call fcn.00424a50
add esp, 0xc
push str.XML_MEM_TRACE
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x424aeb
push 0x5554c8
push 0x475cfc
push eax
call fcn.00424a50
add esp, 0xc
xor eax, eax
ret
Function at 0x425840
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
jle 0x42588b
mov edi, dword [esp + 0xc]
test edi, edi
je 0x42588b
mov ecx, dword [esp + 0x14]
xor edx, edx
test esi, esi
jle 0x425878
nop dword [eax]
movzx eax, byte [edx + edi]
inc edx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp edx, esi
jl 0x425860
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
pop edi
imul eax, eax, 0x8001
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x425890
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0x14]
xor edx, edx
push esi
mov esi, dword [esp + 0xc]
push edi
test esi, esi
jle 0x4258bc
mov edi, dword [esp + 0xc]
movzx eax, byte [edx + edi]
inc edx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp edx, esi
jl 0x4258a4
mov esi, dword [esp + 0x18]
lea eax, [ecx + 0x3a]
imul ecx, eax, 0x401
xor edx, edx
mov eax, ecx
shr eax, 6
xor ecx, eax
test esi, esi
jle 0x4258f8
mov edi, dword [esp + 0x14]
nop word [eax + eax]
movzx eax, byte [edx + edi]
inc edx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp edx, esi
jl 0x4258e0
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
pop edi
imul eax, eax, 0x8001
pop esi
ret
Function at 0x426a90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
je 0x426acc
mov bl, byte [esi]
movzx ecx, bl
mov eax, ecx
shl eax, 4
sub eax, ecx
add eax, eax
test bl, bl
je 0x426acc
nop
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426ab0
mov esi, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test esi, esi
je 0x426b04
mov bl, byte [esi]
test bl, bl
je 0x426b04
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426ae8
mov esi, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test esi, esi
je 0x426b3c
mov bl, byte [esi]
test bl, bl
je 0x426b3c
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426b20
mov ecx, dword [esp + 0xc]
xor edx, edx
pop esi
pop ebx
div dword [ecx + 4]
mov eax, edx
ret
Function at 0x426b50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov eax, edi
cmove eax, esi
movzx eax, byte [eax]
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
mov eax, ecx
test edi, edi
je 0x426bad
mov bl, byte [edi]
test bl, bl
je 0x426b9c
nop word [eax + eax]
mov edx, eax
lea edi, [edi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [edi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426b80
mov ecx, eax
mov edx, eax
shr ecx, 3
shl edx, 5
add ecx, 0x3a
add ecx, edx
xor eax, ecx
test esi, esi
je 0x426bd3
mov bl, byte [esi]
test bl, bl
je 0x426bd3
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426bb7
mov esi, dword [esp + 0x1c]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test esi, esi
je 0x426c1d
mov bl, byte [esi]
test bl, bl
je 0x426c0c
nop
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426bf0
mov ecx, eax
mov edx, eax
shr ecx, 3
shl edx, 5
add ecx, 0x3a
add ecx, edx
xor eax, ecx
mov esi, dword [esp + 0x20]
test esi, esi
je 0x426c4c
mov bl, byte [esi]
test bl, bl
je 0x426c4c
nop dword [eax + eax]
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426c30
mov esi, dword [esp + 0x24]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
xor eax, edx
test esi, esi
je 0x426c95
mov bl, byte [esi]
test bl, bl
je 0x426c84
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426c68
mov ecx, eax
mov edx, eax
shr ecx, 3
shl edx, 5
add ecx, 0x3a
add ecx, edx
xor eax, ecx
mov esi, dword [esp + 0x28]
test esi, esi
je 0x426cbf
mov bl, byte [esi]
test bl, bl
je 0x426cbf
mov edx, eax
lea esi, [esi + 1]
mov ecx, eax
shl edx, 5
shr ecx, 3
add edx, ecx
movsx ecx, bl
mov bl, byte [esi]
add edx, ecx
xor eax, edx
test bl, bl
jne 0x426ca3
mov ecx, dword [esp + 0x10]
xor edx, edx
pop edi
pop esi
pop ebx
div dword [ecx + 4]
mov eax, edx
ret